]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/alsa-ca0106-capture-no-44khz
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / alsa-ca0106-capture-no-44khz
1 From: Takashi Iwai <tiwai@suse.de>
2 Subject: ALSA: disable 44.1kHz capture on CA0106
3 Patch-mainline:
4 References: bnc#447624
5
6 The capture with 44.1kHz on CA0106 seems to cause the playback problem
7 that doesn't suppor 44.1kHz. A simple fix is to disabling 44.1kHz
8 support.
9
10 Signed-off-by: Takashi Iwai <tiwai@suse.de>
11
12 ---
13
14 diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
15 index 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,