aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-06-19 13:34:02 -0400
committerMark Brown <broonie@linaro.org>2013-06-19 14:47:45 -0400
commitf9eeae9f04cafe2619be7ce17952dc502baeac39 (patch)
treeee42b0f29e4720b7e22577cf90098943ceded8e9 /sound
parent98809ae22b48e52d147695ab28999471835f5978 (diff)
ASoC: wm_adsp: Use SND_SOC_DAPM_PGA_E() instead of open-coding it
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm_adsp.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index fea514627526..36533eac420e 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -58,14 +58,12 @@ struct wm_adsp {
58}; 58};
59 59
60#define WM_ADSP1(wname, num) \ 60#define WM_ADSP1(wname, num) \
61 { .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, \ 61 SND_SOC_DAPM_PGA_E(wname, SND_SOC_NOPM, num, 0, NULL, 0, \
62 .shift = num, .event = wm_adsp1_event, \ 62 wm_adsp1_event, SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD)
63 .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
64 63
65#define WM_ADSP2(wname, num) \ 64#define WM_ADSP2(wname, num) \
66{ .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, \ 65 SND_SOC_DAPM_PGA_E(wname, SND_SOC_NOPM, num, 0, NULL, 0, \
67 .shift = num, .event = wm_adsp2_event, \ 66 wm_adsp2_event, SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD)
68 .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
69 67
70extern const struct snd_kcontrol_new wm_adsp1_fw_controls[]; 68extern const struct snd_kcontrol_new wm_adsp1_fw_controls[];
71extern const struct snd_kcontrol_new wm_adsp2_fw_controls[]; 69extern const struct snd_kcontrol_new wm_adsp2_fw_controls[];