diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-04-14 15:31:10 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 15:40:06 -0400 |
commit | b8eecc19708dcf36b30058a1e86206480c09efc4 (patch) | |
tree | e621979ca8ce5bbbad41f6516eaf5ce49e15ee81 /sound/soc/codecs/wm8995.c | |
parent | 37d203055e3516e891fb23a40d61a54b65a60d81 (diff) |
ASoC: wm8995: Replace usage deprecated MUX/ENUM macros
SND_SOC_DAPM_VIRT_MUX and SOC_DAPM_ENUM_VIRT are deprecated and merely an alias
for SND_SOC_DAPM_MUX 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/wm8995.c')
-rw-r--r-- | sound/soc/codecs/wm8995.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index d3152cf5bd56..863a2c38bcb5 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c | |||
@@ -885,10 +885,10 @@ static const char *adc_mux_text[] = { | |||
885 | static SOC_ENUM_SINGLE_VIRT_DECL(adc_enum, adc_mux_text); | 885 | static SOC_ENUM_SINGLE_VIRT_DECL(adc_enum, adc_mux_text); |
886 | 886 | ||
887 | static const struct snd_kcontrol_new adcl_mux = | 887 | static const struct snd_kcontrol_new adcl_mux = |
888 | SOC_DAPM_ENUM_VIRT("ADCL Mux", adc_enum); | 888 | SOC_DAPM_ENUM("ADCL Mux", adc_enum); |
889 | 889 | ||
890 | static const struct snd_kcontrol_new adcr_mux = | 890 | static const struct snd_kcontrol_new adcr_mux = |
891 | SOC_DAPM_ENUM_VIRT("ADCR Mux", adc_enum); | 891 | SOC_DAPM_ENUM("ADCR Mux", adc_enum); |
892 | 892 | ||
893 | static const char *spk_src_text[] = { | 893 | static const char *spk_src_text[] = { |
894 | "DAC1L", "DAC1R", "DAC2L", "DAC2R" | 894 | "DAC1L", "DAC1R", "DAC2L", "DAC2R" |
@@ -948,10 +948,8 @@ static const struct snd_soc_dapm_widget wm8995_dapm_widgets[] = { | |||
948 | SND_SOC_DAPM_AIF_OUT("AIF1ADC2R", "AIF1 Capture", | 948 | SND_SOC_DAPM_AIF_OUT("AIF1ADC2R", "AIF1 Capture", |
949 | 0, WM8995_POWER_MANAGEMENT_3, 10, 0), | 949 | 0, WM8995_POWER_MANAGEMENT_3, 10, 0), |
950 | 950 | ||
951 | SND_SOC_DAPM_VIRT_MUX("ADCL Mux", SND_SOC_NOPM, 1, 0, | 951 | SND_SOC_DAPM_MUX("ADCL Mux", SND_SOC_NOPM, 1, 0, &adcl_mux), |
952 | &adcl_mux), | 952 | SND_SOC_DAPM_MUX("ADCR Mux", SND_SOC_NOPM, 0, 0, &adcr_mux), |
953 | SND_SOC_DAPM_VIRT_MUX("ADCR Mux", SND_SOC_NOPM, 0, 0, | ||
954 | &adcr_mux), | ||
955 | 953 | ||
956 | SND_SOC_DAPM_ADC("DMIC2L", NULL, WM8995_POWER_MANAGEMENT_3, 5, 0), | 954 | SND_SOC_DAPM_ADC("DMIC2L", NULL, WM8995_POWER_MANAGEMENT_3, 5, 0), |
957 | SND_SOC_DAPM_ADC("DMIC2R", NULL, WM8995_POWER_MANAGEMENT_3, 4, 0), | 955 | SND_SOC_DAPM_ADC("DMIC2R", NULL, WM8995_POWER_MANAGEMENT_3, 4, 0), |