ASoC: codecs: arizona: convert to snd_soc_dapm_xxx()
Subsystems (3)
PATCH 1/1 ASoC: codecs: arizona: 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()
---
Hi Mark
It seems this patch was drop in the crack
sound/soc/codecs/arizona.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
sound/soc/codecs/arizona.c +8 -10
@@ -169,7 +169,7 @@ static const struct snd_soc_dapm_widget arizona_spkr =int arizona_init_spk (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int ret;
@@ -238,7 +238,7 @@ static const struct snd_soc_dapm_route arizona_mono_routes[] = {int arizona_init_mono (struct snd_soc_component *component) { -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int i;
@@ -255,6 +255,7 @@ EXPORT_SYMBOL_GPL(arizona_init_mono);int arizona_init_gpio (struct snd_soc_component *component) { +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona *arizona = priv->arizona;int i;
@@ -262,24 +263,21 @@ int arizona_init_gpio(struct snd_soc_component *component)switch (arizona->type) {case WM5110 :case WM8280 : -snd_soc_component_disable_pin (component, -"DRC2 Signal Activity" ); +snd_soc_dapm_disable_pin (dapm,"DRC2 Signal Activity" );break ;default :break ; } -snd_soc_component_disable_pin (component,"DRC1 Signal Activity" ); +snd_soc_dapm_disable_pin (dapm,"DRC1 Signal Activity" );for (i =0 ; i <ARRAY_SIZE (arizona->pdata.gpio_defaults); i++) {switch (arizona->pdata.gpio_defaults[i] &ARIZONA_GPN_FN_MASK ) {case ARIZONA_GP_FN_DRC1_SIGNAL_DETECT : -snd_soc_component_enable_pin (component, -"DRC1 Signal Activity" ); +snd_soc_dapm_enable_pin (dapm,"DRC1 Signal Activity" );break ;case ARIZONA_GP_FN_DRC2_SIGNAL_DETECT : -snd_soc_component_enable_pin (component, -"DRC2 Signal Activity" ); +snd_soc_dapm_enable_pin (dapm,"DRC2 Signal Activity" );break ;default :break ;
@@ -1911,7 +1909,7 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir) { struct snd_soc_component *component = dai->component; -struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (component); +struct snd_soc_dapm_context *dapm =snd_soc_component_to_dapm (component);struct arizona_priv *priv =snd_soc_component_get_drvdata (component);struct arizona_dai_priv *dai_priv = &priv->dai[dai->id -1 ];struct snd_soc_dapm_route routes[2 ];
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 9 lines · Kuninori Morimoto
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()[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: codecs: arizona: convert to snd_soc_dapm_xxx()
commit: 041e502d4ca66341696fcf54a76f3724b80f0b1f
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark