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 500A0265602; Tue, 8 Apr 2025 11:44:08 +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=1744112648; cv=none; b=E5jEJNKV3/VsuhE1xW52WjNXyQsL1bkJNF32+8k71o+J/0gcDgBGtKx1MuGAWrlkjZgFYOnIWYYWGcvDy3BmEuSVSuC4jSf8Zhj48ESq/iflXhBQOKbDHh0yXw4S79iVZ4/kLG4SDz8X2E9u0BV0+Ticu/L2kqc7PtPs94XnYNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744112648; c=relaxed/simple; bh=ziD3inXXdU/eJhLjqnvjAWiFmCK+jMW1r7GG9VMasQE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XIaABPZ5E1sSV5nv77UCDxA1FCR/MyoZXro2ezyKwzln7l/s40qn8jOEiKVnO0SI9mRoowlEKAR4xxn7eEmykja3DRpzfsgKd58hGPEpG6O83HWGCH+b1DyU17lm6B9Ll3tAlRdyN6gHfE4kIie82pc6kxDpf1PGVZsblDdd1jo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B6mLuR51; 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="B6mLuR51" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D14E4C4CEE5; Tue, 8 Apr 2025 11:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744112648; bh=ziD3inXXdU/eJhLjqnvjAWiFmCK+jMW1r7GG9VMasQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B6mLuR51dxpav9AwLEqLDty8iSCSHlzFkL986TwtR2sPQ8CKstgZlqlJ8NRjAegDw 2CuvKf0/ntap4zTAsjPA5nT9yBuObiymbS4LdajlAPf/V3LLHn6IISTaizVRX81qcW od6FPtZG5TwfUmVAtRMzRehxQt7wfnmDNSB5FfJ8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jayesh Choudhary , Mark Brown , Sasha Levin Subject: [PATCH 5.15 146/279] ASoC: ti: j721e-evm: Fix clock configuration for ti,j7200-cpb-audio compatible Date: Tue, 8 Apr 2025 12:48:49 +0200 Message-ID: <20250408104830.278812438@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104826.319283234@linuxfoundation.org> References: <20250408104826.319283234@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 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jayesh Choudhary [ Upstream commit 45ff65e30deb919604e68faed156ad96ce7474d9 ] For 'ti,j7200-cpb-audio' compatible, there is support for only one PLL for 48k. For 11025, 22050, 44100 and 88200 sampling rates, due to absence of J721E_CLK_PARENT_44100, we get EINVAL while running any audio application. Add support for these rates by using the 48k parent clock and adjusting the clock for these rates later in j721e_configure_refclk. Fixes: 6748d0559059 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)") Signed-off-by: Jayesh Choudhary Link: https://patch.msgid.link/20250318113524.57100-1-j-choudhary@ti.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/ti/j721e-evm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/ti/j721e-evm.c b/sound/soc/ti/j721e-evm.c index 149f4e2ce9998..7f2734318452f 100644 --- a/sound/soc/ti/j721e-evm.c +++ b/sound/soc/ti/j721e-evm.c @@ -182,6 +182,8 @@ static int j721e_configure_refclk(struct j721e_priv *priv, clk_id = J721E_CLK_PARENT_48000; else if (!(rate % 11025) && priv->pll_rates[J721E_CLK_PARENT_44100]) clk_id = J721E_CLK_PARENT_44100; + else if (!(rate % 11025) && priv->pll_rates[J721E_CLK_PARENT_48000]) + clk_id = J721E_CLK_PARENT_48000; else return ret; -- 2.39.5