Lines Matching refs:bytes
34 unsigned char bytes[2]; in snd_pt2258_reset() local
38 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset()
40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
46 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset()
48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
55 bytes[0] = 0xd0; in snd_pt2258_reset()
56 bytes[1] = 0xe0; in snd_pt2258_reset()
58 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
97 unsigned char bytes[2]; in pt2258_stereo_volume_put() local
108 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put()
109 bytes[1] = pt2258_channel_code[2 * base + 1] | (val0 % 10); in pt2258_stereo_volume_put()
111 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
116 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put()
117 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
119 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
146 unsigned char bytes[2]; in pt2258_switch_put() local
154 bytes[0] = val ? PT2258_CMD_MUTE : PT2258_CMD_UNMUTE; in pt2258_switch_put()
156 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in pt2258_switch_put()