diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-16 15:51:11 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-10-16 15:51:11 -0400 |
commit | 3ef16b306ba538390baeba731359fe561c8c3312 (patch) | |
tree | f1a7fdb320c8a2d66ebcb014f50fbdb08b0ec68c /linux/drivers/media/video/cx88/cx88-video.c | |
parent | 710f9ae68ca23c802526d0500246bb7518fc8a70 (diff) | |
download | mediapointer-dvb-s2-3ef16b306ba538390baeba731359fe561c8c3312.tar.gz mediapointer-dvb-s2-3ef16b306ba538390baeba731359fe561c8c3312.tar.bz2 |
cx88: determine whether or not to use external adc based on input setting
From: Michael Krufky <mkrufky@linuxtv.org>
Some cx88-blackbird boards use an external adc, but not necessarily
for all inputs. Thus, this needs to be configurable on the card level
for each input.
This patch allows for the usage of the external adc to be determined
by a bit setting in the cx88_input struct for cards based on the cx88
blackbird design.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-video.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c index 1f1640f0f..46de90a1b 100644 --- a/linux/drivers/media/video/cx88/cx88-video.c +++ b/linux/drivers/media/video/cx88/cx88-video.c @@ -477,6 +477,14 @@ static int video_mux(struct cx88_core *core, unsigned int input) cx_clear(MO_FILTER_ODD, 0x00002020); break; } + + if (cx88_boards[core->board].mpeg & CX88_MPEG_BLACKBIRD) { + /* sets sound input from external adc */ + if (INPUT(input)->extadc) + cx_set(AUD_CTL, EN_I2SIN_ENABLE); + else + cx_clear(AUD_CTL, EN_I2SIN_ENABLE); + } return 0; } |