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