Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3394959pxb; Tue, 19 Apr 2022 01:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNG4poikM2dRcxwIjX9SbzJhpd8mbyz/7/oDkN0sF9uPc8SnV0TBLfUZ/NnfjhNHDAXmGf X-Received: by 2002:a17:907:6e03:b0:6e8:c12b:fb3f with SMTP id sd3-20020a1709076e0300b006e8c12bfb3fmr12430341ejc.98.1650356045895; Tue, 19 Apr 2022 01:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650356045; cv=none; d=google.com; s=arc-20160816; b=0m/XFgQ07Q6Kav35GZ5mJY9BQnk6Q5cXla22/BlC0cRv40qhUTCzZVv4Igt3SNc1V/ sjhv4EzrOlLYIjewClhK7O5Z+Cp+yDYxLDh2nPbEbefmPSTwnzN7wXQ23Waq/JfOwpYA gHaYb51yva4ExGNR8u7sCaTpx5TYkhlomT/86qNgBl8SHbEFbSTsDkZ1dMSC5+76znXO Mw2IMxUm6sFdV5KOJyfFZh8JEjrekrFQNTUz6J0BPFej4rZo2nHeU9zccMZxN6XWdXKI 0s61RB4Rh67vP2cSDuiiXZF1SsEF8868lpPLOYjgXNywJ+OE+UEkP1vA5M9yOR/kma2x 9GEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H5KrF3E+O//4wQIFHxgxAdCfbAe/+Gp2f2IrzVOmI9M=; b=SQpPamhxVxd57+6LMZLjh67Goxc1ztBh6LhGiB9FRwOmyZYZMFzr3Rsog4fu20OvE0 +5T2LmNhCyyMpaxogfOiV4u+mROxlqA3cnJg8WlTvFb99CIAJ6AmqvmnGr0qLQIcnmb2 QY0aqmqJs9tv8Zb/NRpu5cVeoiYkRSxbONf6QxIBlTTtlZrF45lAuorB3LzVDmwh87fd C1ZhS2wNt7x0LdDLCPyUneXWMVGjhWxmFxZbgQWpMf07KwRqJhEfqU/yUTPkVB9T/Eh6 iQM9WzBQu7EbIQCtjFi6Kbw+2Hsxpw+9oR5SbYb/vjyMEN1ye52dQshhsvq1Bje27KFo fJjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gyFddJff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ej23-20020a056402369700b0041df73164e1si7539284edb.508.2022.04.19.01.13.42; Tue, 19 Apr 2022 01:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gyFddJff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238772AbiDRM3n (ORCPT + 99 others); Mon, 18 Apr 2022 08:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238801AbiDRM03 (ORCPT ); Mon, 18 Apr 2022 08:26:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A1312627; Mon, 18 Apr 2022 05:20:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C6A360F0A; Mon, 18 Apr 2022 12:20:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D8A1C385A7; Mon, 18 Apr 2022 12:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284435; bh=cHzjVjOSdviZQieqIhrut6Nw64jgSnt25FS3U1Yufgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gyFddJffgjNaZ7lLlpLOd8dAh7bgSpHjPexTVjaowBf5aB+/sAMF8jPYUORa8PtFI Rb/5JgaYYUdYBkR0O7E6U45PHHldjkqWNdg/yNw0AisMk8164rK5TDkVUcxpSZzxTi Iu1oz8GdDY3Ktx4qkAJqoQEtXQ9r1nL6H0oxRcAE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Sasha Levin Subject: [PATCH 5.17 114/219] ALSA: usb-audio: Increase max buffer size Date: Mon, 18 Apr 2022 14:11:23 +0200 Message-Id: <20220418121210.091031464@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit fee2ec8cceb33b8886bc5894fb07e0b2e34148af ] 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 Link: https://lore.kernel.org/r/20220407212740.17920-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- 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.35.1