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 68D9B2690FA; Tue, 8 Apr 2025 12:11:41 +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=1744114301; cv=none; b=L8M7ytQ+ODs1maRSwSTI06wKd7Cgb5LLNvnQzlIOB65zYaVnjDtnB53BmJ3olo4KmIIDefZ2ITKk3jj4wDTZ8I2J2maodktxev19hnxSVIGSkL2KYyGMMuzmHDZGZxZhx9IZHUih99yPUZLnI7xhc7chc0xH8nqQ5rqUfjOuF3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744114301; c=relaxed/simple; bh=KJPGC6G0I9o/+DwpTEysJOxtVf5X+2O2/JmfqRGvYHU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s5nrzhJcIv9bsv9YDB8FPSqSNuwYgJSkFIxw9wlWuDn9rEgUyUSNnDhbH34E+N65/F4Lc3XnKZ/+U75+G9drtoKNvWYu47jG/2RpY5feJyaBD3mZFsDR71FeaZ/GnzBAtrXCBjccMvZALtY5V7csOAingkQc5ODJtyCdX7H5Hlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Gt+Oi6eP; 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="Gt+Oi6eP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBF75C4CEE5; Tue, 8 Apr 2025 12:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744114301; bh=KJPGC6G0I9o/+DwpTEysJOxtVf5X+2O2/JmfqRGvYHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gt+Oi6eP9KyGiRn49vvN069aiK/yp9/hqIw9Av1xURK1bzicznbOMhb3380Ps+NVL AU6TxwzGVdCVkgLAEvREGoE6HbCU2DfecjNCHWsqPvCYIo+MZpWq+HDMRZf8SHXN+7 upEnKYApcQnT+Fg3AqtZdf/0yk9V/1bgvcNhhtxU= 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 6.13 057/499] ASoC: ti: j721e-evm: Fix clock configuration for ti,j7200-cpb-audio compatible Date: Tue, 8 Apr 2025 12:44:29 +0200 Message-ID: <20250408104852.659725127@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104851.256868745@linuxfoundation.org> References: <20250408104851.256868745@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.13-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 d9d1e021f5b2e..0f96cc45578d8 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