diff options
author | Steven Toth <stoth@hauppauge.com> | 2006-09-25 12:43:45 -0300 |
---|---|---|
committer | Steven Toth <stoth@hauppauge.com> | 2006-09-25 12:43:45 -0300 |
commit | b887c4748e26f436ab35da8d0cb12baa4c0d2426 (patch) | |
tree | abc4b860417011a1a6f58941794c9c1c37c50cc2 /linux/drivers/media/video/cx88/cx88-tvaudio.c | |
parent | 9092a672ca84b9625c2f7ed1ec5479505baffdb0 (diff) | |
download | mediapointer-dvb-s2-b887c4748e26f436ab35da8d0cb12baa4c0d2426.tar.gz mediapointer-dvb-s2-b887c4748e26f436ab35da8d0cb12baa4c0d2426.tar.bz2 |
Changed cx88_board .dvb and .register to an enum.
From: Steven Toth <stoth@hauppauge.com>
Some basic cleanup in preperation for a future patch where
the cx88-mpeg functions have to deal with the port being
used by multiple frontends in (mpeg2 hw encoder and dvb demod).
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index bb14a3598..b2272a1c6 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/drivers/media/video/cx88/cx88-tvaudio.c @@ -145,7 +145,7 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) cx_write(AUD_RATE_THRES_DMD, 0x000000C0); cx88_start_audio_dma(core); - if (cx88_boards[core->board].blackbird) { + if (cx88_boards[core->board].mpeg & CX88_BOARD_BLACKBIRD) { /* sets sound input from external adc */ switch (core->board) { case CX88_BOARD_HAUPPAUGE_ROSLYN: @@ -167,7 +167,7 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) cx_write(AUD_I2SCNTL, 0); /* cx_write(AUD_APB_IN_RATE_ADJ, 0); */ } - if ((always_analog) || (!cx88_boards[core->board].blackbird)) { + if ((always_analog) || (!(cx88_boards[core->board].mpeg & CX88_BOARD_BLACKBIRD))) { ctl |= EN_DAC_ENABLE; cx_write(AUD_CTL, ctl); } |