Lines Matching refs:bytes
48 unsigned char bytes[2]; in snd_pt2258_reset() local
52 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset()
54 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
60 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset()
62 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
69 bytes[0] = 0xd0; in snd_pt2258_reset()
70 bytes[1] = 0xe0; in snd_pt2258_reset()
72 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
111 unsigned char bytes[2]; in pt2258_stereo_volume_put() local
122 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put()
123 bytes[1] = pt2258_channel_code[2 * base + 1] | (val0 % 10); in pt2258_stereo_volume_put()
125 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
130 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put()
131 bytes[1] = pt2258_channel_code[2 * base + 3] | (val1 % 10); in pt2258_stereo_volume_put()
133 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
160 unsigned char bytes[2]; in pt2258_switch_put() local
168 bytes[0] = val ? PT2258_CMD_MUTE : PT2258_CMD_UNMUTE; in pt2258_switch_put()
170 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in pt2258_switch_put()