mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
ASoC: samsung: midas_wm1811: 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/87a50tv238.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
eac123525d
commit
311c12f703
|
|
@ -73,7 +73,7 @@ static struct snd_soc_jack_zone headset_key_zones[] = {
|
|||
static int headset_jack_check(void *data)
|
||||
{
|
||||
struct snd_soc_component *codec = data;
|
||||
struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(codec);
|
||||
struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(codec);
|
||||
struct midas_priv *priv = snd_soc_card_get_drvdata(codec->card);
|
||||
int adc, ret;
|
||||
int jack_type = 0;
|
||||
|
|
@ -285,7 +285,7 @@ static int midas_ext_spkmode(struct snd_soc_dapm_widget *w,
|
|||
static int midas_fm_set(struct snd_soc_dapm_widget *w,
|
||||
struct snd_kcontrol *kcontrol, int event)
|
||||
{
|
||||
struct snd_soc_card *card = w->dapm->card;
|
||||
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
|
||||
struct midas_priv *priv = snd_soc_card_get_drvdata(card);
|
||||
|
||||
if (!priv->gpio_fm_sel)
|
||||
|
|
@ -306,7 +306,7 @@ static int midas_fm_set(struct snd_soc_dapm_widget *w,
|
|||
static int midas_line_set(struct snd_soc_dapm_widget *w,
|
||||
struct snd_kcontrol *kcontrol, int event)
|
||||
{
|
||||
struct snd_soc_card *card = w->dapm->card;
|
||||
struct snd_soc_card *card = snd_soc_dapm_to_card(w->dapm);
|
||||
struct midas_priv *priv = snd_soc_card_get_drvdata(card);
|
||||
|
||||
if (!priv->gpio_lineout_sel)
|
||||
|
|
@ -376,7 +376,7 @@ static int midas_set_bias_level(struct snd_soc_card *card,
|
|||
&card->dai_link[0]);
|
||||
struct snd_soc_dai *aif1_dai = snd_soc_rtd_to_codec(rtd, 0);
|
||||
|
||||
if (dapm->dev != aif1_dai->dev)
|
||||
if (snd_soc_dapm_to_dev(dapm) != aif1_dai->dev)
|
||||
return 0;
|
||||
|
||||
switch (level) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user