Lines Matching +full:dsp +full:- +full:ctrl

1 // SPDX-License-Identifier: GPL-2.0-only
3 * saa7706.c Philips SAA7706H Car Radio DSP driver
15 #include <media/v4l2-device.h>
16 #include <media/v4l2-ctrls.h>
22 $1C00 - $FFFF Not Used
23 $2200 - $3FFF Reserved YRAM (DSP2) space
24 $2000 - $21FF YRAM (DSP2)
25 $1FF0 - $1FFF Hardware Registers
26 $1280 - $1FEF Reserved XRAM (DSP2) space
27 $1000 - $127F XRAM (DSP2)
28 $0FFF DSP CONTROL
29 $0A00 - $0FFE Reserved
30 $0980 - $09FF Reserved YRAM (DSP1) space
31 $0800 - $097F YRAM (DSP1)
32 $0200 - $07FF Not Used
33 $0180 - $01FF Reserved XRAM (DSP1) space
34 $0000 - $017F XRAM (DSP1)
132 return err > 0 ? -EIO : err; in saa7706h_i2c_send()
138 int err = i2c_transfer(client->adapter, msgs, num); in saa7706h_i2c_transfer()
141 return err > 0 ? -EIO : err; in saa7706h_i2c_transfer()
193 .addr = client->addr, in saa7706h_get_reg16()
198 .addr = client->addr, in saa7706h_get_reg16()
292 state->muted = 0; in saa7706h_unmute()
305 state->muted = 1; in saa7706h_mute()
309 static int saa7706h_s_ctrl(struct v4l2_ctrl *ctrl) in saa7706h_s_ctrl() argument
312 container_of(ctrl->handler, struct saa7706h_state, hdl); in saa7706h_s_ctrl()
314 switch (ctrl->id) { in saa7706h_s_ctrl()
316 if (ctrl->val) in saa7706h_s_ctrl()
317 return saa7706h_mute(&state->sd); in saa7706h_s_ctrl()
318 return saa7706h_unmute(&state->sd); in saa7706h_s_ctrl()
320 return -EINVAL; in saa7706h_s_ctrl()
342 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) in saa7706h_probe()
343 return -EIO; in saa7706h_probe()
346 client->addr << 1, client->adapter->name); in saa7706h_probe()
350 return -ENOMEM; in saa7706h_probe()
351 sd = &state->sd; in saa7706h_probe()
354 v4l2_ctrl_handler_init(&state->hdl, 4); in saa7706h_probe()
355 v4l2_ctrl_new_std(&state->hdl, &saa7706h_ctrl_ops, in saa7706h_probe()
357 sd->ctrl_handler = &state->hdl; in saa7706h_probe()
358 err = state->hdl.error; in saa7706h_probe()
368 state->muted = 1; in saa7706h_probe()
379 v4l2_ctrl_handler_free(&state->hdl); in saa7706h_probe()
394 v4l2_ctrl_handler_free(&state->hdl); in saa7706h_remove()
416 MODULE_DESCRIPTION("SAA7706H Car Radio DSP driver");