diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-26 16:50:48 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-26 14:21:28 -0400 |
commit | 35d3889389f658dd30eefd650fc774c9b00871e5 (patch) | |
tree | 4caf6714ae0fa216dde7de44c487c1c7c326d463 /sound/soc | |
parent | aeaeee1a1f054610299e614749d2c5a31cec3c8d (diff) |
ASoC: wm5110: Rename EPOUT to HPOUT3
The third output on WM5110 is a general purpose headphone output which can
be used to drive an earpice rather than a dedicated earpiece driver.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm5110.c | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c index 259f251400d5..9eabfb62fcfa 100644 --- a/sound/soc/codecs/wm5110.c +++ b/sound/soc/codecs/wm5110.c | |||
@@ -153,6 +153,15 @@ SOC_ENUM("LHPF2 Mode", arizona_lhpf2_mode), | |||
153 | SOC_ENUM("LHPF3 Mode", arizona_lhpf3_mode), | 153 | SOC_ENUM("LHPF3 Mode", arizona_lhpf3_mode), |
154 | SOC_ENUM("LHPF4 Mode", arizona_lhpf4_mode), | 154 | SOC_ENUM("LHPF4 Mode", arizona_lhpf4_mode), |
155 | 155 | ||
156 | ARIZONA_MIXER_CONTROLS("DSP1L", ARIZONA_DSP1LMIX_INPUT_1_SOURCE), | ||
157 | ARIZONA_MIXER_CONTROLS("DSP1R", ARIZONA_DSP1RMIX_INPUT_1_SOURCE), | ||
158 | ARIZONA_MIXER_CONTROLS("DSP2L", ARIZONA_DSP2LMIX_INPUT_1_SOURCE), | ||
159 | ARIZONA_MIXER_CONTROLS("DSP2R", ARIZONA_DSP2RMIX_INPUT_1_SOURCE), | ||
160 | ARIZONA_MIXER_CONTROLS("DSP3L", ARIZONA_DSP3LMIX_INPUT_1_SOURCE), | ||
161 | ARIZONA_MIXER_CONTROLS("DSP3R", ARIZONA_DSP3RMIX_INPUT_1_SOURCE), | ||
162 | ARIZONA_MIXER_CONTROLS("DSP4L", ARIZONA_DSP4LMIX_INPUT_1_SOURCE), | ||
163 | ARIZONA_MIXER_CONTROLS("DSP5R", ARIZONA_DSP4RMIX_INPUT_1_SOURCE), | ||
164 | |||
156 | ARIZONA_MIXER_CONTROLS("Mic", ARIZONA_MICMIX_INPUT_1_SOURCE), | 165 | ARIZONA_MIXER_CONTROLS("Mic", ARIZONA_MICMIX_INPUT_1_SOURCE), |
157 | ARIZONA_MIXER_CONTROLS("Noise", ARIZONA_NOISEMIX_INPUT_1_SOURCE), | 166 | ARIZONA_MIXER_CONTROLS("Noise", ARIZONA_NOISEMIX_INPUT_1_SOURCE), |
158 | 167 | ||
@@ -163,7 +172,8 @@ ARIZONA_MIXER_CONTROLS("HPOUT1L", ARIZONA_OUT1LMIX_INPUT_1_SOURCE), | |||
163 | ARIZONA_MIXER_CONTROLS("HPOUT1R", ARIZONA_OUT1RMIX_INPUT_1_SOURCE), | 172 | ARIZONA_MIXER_CONTROLS("HPOUT1R", ARIZONA_OUT1RMIX_INPUT_1_SOURCE), |
164 | ARIZONA_MIXER_CONTROLS("HPOUT2L", ARIZONA_OUT2LMIX_INPUT_1_SOURCE), | 173 | ARIZONA_MIXER_CONTROLS("HPOUT2L", ARIZONA_OUT2LMIX_INPUT_1_SOURCE), |
165 | ARIZONA_MIXER_CONTROLS("HPOUT2R", ARIZONA_OUT2RMIX_INPUT_1_SOURCE), | 174 | ARIZONA_MIXER_CONTROLS("HPOUT2R", ARIZONA_OUT2RMIX_INPUT_1_SOURCE), |
166 | ARIZONA_MIXER_CONTROLS("EPOUT", ARIZONA_OUT3LMIX_INPUT_1_SOURCE), | 175 | ARIZONA_MIXER_CONTROLS("HPOUT3L", ARIZONA_OUT3LMIX_INPUT_1_SOURCE), |
176 | ARIZONA_MIXER_CONTROLS("HPOUT3R", ARIZONA_OUT3RMIX_INPUT_1_SOURCE), | ||
167 | ARIZONA_MIXER_CONTROLS("SPKOUTL", ARIZONA_OUT4LMIX_INPUT_1_SOURCE), | 177 | ARIZONA_MIXER_CONTROLS("SPKOUTL", ARIZONA_OUT4LMIX_INPUT_1_SOURCE), |
168 | ARIZONA_MIXER_CONTROLS("SPKOUTR", ARIZONA_OUT4RMIX_INPUT_1_SOURCE), | 178 | ARIZONA_MIXER_CONTROLS("SPKOUTR", ARIZONA_OUT4RMIX_INPUT_1_SOURCE), |
169 | ARIZONA_MIXER_CONTROLS("SPKDAT1L", ARIZONA_OUT5LMIX_INPUT_1_SOURCE), | 179 | ARIZONA_MIXER_CONTROLS("SPKDAT1L", ARIZONA_OUT5LMIX_INPUT_1_SOURCE), |
@@ -175,7 +185,7 @@ SOC_SINGLE("HPOUT1 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_1L, | |||
175 | ARIZONA_OUT1_OSR_SHIFT, 1, 0), | 185 | ARIZONA_OUT1_OSR_SHIFT, 1, 0), |
176 | SOC_SINGLE("OUT2 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_2L, | 186 | SOC_SINGLE("OUT2 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_2L, |
177 | ARIZONA_OUT2_OSR_SHIFT, 1, 0), | 187 | ARIZONA_OUT2_OSR_SHIFT, 1, 0), |
178 | SOC_SINGLE("EPOUT High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_3L, | 188 | SOC_SINGLE("OUT3 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_3L, |
179 | ARIZONA_OUT3_OSR_SHIFT, 1, 0), | 189 | ARIZONA_OUT3_OSR_SHIFT, 1, 0), |
180 | SOC_SINGLE("Speaker High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_4L, | 190 | SOC_SINGLE("Speaker High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_4L, |
181 | ARIZONA_OUT4_OSR_SHIFT, 1, 0), | 191 | ARIZONA_OUT4_OSR_SHIFT, 1, 0), |
@@ -188,8 +198,8 @@ SOC_DOUBLE_R("HPOUT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_1L, | |||
188 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_MUTE_SHIFT, 1, 1), | 198 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_MUTE_SHIFT, 1, 1), |
189 | SOC_DOUBLE_R("OUT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_2L, | 199 | SOC_DOUBLE_R("OUT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_2L, |
190 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_MUTE_SHIFT, 1, 1), | 200 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_MUTE_SHIFT, 1, 1), |
191 | SOC_SINGLE("EPOUT Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_3L, | 201 | SOC_DOUBLE_R("OUT3 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_3L, |
192 | ARIZONA_OUT3L_MUTE_SHIFT, 1, 1), | 202 | ARIZONA_DAC_DIGITAL_VOLUME_3R, ARIZONA_OUT3L_MUTE_SHIFT, 1, 1), |
193 | SOC_DOUBLE_R("Speaker Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_4L, | 203 | SOC_DOUBLE_R("Speaker Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_4L, |
194 | ARIZONA_DAC_DIGITAL_VOLUME_4R, ARIZONA_OUT4L_MUTE_SHIFT, 1, 1), | 204 | ARIZONA_DAC_DIGITAL_VOLUME_4R, ARIZONA_OUT4L_MUTE_SHIFT, 1, 1), |
195 | SOC_DOUBLE_R("SPKDAT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_5L, | 205 | SOC_DOUBLE_R("SPKDAT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_5L, |
@@ -203,8 +213,9 @@ SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_1L, | |||
203 | SOC_DOUBLE_R_TLV("OUT2 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_2L, | 213 | SOC_DOUBLE_R_TLV("OUT2 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_2L, |
204 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_VOL_SHIFT, | 214 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_VOL_SHIFT, |
205 | 0xbf, 0, digital_tlv), | 215 | 0xbf, 0, digital_tlv), |
206 | SOC_SINGLE_TLV("EPOUT Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_3L, | 216 | SOC_DOUBLE_R_TLV("OUT3 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_3L, |
207 | ARIZONA_OUT3L_VOL_SHIFT, 0xbf, 0, digital_tlv), | 217 | ARIZONA_DAC_DIGITAL_VOLUME_3R, ARIZONA_OUT3L_VOL_SHIFT, |
218 | 0xbf, 0, digital_tlv), | ||
208 | SOC_DOUBLE_R_TLV("Speaker Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_4L, | 219 | SOC_DOUBLE_R_TLV("Speaker Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_4L, |
209 | ARIZONA_DAC_DIGITAL_VOLUME_4R, ARIZONA_OUT4L_VOL_SHIFT, | 220 | ARIZONA_DAC_DIGITAL_VOLUME_4R, ARIZONA_OUT4L_VOL_SHIFT, |
210 | 0xbf, 0, digital_tlv), | 221 | 0xbf, 0, digital_tlv), |
@@ -223,8 +234,9 @@ SOC_DOUBLE_R_RANGE_TLV("OUT2 Volume", ARIZONA_OUTPUT_PATH_CONFIG_2L, | |||
223 | ARIZONA_OUTPUT_PATH_CONFIG_2R, | 234 | ARIZONA_OUTPUT_PATH_CONFIG_2R, |
224 | ARIZONA_OUT2L_PGA_VOL_SHIFT, | 235 | ARIZONA_OUT2L_PGA_VOL_SHIFT, |
225 | 0x34, 0x40, 0, ana_tlv), | 236 | 0x34, 0x40, 0, ana_tlv), |
226 | SOC_SINGLE_RANGE_TLV("EPOUT Volume", ARIZONA_OUTPUT_PATH_CONFIG_3L, | 237 | SOC_DOUBLE_R_RANGE_TLV("OUT3 Volume", ARIZONA_OUTPUT_PATH_CONFIG_3L, |
227 | ARIZONA_OUT3L_PGA_VOL_SHIFT, 0x34, 0x40, 0, ana_tlv), | 238 | ARIZONA_OUTPUT_PATH_CONFIG_3R, |
239 | ARIZONA_OUT3L_PGA_VOL_SHIFT, 0x34, 0x40, 0, ana_tlv), | ||
228 | 240 | ||
229 | SOC_DOUBLE("SPKDAT1 Switch", ARIZONA_PDM_SPK1_CTRL_1, ARIZONA_SPK1L_MUTE_SHIFT, | 241 | SOC_DOUBLE("SPKDAT1 Switch", ARIZONA_PDM_SPK1_CTRL_1, ARIZONA_SPK1L_MUTE_SHIFT, |
230 | ARIZONA_SPK1R_MUTE_SHIFT, 1, 1), | 242 | ARIZONA_SPK1R_MUTE_SHIFT, 1, 1), |
@@ -272,7 +284,8 @@ ARIZONA_MIXER_ENUMS(OUT1L, ARIZONA_OUT1LMIX_INPUT_1_SOURCE); | |||
272 | ARIZONA_MIXER_ENUMS(OUT1R, ARIZONA_OUT1RMIX_INPUT_1_SOURCE); | 284 | ARIZONA_MIXER_ENUMS(OUT1R, ARIZONA_OUT1RMIX_INPUT_1_SOURCE); |
273 | ARIZONA_MIXER_ENUMS(OUT2L, ARIZONA_OUT2LMIX_INPUT_1_SOURCE); | 285 | ARIZONA_MIXER_ENUMS(OUT2L, ARIZONA_OUT2LMIX_INPUT_1_SOURCE); |
274 | ARIZONA_MIXER_ENUMS(OUT2R, ARIZONA_OUT2RMIX_INPUT_1_SOURCE); | 286 | ARIZONA_MIXER_ENUMS(OUT2R, ARIZONA_OUT2RMIX_INPUT_1_SOURCE); |
275 | ARIZONA_MIXER_ENUMS(OUT3, ARIZONA_OUT3LMIX_INPUT_1_SOURCE); | 287 | ARIZONA_MIXER_ENUMS(OUT3L, ARIZONA_OUT3LMIX_INPUT_1_SOURCE); |
288 | ARIZONA_MIXER_ENUMS(OUT3R, ARIZONA_OUT3RMIX_INPUT_1_SOURCE); | ||
276 | ARIZONA_MIXER_ENUMS(SPKOUTL, ARIZONA_OUT4LMIX_INPUT_1_SOURCE); | 289 | ARIZONA_MIXER_ENUMS(SPKOUTL, ARIZONA_OUT4LMIX_INPUT_1_SOURCE); |
277 | ARIZONA_MIXER_ENUMS(SPKOUTR, ARIZONA_OUT4RMIX_INPUT_1_SOURCE); | 290 | ARIZONA_MIXER_ENUMS(SPKOUTR, ARIZONA_OUT4RMIX_INPUT_1_SOURCE); |
278 | ARIZONA_MIXER_ENUMS(SPKDAT1L, ARIZONA_OUT5LMIX_INPUT_1_SOURCE); | 291 | ARIZONA_MIXER_ENUMS(SPKDAT1L, ARIZONA_OUT5LMIX_INPUT_1_SOURCE); |
@@ -522,7 +535,8 @@ ARIZONA_MIXER_WIDGETS(OUT1L, "HPOUT1L"), | |||
522 | ARIZONA_MIXER_WIDGETS(OUT1R, "HPOUT1R"), | 535 | ARIZONA_MIXER_WIDGETS(OUT1R, "HPOUT1R"), |
523 | ARIZONA_MIXER_WIDGETS(OUT2L, "HPOUT2L"), | 536 | ARIZONA_MIXER_WIDGETS(OUT2L, "HPOUT2L"), |
524 | ARIZONA_MIXER_WIDGETS(OUT2R, "HPOUT2R"), | 537 | ARIZONA_MIXER_WIDGETS(OUT2R, "HPOUT2R"), |
525 | ARIZONA_MIXER_WIDGETS(OUT3, "EPOUT"), | 538 | ARIZONA_MIXER_WIDGETS(OUT3L, "HPOUT3L"), |
539 | ARIZONA_MIXER_WIDGETS(OUT3R, "HPOUT3R"), | ||
526 | ARIZONA_MIXER_WIDGETS(SPKOUTL, "SPKOUTL"), | 540 | ARIZONA_MIXER_WIDGETS(SPKOUTL, "SPKOUTL"), |
527 | ARIZONA_MIXER_WIDGETS(SPKOUTR, "SPKOUTR"), | 541 | ARIZONA_MIXER_WIDGETS(SPKOUTR, "SPKOUTR"), |
528 | ARIZONA_MIXER_WIDGETS(SPKDAT1L, "SPKDAT1L"), | 542 | ARIZONA_MIXER_WIDGETS(SPKDAT1L, "SPKDAT1L"), |
@@ -554,8 +568,8 @@ SND_SOC_DAPM_OUTPUT("HPOUT1L"), | |||
554 | SND_SOC_DAPM_OUTPUT("HPOUT1R"), | 568 | SND_SOC_DAPM_OUTPUT("HPOUT1R"), |
555 | SND_SOC_DAPM_OUTPUT("HPOUT2L"), | 569 | SND_SOC_DAPM_OUTPUT("HPOUT2L"), |
556 | SND_SOC_DAPM_OUTPUT("HPOUT2R"), | 570 | SND_SOC_DAPM_OUTPUT("HPOUT2R"), |
557 | SND_SOC_DAPM_OUTPUT("EPOUTN"), | 571 | SND_SOC_DAPM_OUTPUT("HPOUT3L"), |
558 | SND_SOC_DAPM_OUTPUT("EPOUTP"), | 572 | SND_SOC_DAPM_OUTPUT("HPOUT3R"), |
559 | SND_SOC_DAPM_OUTPUT("SPKOUTLN"), | 573 | SND_SOC_DAPM_OUTPUT("SPKOUTLN"), |
560 | SND_SOC_DAPM_OUTPUT("SPKOUTLP"), | 574 | SND_SOC_DAPM_OUTPUT("SPKOUTLP"), |
561 | SND_SOC_DAPM_OUTPUT("SPKOUTRN"), | 575 | SND_SOC_DAPM_OUTPUT("SPKOUTRN"), |
@@ -701,7 +715,8 @@ static const struct snd_soc_dapm_route wm5110_dapm_routes[] = { | |||
701 | ARIZONA_MIXER_ROUTES("OUT1R", "HPOUT1R"), | 715 | ARIZONA_MIXER_ROUTES("OUT1R", "HPOUT1R"), |
702 | ARIZONA_MIXER_ROUTES("OUT2L", "HPOUT2L"), | 716 | ARIZONA_MIXER_ROUTES("OUT2L", "HPOUT2L"), |
703 | ARIZONA_MIXER_ROUTES("OUT2R", "HPOUT2R"), | 717 | ARIZONA_MIXER_ROUTES("OUT2R", "HPOUT2R"), |
704 | ARIZONA_MIXER_ROUTES("OUT3L", "EPOUT"), | 718 | ARIZONA_MIXER_ROUTES("OUT3L", "HPOUT3L"), |
719 | ARIZONA_MIXER_ROUTES("OUT3R", "HPOUT3R"), | ||
705 | 720 | ||
706 | ARIZONA_MIXER_ROUTES("OUT4L", "SPKOUTL"), | 721 | ARIZONA_MIXER_ROUTES("OUT4L", "SPKOUTL"), |
707 | ARIZONA_MIXER_ROUTES("OUT4R", "SPKOUTR"), | 722 | ARIZONA_MIXER_ROUTES("OUT4R", "SPKOUTR"), |
@@ -754,8 +769,8 @@ static const struct snd_soc_dapm_route wm5110_dapm_routes[] = { | |||
754 | { "HPOUT2L", NULL, "OUT2L" }, | 769 | { "HPOUT2L", NULL, "OUT2L" }, |
755 | { "HPOUT2R", NULL, "OUT2R" }, | 770 | { "HPOUT2R", NULL, "OUT2R" }, |
756 | 771 | ||
757 | { "EPOUTN", NULL, "OUT3L" }, | 772 | { "HPOUT3L", NULL, "OUT3L" }, |
758 | { "EPOUTP", NULL, "OUT3L" }, | 773 | { "HPOUT3R", NULL, "OUT3L" }, |
759 | 774 | ||
760 | { "SPKOUTLN", NULL, "OUT4L" }, | 775 | { "SPKOUTLN", NULL, "OUT4L" }, |
761 | { "SPKOUTLP", NULL, "OUT4L" }, | 776 | { "SPKOUTLP", NULL, "OUT4L" }, |