summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-10-16 15:51:11 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-10-16 15:51:11 -0400
commit3ef16b306ba538390baeba731359fe561c8c3312 (patch)
treef1a7fdb320c8a2d66ebcb014f50fbdb08b0ec68c /linux/drivers/media/video/cx88/cx88-video.c
parent710f9ae68ca23c802526d0500246bb7518fc8a70 (diff)
downloadmediapointer-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.c8
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;
}