diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-04-14 15:31:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 15:40:06 -0400 |
commit | 37d203055e3516e891fb23a40d61a54b65a60d81 (patch) | |
tree | c07cd6dc6f52c19e640da98c7699ce341ee8e244 /sound/soc/codecs/wm8994.c | |
parent | 0a822c1e3bfd00e7a9a5d81ac5887defdd5d4e64 (diff) |
ASoC: wm8994: Replace usage deprecated MUX/ENUM macros
SND_SOC_DAPM_VIRT_MUX, SND_SOC_DAPM_VIRT_MUX_E and SOC_DAPM_ENUM_VIRT are
deprecated and merely an alias for SND_SOC_DAPM_MUX, SND_SOC_DAPM_MUX_E and
SOC_DAPM_ENUM. Replace the deprecated macros so we can eventually remove their
definition.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 6303537f54c6..309c97d89dbb 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -1347,10 +1347,10 @@ static const char *adc_mux_text[] = { | |||
1347 | static SOC_ENUM_SINGLE_VIRT_DECL(adc_enum, adc_mux_text); | 1347 | static SOC_ENUM_SINGLE_VIRT_DECL(adc_enum, adc_mux_text); |
1348 | 1348 | ||
1349 | static const struct snd_kcontrol_new adcl_mux = | 1349 | static const struct snd_kcontrol_new adcl_mux = |
1350 | SOC_DAPM_ENUM_VIRT("ADCL Mux", adc_enum); | 1350 | SOC_DAPM_ENUM("ADCL Mux", adc_enum); |
1351 | 1351 | ||
1352 | static const struct snd_kcontrol_new adcr_mux = | 1352 | static const struct snd_kcontrol_new adcr_mux = |
1353 | SOC_DAPM_ENUM_VIRT("ADCR Mux", adc_enum); | 1353 | SOC_DAPM_ENUM("ADCR Mux", adc_enum); |
1354 | 1354 | ||
1355 | static const struct snd_kcontrol_new left_speaker_mixer[] = { | 1355 | static const struct snd_kcontrol_new left_speaker_mixer[] = { |
1356 | SOC_DAPM_SINGLE("DAC2 Switch", WM8994_SPEAKER_MIXER, 9, 1, 0), | 1356 | SOC_DAPM_SINGLE("DAC2 Switch", WM8994_SPEAKER_MIXER, 9, 1, 0), |
@@ -1651,15 +1651,15 @@ SND_SOC_DAPM_DAC("DAC1R", NULL, WM8994_POWER_MANAGEMENT_5, 0, 0), | |||
1651 | }; | 1651 | }; |
1652 | 1652 | ||
1653 | static const struct snd_soc_dapm_widget wm8994_adc_revd_widgets[] = { | 1653 | static const struct snd_soc_dapm_widget wm8994_adc_revd_widgets[] = { |
1654 | SND_SOC_DAPM_VIRT_MUX_E("ADCL Mux", WM8994_POWER_MANAGEMENT_4, 1, 0, &adcl_mux, | 1654 | SND_SOC_DAPM_MUX_E("ADCL Mux", WM8994_POWER_MANAGEMENT_4, 1, 0, &adcl_mux, |
1655 | adc_mux_ev, SND_SOC_DAPM_PRE_PMU), | 1655 | adc_mux_ev, SND_SOC_DAPM_PRE_PMU), |
1656 | SND_SOC_DAPM_VIRT_MUX_E("ADCR Mux", WM8994_POWER_MANAGEMENT_4, 0, 0, &adcr_mux, | 1656 | SND_SOC_DAPM_MUX_E("ADCR Mux", WM8994_POWER_MANAGEMENT_4, 0, 0, &adcr_mux, |
1657 | adc_mux_ev, SND_SOC_DAPM_PRE_PMU), | 1657 | adc_mux_ev, SND_SOC_DAPM_PRE_PMU), |
1658 | }; | 1658 | }; |
1659 | 1659 | ||
1660 | static const struct snd_soc_dapm_widget wm8994_adc_widgets[] = { | 1660 | static const struct snd_soc_dapm_widget wm8994_adc_widgets[] = { |
1661 | SND_SOC_DAPM_VIRT_MUX("ADCL Mux", WM8994_POWER_MANAGEMENT_4, 1, 0, &adcl_mux), | 1661 | SND_SOC_DAPM_MUX("ADCL Mux", WM8994_POWER_MANAGEMENT_4, 1, 0, &adcl_mux), |
1662 | SND_SOC_DAPM_VIRT_MUX("ADCR Mux", WM8994_POWER_MANAGEMENT_4, 0, 0, &adcr_mux), | 1662 | SND_SOC_DAPM_MUX("ADCR Mux", WM8994_POWER_MANAGEMENT_4, 0, 0, &adcr_mux), |
1663 | }; | 1663 | }; |
1664 | 1664 | ||
1665 | static const struct snd_soc_dapm_widget wm8994_dapm_widgets[] = { | 1665 | static const struct snd_soc_dapm_widget wm8994_dapm_widgets[] = { |