diff options
author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:32:44 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:32:44 -0500 |
commit | b7f355d23c34399ccfd54fd613c306ab4a788234 (patch) | |
tree | 3e55c0b49918bb82f97650b281ad8feca7ad8007 /drivers/media/video/cx88/cx88-tvaudio.c | |
parent | 0de71224d17f43101fa20696a8d7a78fb599557e (diff) |
V4L/DVB (3293): Added digital support for cx88 (cx88-alsa)
- This module is co-authored by Ricardo Cerqueira <v4l@cerqueira.org>.
- Added digital audio support for cx88-based boards that have function
01 enabled. These boards can be identified by having PCI id 1471:8801
or 1471:8811.
- Increased DMA buffer from 512 to 4096 seems to fix audio distortion.
- Existing audio DMA uses conflict with cx88-alsa. Should be disabled when
cx88-alsa module is compiled.
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-tvaudio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c index 00051a4c1dc2..24118e43e73a 100644 --- a/drivers/media/video/cx88/cx88-tvaudio.c +++ b/drivers/media/video/cx88/cx88-tvaudio.c | |||
@@ -132,10 +132,14 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) | |||
132 | { | 132 | { |
133 | u32 volume; | 133 | u32 volume; |
134 | 134 | ||
135 | #ifndef USING_CX88_ALSA | ||
135 | /* restart dma; This avoids buzz in NICAM and is good in others */ | 136 | /* restart dma; This avoids buzz in NICAM and is good in others */ |
136 | cx88_stop_audio_dma(core); | 137 | cx88_stop_audio_dma(core); |
138 | #endif | ||
137 | cx_write(AUD_RATE_THRES_DMD, 0x000000C0); | 139 | cx_write(AUD_RATE_THRES_DMD, 0x000000C0); |
140 | #ifndef USING_CX88_ALSA | ||
138 | cx88_start_audio_dma(core); | 141 | cx88_start_audio_dma(core); |
142 | #endif | ||
139 | 143 | ||
140 | if (cx88_boards[core->board].blackbird) { | 144 | if (cx88_boards[core->board].blackbird) { |
141 | /* sets sound input from external adc */ | 145 | /* sets sound input from external adc */ |