Commit 7a3165a1 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

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: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent b3038304
...@@ -148,11 +148,14 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) ...@@ -148,11 +148,14 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl)
if (cx88_boards[core->board].blackbird) { if (cx88_boards[core->board].blackbird) {
/* sets sound input from external adc */ /* sets sound input from external adc */
if ((core->board == CX88_BOARD_HAUPPAUGE_ROSLYN)|| switch (core->board) {
(core->board == CX88_BOARD_KWORLD_MCE200_DELUXE)) case CX88_BOARD_HAUPPAUGE_ROSLYN:
case CX88_BOARD_KWORLD_MCE200_DELUXE:
cx_clear(AUD_CTL, EN_I2SIN_ENABLE); cx_clear(AUD_CTL, EN_I2SIN_ENABLE);
else break;
default:
cx_set(AUD_CTL, EN_I2SIN_ENABLE); cx_set(AUD_CTL, EN_I2SIN_ENABLE);
}
cx_write(AUD_I2SINPUTCNTL, 4); cx_write(AUD_I2SINPUTCNTL, 4);
cx_write(AUD_BAUDRATE, 1); cx_write(AUD_BAUDRATE, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment