All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: Increase max buffer size
@ 2022-04-07 21:27 Takashi Iwai
  2022-04-08  7:15 ` Jaroslav Kysela
  2022-04-09 20:36 ` Geraldo Nascimento
  0 siblings, 2 replies; 7+ messages in thread
From: Takashi Iwai @ 2022-04-07 21:27 UTC (permalink / raw)
  To: alsa-devel

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/usb/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 6a460225f2e3..37ee6df8b15a 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -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 =
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-10  7:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 21:27 [PATCH] ALSA: usb-audio: Increase max buffer size Takashi Iwai
2022-04-08  7:15 ` Jaroslav Kysela
2022-04-09 20:36 ` Geraldo Nascimento
2022-04-09 20:43   ` Jaroslav Kysela
2022-04-09 21:11     ` Geraldo Nascimento
2022-04-09 22:24       ` Geraldo Nascimento
2022-04-10  7:40     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.