]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/alsa-ca0106-capture-no-44khz
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / alsa-ca0106-capture-no-44khz
CommitLineData
2cb7cef9
BS
1From: Takashi Iwai <tiwai@suse.de>
2Subject: ALSA: disable 44.1kHz capture on CA0106
3Patch-mainline:
4References: bnc#447624
5
6The capture with 44.1kHz on CA0106 seems to cause the playback problem
7that doesn't suppor 44.1kHz. A simple fix is to disabling 44.1kHz
8support.
9
10Signed-off-by: Takashi Iwai <tiwai@suse.de>
11
12---
13
14diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
15index 5763174..c2e5c97 100644
16--- a/sound/pci/ca0106/ca0106_main.c
17+++ b/sound/pci/ca0106/ca0106_main.c
18@@ -305,9 +305,15 @@ static struct snd_pcm_hardware snd_ca0106_capture_hw = {
19 SNDRV_PCM_INFO_BLOCK_TRANSFER |
20 SNDRV_PCM_INFO_MMAP_VALID),
21 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE,
22+#if 0
23 .rates = (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |
24 SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000),
25 .rate_min = 44100,
26+#else
27+ .rates = (SNDRV_PCM_RATE_48000 |
28+ SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000),
29+ .rate_min = 48000,
30+#endif
31 .rate_max = 192000,
32 .channels_min = 2,
33 .channels_max = 2,