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 5F8AC19066B; Tue, 15 Jul 2025 13:16:23 +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=1752585383; cv=none; b=W5asenmDh6kqEIK0vlIRr+ZfX9Sqxle+E7o2UmUWEw2JSip+htZ8mBOLbe6NR02FADYoTJo/1/y11V6Kh5ETx9ZpDgZiMObfOu4K44LPz4LVQfo4Ewli2gtjsoZ5Vw1K7jeKM+D3JdGDj2eGL3OjVXxRVhxpCey4nuQ4hpNvxD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752585383; c=relaxed/simple; bh=YcAkPABM7ZKFE7zp5EE03Lft0y7VcjU05eqG7npe3Lo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FEO75kPypXz5l1zYGxFUV+PqhDHMgzlrB3zSwNalzBA0OPKmsmJYkJRHJrUEVHlrZrT7lO2AwuECH/uoFi3RL0DQU2uoCUtP0VA//f0Ka3VCAyrJvFPoaWczPXER0Wnq8JkNPtuF0HsXPN71fNz9oj3YyhNfmfUYJz3NPnryAiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CkSxR5fx; 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="CkSxR5fx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C46FC4CEE3; Tue, 15 Jul 2025 13:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752585383; bh=YcAkPABM7ZKFE7zp5EE03Lft0y7VcjU05eqG7npe3Lo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CkSxR5fxNS8yOdun27na7JljfBiL0kh+W1awv/CgYiiW2uKCTKycOyPm9gcHYuxjc tgApA+B3rCyRJg+yK3tFN433cHjilAaivEZQyoHvhNyK4U/LVs+nJBc6yYrhgj6XA+ oKddxa28He4Uu3L8Lt/+Xy+n+gk61TqsVP9klBwQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shengjiu Wang , Daniel Baluta , Mark Brown , Sasha Levin Subject: [PATCH 6.12 007/163] ASoC: fsl_asrc: use internal measured ratio for non-ideal ratio mode Date: Tue, 15 Jul 2025 15:11:15 +0200 Message-ID: <20250715130809.072663338@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250715130808.777350091@linuxfoundation.org> References: <20250715130808.777350091@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.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shengjiu Wang [ Upstream commit cbe876121633dadb2b0ce52711985328638e9aab ] When USRC=0, there is underrun issue for the non-ideal ratio mode; according to the reference mannual, the internal measured ratio can be used with USRC=1 and IDRC=0. Fixes: d0250cf4f2ab ("ASoC: fsl_asrc: Add an option to select internal ratio mode") Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Link: https://patch.msgid.link/20250625020504.2728161-1-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_asrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index bd5c46d763c0f..ffd4a6ca5f3cb 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -517,7 +517,8 @@ static int fsl_asrc_config_pair(struct fsl_asrc_pair *pair, bool use_ideal_rate) regmap_update_bits(asrc->regmap, REG_ASRCTR, ASRCTR_ATSi_MASK(index), ASRCTR_ATS(index)); regmap_update_bits(asrc->regmap, REG_ASRCTR, - ASRCTR_USRi_MASK(index), 0); + ASRCTR_IDRi_MASK(index) | ASRCTR_USRi_MASK(index), + ASRCTR_USR(index)); /* Set the input and output clock sources */ regmap_update_bits(asrc->regmap, REG_ASRCSR, -- 2.39.5