Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: codecs: lpass-rx-macro: convert to snd_soc_dapm_xxx()

This patch converts below functions.

dapm->dev -> snd_soc_dapm_to_dev()
dapm->card -> snd_soc_dapm_to_card()
dapm->component -> snd_soc_dapm_to_component()

dapm_kcontrol_get_value() -> snd_soc_dapm_kcontrol_get_value()

snd_soc_component_enable_pin() -> snd_soc_dapm_enable_pin()
snd_soc_component_enable_pin_unlocked() -> snd_soc_dapm_enable_pin_unlocked()
snd_soc_component_disable_pin() -> snd_soc_dapm_disable_pin()
snd_soc_component_disable_pin_unlocked() -> snd_soc_dapm_disable_pin_unlocked()
snd_soc_component_nc_pin() -> snd_soc_dapm_nc_pin()
snd_soc_component_nc_pin_unlocked() -> snd_soc_dapm_nc_pin_unlocked()
snd_soc_component_get_pin_status() -> snd_soc_dapm_get_pin_status()
snd_soc_component_force_enable_pin() -> snd_soc_dapm_force_enable_pin()
snd_soc_component_force_enable_pin_unlocked() -> snd_soc_dapm_force_enable_pin_unlocked()
snd_soc_component_force_bias_level() -> snd_soc_dapm_force_bias_level()
snd_soc_component_get_bias_level() -> snd_soc_dapm_get_bias_level()
snd_soc_component_init_bias_level() -> snd_soc_dapm_init_bias_level()
snd_soc_component_get_dapm() -> snd_soc_component_to_dapm()

snd_soc_dapm_kcontrol_component() -> snd_soc_dapm_kcontrol_to_component()
snd_soc_dapm_kcontrol_widget() -> snd_soc_dapm_kcontrol_to_widget()
snd_soc_dapm_kcontrol_dapm() -> snd_soc_dapm_kcontrol_to_dapm()
snd_soc_dapm_np_pin() -> snd_soc_dapm_disable_pin()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/87cy5p5sf2.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
16d4e861 45da4a45

+4 -4
+4 -4
sound/soc/codecs/lpass-rx-macro.c
··· 1682 1682 static int rx_macro_int_dem_inp_mux_put(struct snd_kcontrol *kcontrol, 1683 1683 struct snd_ctl_elem_value *ucontrol) 1684 1684 { 1685 - struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol); 1685 + struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_to_widget(kcontrol); 1686 1686 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); 1687 1687 struct rx_macro *rx = snd_soc_component_get_drvdata(component); 1688 1688 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; ··· 2458 2458 static int rx_macro_mux_get(struct snd_kcontrol *kcontrol, 2459 2459 struct snd_ctl_elem_value *ucontrol) 2460 2460 { 2461 - struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol); 2461 + struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_to_widget(kcontrol); 2462 2462 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); 2463 2463 struct rx_macro *rx = snd_soc_component_get_drvdata(component); 2464 2464 ··· 2470 2470 static int rx_macro_mux_put(struct snd_kcontrol *kcontrol, 2471 2471 struct snd_ctl_elem_value *ucontrol) 2472 2472 { 2473 - struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol); 2473 + struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_to_widget(kcontrol); 2474 2474 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm); 2475 2475 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; 2476 2476 struct snd_soc_dapm_update *update = NULL; ··· 3609 3609 3610 3610 static int rx_macro_component_probe(struct snd_soc_component *component) 3611 3611 { 3612 - struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); 3612 + struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component); 3613 3613 struct rx_macro *rx = snd_soc_component_get_drvdata(component); 3614 3614 const struct snd_soc_dapm_widget *widgets; 3615 3615 const struct snd_kcontrol_new *controls;