]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ALSA: ca0106 - Fix the max capture buffer size
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Jul 2009 13:42:51 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 23:06:04 +0000 (16:06 -0700)
commit 34fdeb2d07102e07ecafe79dec170bd6733f2e56 upstream.

The capture buffer size with 64kB seems broken with CA0106.
At least, either the update timing or the DMA position is wrong,
and this screws up pulseaudio badly.

This patch restricts the max buffer size less than that to make life
a bit easier.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/ca0106/ca0106_main.c

index 6abe8a3bd365cc703d6d405b579f80f60dc051a9..2b8b1ed03d73411ca9850552c2b6bff61db0bda9 100644 (file)
@@ -311,9 +311,9 @@ static struct snd_pcm_hardware snd_ca0106_capture_hw = {
        .rate_max =             192000,
        .channels_min =         2,
        .channels_max =         2,
-       .buffer_bytes_max =     ((65536 - 64) * 8),
+       .buffer_bytes_max =     65536 - 128,
        .period_bytes_min =     64,
-       .period_bytes_max =     (65536 - 64),
+       .period_bytes_max =     32768 - 64,
        .periods_min =          2,
        .periods_max =          2,
        .fifo_size =            0,