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 E41192690D5; Tue, 8 Apr 2025 11:01:02 +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=1744110063; cv=none; b=TDmev3P4M2FsQI5RWcw7FMOVB6hZRVmdpv5Ef41FsN+giydkhZruc1oaVJhenLLpYSst0jkbPNBD7dnb/SXPhCfPzV7YPcBWhHHPSlS5DP5dqxWaRYHPASFgkfTgI5LuHlg04ZRG7EIrc2q8bgMwNdnbMKC5hL+XZJA4MDCPCDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744110063; c=relaxed/simple; bh=3OY/ojBEiMsJvppTiQF68EhrLk1mlp3+5iNGMiHWMVE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O6mFfmgb5tVPoDQHN6mVXPn53R80a1bcsg5CDKbfGJtJNDO3SODnkdsVS7goS5hvEX3+SEHwm8xPZfxhA2GY2l2uHDWdv7qgGvUnNy9Xemm12N8UMofc7xs+TNHo0LiDpcEg9ps7q/wPjbYB1oATJvDTBP/516U3BO2Fg9Hf2Xo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FkLgVRSg; 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="FkLgVRSg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ED4DC4CEE5; Tue, 8 Apr 2025 11:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744110062; bh=3OY/ojBEiMsJvppTiQF68EhrLk1mlp3+5iNGMiHWMVE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FkLgVRSgDODWG6UHwfJmmTkXLZYyW1rbvh6yxveJ+R+h2vCzpfyg1zAPokbPEREyq N7I2wZJ1Obx2Utr1fevHnSEsidHspTfPYWmFDmTMqRhZN+XG+fIbzXDljmqpBmJlLT 7rehT0tCc1LydGmTyM8UkCb/WNpKiKs+K2Pjq/8s= 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.10 127/227] ASoC: ti: j721e-evm: Fix clock configuration for ti,j7200-cpb-audio compatible Date: Tue, 8 Apr 2025 12:48:25 +0200 Message-ID: <20250408104824.138674087@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104820.353768086@linuxfoundation.org> References: <20250408104820.353768086@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 5.10-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 756cd9694cbe8..b749bcc6f0414 100644 --- a/sound/soc/ti/j721e-evm.c +++ b/sound/soc/ti/j721e-evm.c @@ -179,6 +179,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