Lines Matching refs:client

59 static int mpx_write(struct i2c_client *client, int dev, int addr, int val)  in mpx_write()  argument
69 msg.addr = client->addr; in mpx_write()
73 i2c_transfer(client->adapter, &msg, 1); in mpx_write()
171 struct i2c_client *client = v4l2_get_subdevdata(&t->sd); in mpx_setup() local
181 msg.addr = client->addr; in mpx_setup()
185 i2c_transfer(client->adapter, &msg, 1); in mpx_setup()
187 i2c_transfer(client->adapter, &msg, 1); in mpx_setup()
223 mpx_write(client, 0x10, 0x0030, mpx_audio_modes[mode].modus); in mpx_setup()
224 mpx_write(client, 0x12, 0x0008, source); in mpx_setup()
225 mpx_write(client, 0x12, 0x0013, mpx_audio_modes[mode].acb); in mpx_setup()
226 mpx_write(client, 0x12, 0x000e, in mpx_setup()
228 mpx_write(client, 0x12, 0x0010, in mpx_setup()
230 mpx_write(client, 0x12, 0x000d, in mpx_setup()
232 mpx_write(client, 0x10, 0x0020, mpx_audio_modes[mode].system); in mpx_setup()
233 mpx_write(client, 0x12, 0x0000, mpx_audio_modes[mode].volume); in mpx_setup()
235 mpx_write(client, 0x10, 0x0022, in mpx_setup()
243 v4l2_info(client, in mpx_setup()
256 msgs[0].addr = client->addr; in mpx_setup()
260 msgs[1].addr = client->addr; in mpx_setup()
264 i2c_transfer(client->adapter, msgs, 2); in mpx_setup()
265 v4l2_info(client, "MPX system: %02x%02x\n", in mpx_setup()
270 i2c_transfer(client->adapter, msgs, 2); in mpx_setup()
271 v4l2_info(client, "MPX status: %02x%02x\n", in mpx_setup()
346 static int sony_btf_mpx_probe(struct i2c_client *client, in sony_btf_mpx_probe() argument
352 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_I2C_BLOCK)) in sony_btf_mpx_probe()
355 v4l_info(client, "chip found @ 0x%x (%s)\n", in sony_btf_mpx_probe()
356 client->addr << 1, client->adapter->name); in sony_btf_mpx_probe()
358 t = devm_kzalloc(&client->dev, sizeof(*t), GFP_KERNEL); in sony_btf_mpx_probe()
363 v4l2_i2c_subdev_init(sd, client, &sony_btf_mpx_ops); in sony_btf_mpx_probe()
372 static int sony_btf_mpx_remove(struct i2c_client *client) in sony_btf_mpx_remove() argument
374 struct v4l2_subdev *sd = i2c_get_clientdata(client); in sony_btf_mpx_remove()