diff --git a/patch/kernel/archive/rockchip64-6.19/general-rt5651-add-mclk.patch b/patch/kernel/archive/rockchip64-6.19/general-rt5651-add-mclk.patch index 785cb5c703..869426b3c2 100644 --- a/patch/kernel/archive/rockchip64-6.19/general-rt5651-add-mclk.patch +++ b/patch/kernel/archive/rockchip64-6.19/general-rt5651-add-mclk.patch @@ -80,14 +80,22 @@ index 111111111111..222222222222 100644 #include "rl6231.h" #include "rt5651.h" -@@ -1511,6 +1512,7 @@ static int rt5651_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source, +diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c +index 60b872f4e8db..2215cc9b96ce 100644 +--- a/sound/soc/codecs/rt5651.c ++++ b/sound/soc/codecs/rt5651.c +@@ -1510,10 +1510,11 @@ static int rt5651_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source, + } + static int rt5651_set_bias_level(struct snd_soc_component *component, enum snd_soc_bias_level level) { + struct rt5651_priv *rt5651 = snd_soc_component_get_drvdata(component); + struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component); + switch (level) { case SND_SOC_BIAS_PREPARE: - if (SND_SOC_BIAS_STANDBY == snd_soc_component_get_bias_level(component)) { + if (SND_SOC_BIAS_STANDBY == snd_soc_dapm_get_bias_level(dapm)) { @@ -1518,6 +1520,13 @@ static int rt5651_set_bias_level(struct snd_soc_component *component, snd_soc_component_update_bits(component, RT5651_D_MISC, 0xc00, 0xc00);