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 146221A3178; Thu, 17 Apr 2025 18:10:03 +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=1744913403; cv=none; b=eFkyQZV906cFDqL9kghMJ3cgmIb55X98xfyI4CqdW0G5uwFwwVq3ZFPJK7I0c4kbuloTT0rnHxQq0+Jy8Pkv8dKLCZtY9wR6sxOUoSd5QX0n7wdMcTD/dIGj1GvmT2bBrJqVADzgo743VF0qXJc/oyHjZ4JhPtDHiaVX2O1qBVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744913403; c=relaxed/simple; bh=8Gt+9fae2OlSvJWHkvbQa6dsTP5cuUeuYiqiDJlhN3g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BRoneDGX94YEAqeT01V6XJnIiC5WhCiTRvqNZBSRh23hgF5D5sglLOGCMgM7vzzfT81f0VQg4k87wnyRAjwiPcFk/ceG7fJVFtpAeXn9d5UdFMu/31UH/x3Is79VBjFzFpUMpdeaZDBFIUPTHektV4VeuKGQu07U03jXq4J0k58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pkUGyR1F; 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="pkUGyR1F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97950C4CEE4; Thu, 17 Apr 2025 18:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744913402; bh=8Gt+9fae2OlSvJWHkvbQa6dsTP5cuUeuYiqiDJlhN3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pkUGyR1FEVROslq5w4bAEfTPMGEQ8HY5EprfvnxW63cCwohpQUmpv9PMoASmARjzY Ai6Iv6I07jhXWERz0xtha+tKKCdXhBJnu7MBAvCsGeXSAu/Xc4Pe20lcBH+Urzk+Pb I4KrIPQDYRJt6KuAJpmYaO3UmORQlF9yHFGP4gwU= 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.14 298/449] ASoC: qdsp6: q6apm-dai: fix capture pipeline overruns. Date: Thu, 17 Apr 2025 19:49:46 +0200 Message-ID: <20250417175130.090858117@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175117.964400335@linuxfoundation.org> References: <20250417175117.964400335@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-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)