Skip to content

Commit

Permalink
V4L/DVB (3801): Cx88-tvaudio: replace 'if' with 'switch..case'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jun 25, 2006
1 parent b303830 commit 7a3165a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/media/video/cx88/cx88-tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a3165a

Please sign in to comment.