diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-tvaudio.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c index 641a0c5a6490..1e4278b588d8 100644 --- a/drivers/media/video/cx88/cx88-tvaudio.c +++ b/drivers/media/video/cx88/cx88-tvaudio.c | |||
@@ -52,6 +52,7 @@ | |||
52 | #include <linux/init.h> | 52 | #include <linux/init.h> |
53 | #include <linux/smp_lock.h> | 53 | #include <linux/smp_lock.h> |
54 | #include <linux/delay.h> | 54 | #include <linux/delay.h> |
55 | #include <linux/config.h> | ||
55 | #include <linux/kthread.h> | 56 | #include <linux/kthread.h> |
56 | 57 | ||
57 | #include "cx88.h" | 58 | #include "cx88.h" |
@@ -137,21 +138,28 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) | |||
137 | { | 138 | { |
138 | u32 volume; | 139 | u32 volume; |
139 | 140 | ||
140 | #ifndef USING_CX88_ALSA | 141 | #ifndef CONFIG_VIDEO_CX88_ALSA |
141 | /* restart dma; This avoids buzz in NICAM and is good in others */ | 142 | /* restart dma; This avoids buzz in NICAM and is good in others */ |
142 | cx88_stop_audio_dma(core); | 143 | cx88_stop_audio_dma(core); |
143 | #endif | 144 | #endif |
144 | cx_write(AUD_RATE_THRES_DMD, 0x000000C0); | 145 | cx_write(AUD_RATE_THRES_DMD, 0x000000C0); |
145 | #ifndef USING_CX88_ALSA | 146 | #ifndef CONFIG_VIDEO_CX88_ALSA |
146 | cx88_start_audio_dma(core); | 147 | cx88_start_audio_dma(core); |
147 | #endif | 148 | #endif |
148 | 149 | ||
149 | if (cx88_boards[core->board].blackbird) { | 150 | if (cx88_boards[core->board].blackbird) { |
150 | /* sets sound input from external adc */ | 151 | /* sets sound input from external adc */ |
151 | if (core->board == CX88_BOARD_HAUPPAUGE_ROSLYN) | 152 | switch (core->board) { |
153 | case CX88_BOARD_HAUPPAUGE_ROSLYN: | ||
154 | case CX88_BOARD_KWORLD_MCE200_DELUXE: | ||
155 | case CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT: | ||
156 | case CX88_BOARD_PIXELVIEW_PLAYTV_P7000: | ||
157 | case CX88_BOARD_ASUS_PVR_416: | ||
152 | cx_clear(AUD_CTL, EN_I2SIN_ENABLE); | 158 | cx_clear(AUD_CTL, EN_I2SIN_ENABLE); |
153 | else | 159 | break; |
160 | default: | ||
154 | cx_set(AUD_CTL, EN_I2SIN_ENABLE); | 161 | cx_set(AUD_CTL, EN_I2SIN_ENABLE); |
162 | } | ||
155 | 163 | ||
156 | cx_write(AUD_I2SINPUTCNTL, 4); | 164 | cx_write(AUD_I2SINPUTCNTL, 4); |
157 | cx_write(AUD_BAUDRATE, 1); | 165 | cx_write(AUD_BAUDRATE, 1); |