diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-18 19:31:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-24 14:26:56 -0500 |
commit | 8bf2f8e747700419cc5bbc56c4496774eb8f2f1f (patch) | |
tree | 94e9b7e99d2e95d4515d48247ce549540374a989 /drivers/media/video/bt8xx/bttvp.h | |
parent | ae62e3d4a8194680023b47ab778bf1dcea8d6b42 (diff) |
V4L/DVB (3577): Cleanup audio input handling
Cleanup audio input handling in bttv and tvaudio:
- inputs were specified that were never used
- mute was handled as a special input which led to confusing code
- confusing naming made it difficult to see if the setting was for
i2c or gpio.
The old audiochip.h input names moved to tvaudio.h. Currently this
is used both by tvaudio and msp3400 until the msp3400 implements the
new msp3400-specific inputs.
Detect in bttv the tvaudio and msp3400 i2c clients and use these
client pointers to set the inputs directly instead of broadcasting the
command.
Removed AUDC_SET_INPUT. Now replaced by VIDIOC_S_AUDIO. This will be
replaced again later by the new ROUTING commands.
Removed VIDIOC_G_AUDIO implementations in i2c drivers: this command is
a user level command and not to be used internally. It wasn't called at
all anyway.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttvp.h')
-rw-r--r-- | drivers/media/video/bt8xx/bttvp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index 12223a203960..ee989d2e15d9 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
@@ -41,7 +41,6 @@ | |||
41 | 41 | ||
42 | #include <linux/device.h> | 42 | #include <linux/device.h> |
43 | #include <media/video-buf.h> | 43 | #include <media/video-buf.h> |
44 | #include <media/audiochip.h> | ||
45 | #include <media/tuner.h> | 44 | #include <media/tuner.h> |
46 | #include <media/tveeprom.h> | 45 | #include <media/tveeprom.h> |
47 | #include <media/ir-common.h> | 46 | #include <media/ir-common.h> |
@@ -299,6 +298,8 @@ struct bttv { | |||
299 | int i2c_state, i2c_rc; | 298 | int i2c_state, i2c_rc; |
300 | int i2c_done; | 299 | int i2c_done; |
301 | wait_queue_head_t i2c_queue; | 300 | wait_queue_head_t i2c_queue; |
301 | struct i2c_client *i2c_msp34xx_client; | ||
302 | struct i2c_client *i2c_tvaudio_client; | ||
302 | 303 | ||
303 | /* video4linux (1) */ | 304 | /* video4linux (1) */ |
304 | struct video_device *video_dev; | 305 | struct video_device *video_dev; |
@@ -321,6 +322,7 @@ struct bttv { | |||
321 | /* video state */ | 322 | /* video state */ |
322 | unsigned int input; | 323 | unsigned int input; |
323 | unsigned int audio; | 324 | unsigned int audio; |
325 | unsigned int mute; | ||
324 | unsigned long freq; | 326 | unsigned long freq; |
325 | int tvnorm,hue,contrast,bright,saturation; | 327 | int tvnorm,hue,contrast,bright,saturation; |
326 | struct v4l2_framebuffer fbuf; | 328 | struct v4l2_framebuffer fbuf; |