mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ASoC: codecs: cs42l43-jack: 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/87v7jh773f.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
efdc8c78a5
commit
098931e46c
@@ -502,7 +502,7 @@ static void cs42l43_start_load_detect(struct cs42l43_codec *priv)
|
||||
|
||||
dev_dbg(priv->dev, "Start load detect\n");
|
||||
|
||||
snd_soc_dapm_mutex_lock(snd_soc_component_get_dapm(priv->component));
|
||||
snd_soc_dapm_mutex_lock(snd_soc_component_to_dapm(priv->component));
|
||||
|
||||
priv->load_detect_running = true;
|
||||
|
||||
@@ -539,7 +539,7 @@ static void cs42l43_start_load_detect(struct cs42l43_codec *priv)
|
||||
CS42L43_HPLOAD_DET_EN_MASK,
|
||||
CS42L43_HPLOAD_DET_EN_MASK);
|
||||
|
||||
snd_soc_dapm_mutex_unlock(snd_soc_component_get_dapm(priv->component));
|
||||
snd_soc_dapm_mutex_unlock(snd_soc_component_to_dapm(priv->component));
|
||||
}
|
||||
|
||||
static void cs42l43_stop_load_detect(struct cs42l43_codec *priv)
|
||||
@@ -548,7 +548,7 @@ static void cs42l43_stop_load_detect(struct cs42l43_codec *priv)
|
||||
|
||||
dev_dbg(priv->dev, "Stop load detect\n");
|
||||
|
||||
snd_soc_dapm_mutex_lock(snd_soc_component_get_dapm(priv->component));
|
||||
snd_soc_dapm_mutex_lock(snd_soc_component_to_dapm(priv->component));
|
||||
|
||||
regmap_update_bits(cs42l43->regmap, CS42L43_LOADDETENA,
|
||||
CS42L43_HPLOAD_DET_EN_MASK, 0);
|
||||
@@ -587,7 +587,7 @@ static void cs42l43_stop_load_detect(struct cs42l43_codec *priv)
|
||||
|
||||
priv->load_detect_running = false;
|
||||
|
||||
snd_soc_dapm_mutex_unlock(snd_soc_component_get_dapm(priv->component));
|
||||
snd_soc_dapm_mutex_unlock(snd_soc_component_to_dapm(priv->component));
|
||||
}
|
||||
|
||||
static int cs42l43_run_load_detect(struct cs42l43_codec *priv, bool mic)
|
||||
|
||||
Reference in New Issue
Block a user