diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-13 13:06:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 01:58:05 -0300 |
commit | 7a3165a1520c608f10a66588ab48275e1ce253f5 (patch) | |
tree | 09be3f17b46a64d847b13fec32f6d047ea20736f /drivers/media/video/cx88/cx88-tvaudio.c | |
parent | b3038304c91aa710fe651c7f42568e252fc54908 (diff) | |
download | blackbird-op-linux-7a3165a1520c608f10a66588ab48275e1ce253f5.tar.gz blackbird-op-linux-7a3165a1520c608f10a66588ab48275e1ce253f5.zip |
V4L/DVB (3801): Cx88-tvaudio: replace 'if' with 'switch..case'
This patch cleans up a potential mess that has yet to occur in the
card-specific part of cx88-tvaudio.c that sets sound input from external adc.
It may be a good idea to move this setting into cx88-cards.c in the future.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-tvaudio.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c index 3d3376d590a5..210f9f7ebed4 100644 --- a/drivers/media/video/cx88/cx88-tvaudio.c +++ b/drivers/media/video/cx88/cx88-tvaudio.c @@ -148,11 +148,14 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) if (cx88_boards[core->board].blackbird) { /* sets sound input from external adc */ - if ((core->board == CX88_BOARD_HAUPPAUGE_ROSLYN)|| - (core->board == CX88_BOARD_KWORLD_MCE200_DELUXE)) + switch (core->board) { + case CX88_BOARD_HAUPPAUGE_ROSLYN: + case CX88_BOARD_KWORLD_MCE200_DELUXE: cx_clear(AUD_CTL, EN_I2SIN_ENABLE); - else + break; + default: cx_set(AUD_CTL, EN_I2SIN_ENABLE); + } cx_write(AUD_I2SINPUTCNTL, 4); cx_write(AUD_BAUDRATE, 1); |