Skip to content

Commit 45ff65e

Browse files
jayesh-tibroonie
authored andcommitted
ASoC: ti: j721e-evm: Fix clock configuration for ti,j7200-cpb-audio compatible
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: 6748d05 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)") Signed-off-by: Jayesh Choudhary <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 309b367 commit 45ff65e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/ti/j721e-evm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ static int j721e_configure_refclk(struct j721e_priv *priv,
182182
clk_id = J721E_CLK_PARENT_48000;
183183
else if (!(rate % 11025) && priv->pll_rates[J721E_CLK_PARENT_44100])
184184
clk_id = J721E_CLK_PARENT_44100;
185+
else if (!(rate % 11025) && priv->pll_rates[J721E_CLK_PARENT_48000])
186+
clk_id = J721E_CLK_PARENT_48000;
185187
else
186188
return ret;
187189

0 commit comments

Comments
 (0)