From 3db715174191e0f8015b5763f8f30ca78bec5512 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Sun, 15 Oct 2023 11:26:26 +0800 Subject: [PATCH] ASoC: rockchip: i2s: Use component kcontrol API Fixes: a2d0c7f12f46 ("ASoC: rockchip: i2s: Use add_component_controls") Signed-off-by: Sugar Zhang Change-Id: I8343bf048cd3378e878286661a7c55c1255a532e --- sound/soc/rockchip/rockchip_i2s.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 5c85fefe81e7..f3f1f96d7007 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -572,8 +572,8 @@ static int rockchip_i2s_clk_compensation_info(struct snd_kcontrol *kcontrol, static int rockchip_i2s_clk_compensation_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { - struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); - struct rk_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai); + struct snd_soc_component *compnt = snd_soc_kcontrol_component(kcontrol); + struct rk_i2s_dev *i2s = snd_soc_component_get_drvdata(compnt); ucontrol->value.integer.value[0] = i2s->clk_ppm; @@ -583,8 +583,8 @@ static int rockchip_i2s_clk_compensation_get(struct snd_kcontrol *kcontrol, static int rockchip_i2s_clk_compensation_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { - struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); - struct rk_i2s_dev *i2s = snd_soc_dai_get_drvdata(dai); + struct snd_soc_component *compnt = snd_soc_kcontrol_component(kcontrol); + struct rk_i2s_dev *i2s = snd_soc_component_get_drvdata(compnt); int ppm = ucontrol->value.integer.value[0]; if ((ucontrol->value.integer.value[0] < CLK_PPM_MIN) ||