ASoC: rt5682: Register clocks even when mclk is NULL
Subsystems (3)
PATCH 1/1 ASoC: rt5682: Register clocks even when mclk is NULL
Fixes kernel crash on platforms which do not have mclk exposed in CCF framework. For these platforms have mclk as NULL and continue to register clocks.
Signed-off-by Akshu Agrawal <[email protected]>
--- sound/soc/codecs/rt5682.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
sound/soc/codecs/rt5682.c +4 -5
@@ -2829,12 +2829,11 @@ static int rt5682_probe(struct snd_soc_component *component) return ret; } rt5682->mclk =NULL ; - }else { -/* Register CCF DAI clock control */ - ret =rt5682_register_dai_clks (component); -if (ret) -return ret; } +/* Register CCF DAI clock control */ + ret =rt5682_register_dai_clks (component); +if (ret) +return ret;/* Initial setup for CCF */ rt5682->lrck[RT5682_AIF1 ] =CLK_48 ;#endif
Signature · 1 line
2.20.1
Mark Brown
maintainerQuoted 3 lines · Akshu Agrawal
Fixes kernel crash on platforms which do not have mclk exposed in CCF framework. For these platforms have mclk as NULL and continue to register clocks.
Derek already submitted this:
https://lore.kernel.org/alsa-devel/[email protected]/T/#u
Quoted 7 lines · Mark Brown
Quoted 3 lines · Akshu Agrawal
Fixes kernel crash on platforms which do not have mclk exposed in CCF framework. For these platforms have mclk as NULL and continue to register clocks.
Derek already submitted this:
https://lore.kernel.org/alsa-devel/[email protected]/T/#u
Ok great. Thanks.