[ALSA] usb-audio: increase max buffer size
authorClemens Ladisch <clemens@ladisch.de>
Mon, 26 Sep 2005 07:59:57 +0000 (09:59 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 7 Oct 2005 12:46:11 +0000 (14:46 +0200)
USB generic driver
Increase the maximum PCM buffer size to 1 MB.  The USB driver doesn't
have any inherent buffer size limit, and big multichannel interfaces
may benefit from this.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbaudio.c

index d5ae205..2ead878 100644 (file)
@@ -1444,9 +1444,9 @@ static snd_pcm_hardware_t snd_usb_playback =
                                SNDRV_PCM_INFO_BATCH |
                                SNDRV_PCM_INFO_INTERLEAVED |
                                SNDRV_PCM_INFO_BLOCK_TRANSFER,
-       .buffer_bytes_max =     (256*1024),
+       .buffer_bytes_max =     1024 * 1024,
        .period_bytes_min =     64,
-       .period_bytes_max =     (128*1024),
+       .period_bytes_max =     512 * 1024,
        .periods_min =          2,
        .periods_max =          1024,
 };
@@ -1458,9 +1458,9 @@ static snd_pcm_hardware_t snd_usb_capture =
                                SNDRV_PCM_INFO_BATCH |
                                SNDRV_PCM_INFO_INTERLEAVED |
                                SNDRV_PCM_INFO_BLOCK_TRANSFER,
-       .buffer_bytes_max =     (256*1024),
+       .buffer_bytes_max =     1024 * 1024,
        .period_bytes_min =     64,
-       .period_bytes_max =     (128*1024),
+       .period_bytes_max =     512 * 1024,
        .periods_min =          2,
        .periods_max =          1024,
 };