mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 05:36:43 +07:00
ASoC: rt5670: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
The codec field of the snd_soc_widget struct is eventually going to be removed, use snd_soc_dapm_to_codec(w->dapm) instead. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
cc3c340d28
commit
66454b3eb3
@ -699,7 +699,7 @@ static int set_dmic_clk(struct snd_soc_dapm_widget *w,
|
|||||||
static int is_sys_clk_from_pll(struct snd_soc_dapm_widget *source,
|
static int is_sys_clk_from_pll(struct snd_soc_dapm_widget *source,
|
||||||
struct snd_soc_dapm_widget *sink)
|
struct snd_soc_dapm_widget *sink)
|
||||||
{
|
{
|
||||||
struct snd_soc_codec *codec = source->codec;
|
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm);
|
||||||
struct rt5670_priv *rt5670 = snd_soc_codec_get_drvdata(codec);
|
struct rt5670_priv *rt5670 = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
if (rt5670->sysclk_src == RT5670_SCLK_S_PLL1)
|
if (rt5670->sysclk_src == RT5670_SCLK_S_PLL1)
|
||||||
|
Loading…
Reference in New Issue
Block a user