diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-13 12:06:28 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-13 12:06:28 -0400 |
commit | a35445cc21e79df1aae4b39c514ca6f67c69693f (patch) | |
tree | 54150539835254256a923122daabe9b335922663 /linux/drivers/media/video/cx88/cx88-tvaudio.c | |
parent | 32de3cc3a4bb7d3624f65bbd00edfb8e4601d736 (diff) | |
download | mediapointer-dvb-s2-a35445cc21e79df1aae4b39c514ca6f67c69693f.tar.gz mediapointer-dvb-s2-a35445cc21e79df1aae4b39c514ca6f67c69693f.tar.bz2 |
cx88-tvaudio: replace 'if' with 'switch..case'
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index 683c8c45c..d1e20eca6 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/drivers/media/video/cx88/cx88-tvaudio.c @@ -151,11 +151,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); |