From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89D3B25EFA3; Thu, 17 Apr 2025 18:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915913; cv=none; b=AlTkkHYTJvgSVYykauBJ/NZy7SX/+0l7E0EGyWD+h0j/jz0R69LZCc4jtq+W0kR/AHjRfFQDBVih0hKYwFLvYqWmHOkPHKCK7aNFJqt481Dnycf5egmeNXKlerv23QFk6J/s/uf8Nvm8N73uzTP03hbxeXaiSLHJf8Lad7J6EHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915913; c=relaxed/simple; bh=oAZaxdpNcC7V/ZDenK4gRozi+V6Gr6KHqFqTh/VED1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tHqezxXermJDXw98CCtZNgrMjhJuAbsk0iY09xtQ7OT8kY06xva3j5VgtQn5Z2KU9UwB7NWJu6w5mRre25MZ55MLV/suxcMrGFRCYZIjwXT7m4euYQcv4K2jQrT4tCtJin55cgTu3wESrbNKSTqlOOpk/TBmbguiGc2K7svqAo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yzxldklP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yzxldklP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CA72C4CEE4; Thu, 17 Apr 2025 18:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915913; bh=oAZaxdpNcC7V/ZDenK4gRozi+V6Gr6KHqFqTh/VED1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yzxldklP2JSk2W5iQ/ixqMp8bILWzURKL9UguaSBiKcZLLHJHZ2rnYYCC2/4QEZig TWIDSAUpZbLs1cK8nMyqHE6Ty2q1hIDOk9TSV1Tyr0LlDdNajpbx05f/2kGvlcX8v0 PDms+72a6cKf0j3Kkp88774QaQCaLNb9qO+3IwYI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Srinivas Kandagatla , Krzysztof Kozlowski , Johan Hovold , Mark Brown Subject: [PATCH 6.12 254/393] ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns. Date: Thu, 17 Apr 2025 19:51:03 +0200 Message-ID: <20250417175117.803626429@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175107.546547190@linuxfoundation.org> References: <20250417175107.546547190@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Srinivas Kandagatla commit 5d01ed9b9939b4c726be74db291a982bc984c584 upstream. Period sizes less than 6k for capture path triggers overruns in the dsp capture pipeline. Change the period size and number of periods to value which DSP is happy with. Fixes: 9b4fe0f1cd79 ("ASoC: qdsp6: audioreach: add q6apm-dai support") Cc: stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla Tested-by: Krzysztof Kozlowski Tested-by: Johan Hovold Link: https://patch.msgid.link/20250314174800.10142-6-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/qcom/qdsp6/q6apm-dai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/qcom/qdsp6/q6apm-dai.c +++ b/sound/soc/qcom/qdsp6/q6apm-dai.c @@ -24,8 +24,8 @@ #define PLAYBACK_MIN_PERIOD_SIZE 128 #define CAPTURE_MIN_NUM_PERIODS 2 #define CAPTURE_MAX_NUM_PERIODS 8 -#define CAPTURE_MAX_PERIOD_SIZE 4096 -#define CAPTURE_MIN_PERIOD_SIZE 320 +#define CAPTURE_MAX_PERIOD_SIZE 65536 +#define CAPTURE_MIN_PERIOD_SIZE 6144 #define BUFFER_BYTES_MAX (PLAYBACK_MAX_NUM_PERIODS * PLAYBACK_MAX_PERIOD_SIZE) #define BUFFER_BYTES_MIN (PLAYBACK_MIN_NUM_PERIODS * PLAYBACK_MIN_PERIOD_SIZE) #define COMPR_PLAYBACK_MAX_FRAGMENT_SIZE (128 * 1024)