]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ALSA: usb-audio: Increase max buffer size
authorTakashi Iwai <tiwai@suse.de>
Thu, 7 Apr 2022 21:27:40 +0000 (23:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Apr 2022 12:30:25 +0000 (14:30 +0200)
The current limit of max buffer size 1MB seems too small for modern
devices with lots of channels and high sample rates.
Let's make bigger, 4MB.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220407212740.17920-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c

index 6a460225f2e38952f9fc8e9df4bbfe646669e776..37ee6df8b15a71872989014d0ee35f22b85fbc3d 100644 (file)
@@ -659,7 +659,7 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
 #define hwc_debug(fmt, args...) do { } while(0)
 #endif
 
-#define MAX_BUFFER_BYTES       (1024 * 1024)
+#define MAX_BUFFER_BYTES       (4 * 1024 * 1024)
 #define MAX_PERIOD_BYTES       (512 * 1024)
 
 static const struct snd_pcm_hardware snd_usb_hardware =