diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:37:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:37:36 -0500 |
commit | 368d17e068f691dba5a4f122c271db5ec9b2ebd6 (patch) | |
tree | 69954cea09e5efd4ad1b8268be0e1733a13b4fae /drivers/media/video/cs53l32a.c | |
parent | a9312fb839e90668d05a90024f3a7e7ff646a4a3 (diff) | |
parent | 22fe087f0139e2f5cbe004f24f84cb1c08b4711e (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (33 commits)
V4L/DVB (3604): V4l printk fix
V4L/DVB (3599c): Whitespace cleanups under Documentation/video4linux
V4L/DVB (3599b): Whitespace cleanups under drivers/media
V4L/DVB (3599a): Move drivers/usb/media to drivers/media/video
V4L/DVB (3599): Implement new routing commands for wm8775 and cs53l32a.
V4L/DVB (3598): Add bit algorithm adapter for the Conexant CX2341X boards.
V4L/DVB (3597): Vivi: fix warning: implicit declaration of function 'in_interrupt'
V4L/DVB (3588): Remove VIDIOC_G/S_AUDOUT from msp3400
V4L/DVB (3587): Always wake thread after routing change.
V4L/DVB (3584): Implement V4L2_TUNER_MODE_LANG1_LANG2 audio mode
V4L/DVB (3582): Implement correct msp3400 input/output routing
V4L/DVB (3581): Add new media/msp3400.h header containing the routing macros
V4L/DVB (3580): Last round of msp3400 cleanups before adding routing commands
V4L/DVB (3579): Move msp_modus to msp3400-kthreads, add JP and KR std detection
V4L/DVB (3578): Make scart definitions easier to handle
V4L/DVB (3577): Cleanup audio input handling
V4L/DVB (3575): Cxusb: fix i2c debug messages for bluebird devices
V4L/DVB (3574): Cxusb: fix debug messages
V4L/DVB (3573): Cxusb: remove FIXME: comment in bluebird_patch_dvico_firmware_download
V4L/DVB (3572): Cxusb: conditionalize gpio write for the medion box
...
Diffstat (limited to 'drivers/media/video/cs53l32a.c')
-rw-r--r-- | drivers/media/video/cs53l32a.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/video/cs53l32a.c b/drivers/media/video/cs53l32a.c index 8739c64785ef..de87247c74ee 100644 --- a/drivers/media/video/cs53l32a.c +++ b/drivers/media/video/cs53l32a.c | |||
@@ -59,25 +59,25 @@ static int cs53l32a_read(struct i2c_client *client, u8 reg) | |||
59 | static int cs53l32a_command(struct i2c_client *client, unsigned int cmd, | 59 | static int cs53l32a_command(struct i2c_client *client, unsigned int cmd, |
60 | void *arg) | 60 | void *arg) |
61 | { | 61 | { |
62 | struct v4l2_audio *input = arg; | 62 | struct v4l2_routing *route = arg; |
63 | struct v4l2_control *ctrl = arg; | 63 | struct v4l2_control *ctrl = arg; |
64 | 64 | ||
65 | switch (cmd) { | 65 | switch (cmd) { |
66 | case VIDIOC_S_AUDIO: | 66 | case VIDIOC_INT_G_AUDIO_ROUTING: |
67 | route->input = (cs53l32a_read(client, 0x01) >> 4) & 3; | ||
68 | route->output = 0; | ||
69 | break; | ||
70 | |||
71 | case VIDIOC_INT_S_AUDIO_ROUTING: | ||
67 | /* There are 2 physical inputs, but the second input can be | 72 | /* There are 2 physical inputs, but the second input can be |
68 | placed in two modes, the first mode bypasses the PGA (gain), | 73 | placed in two modes, the first mode bypasses the PGA (gain), |
69 | the second goes through the PGA. Hence there are three | 74 | the second goes through the PGA. Hence there are three |
70 | possible inputs to choose from. */ | 75 | possible inputs to choose from. */ |
71 | if (input->index > 2) { | 76 | if (route->input > 2) { |
72 | v4l_err(client, "Invalid input %d.\n", input->index); | 77 | v4l_err(client, "Invalid input %d.\n", route->input); |
73 | return -EINVAL; | 78 | return -EINVAL; |
74 | } | 79 | } |
75 | cs53l32a_write(client, 0x01, 0x01 + (input->index << 4)); | 80 | cs53l32a_write(client, 0x01, 0x01 + (route->input << 4)); |
76 | break; | ||
77 | |||
78 | case VIDIOC_G_AUDIO: | ||
79 | memset(input, 0, sizeof(*input)); | ||
80 | input->index = (cs53l32a_read(client, 0x01) >> 4) & 3; | ||
81 | break; | 81 | break; |
82 | 82 | ||
83 | case VIDIOC_G_CTRL: | 83 | case VIDIOC_G_CTRL: |