diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-08-01 13:25:06 -0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-08-01 13:25:06 -0400 |
commit | 424c3d4a2c7d4ac3467a4849f8ccc230f670c35a (patch) | |
tree | 55806b1367b42ec210f273c16bf350182ac6fd62 /sound | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff) | |
parent | 88cda60e512373ca18a663ee66dc2550800223eb (diff) |
Merge branch 'for-next' into for-linus
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x.c | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index 789453d44ec5..0963c4c7a83f 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c | |||
@@ -226,11 +226,13 @@ static const char *aic3x_adc_hpf[] = | |||
226 | #define RDAC_ENUM 1 | 226 | #define RDAC_ENUM 1 |
227 | #define LHPCOM_ENUM 2 | 227 | #define LHPCOM_ENUM 2 |
228 | #define RHPCOM_ENUM 3 | 228 | #define RHPCOM_ENUM 3 |
229 | #define LINE1L_ENUM 4 | 229 | #define LINE1L_2_L_ENUM 4 |
230 | #define LINE1R_ENUM 5 | 230 | #define LINE1L_2_R_ENUM 5 |
231 | #define LINE2L_ENUM 6 | 231 | #define LINE1R_2_L_ENUM 6 |
232 | #define LINE2R_ENUM 7 | 232 | #define LINE1R_2_R_ENUM 7 |
233 | #define ADC_HPF_ENUM 8 | 233 | #define LINE2L_ENUM 8 |
234 | #define LINE2R_ENUM 9 | ||
235 | #define ADC_HPF_ENUM 10 | ||
234 | 236 | ||
235 | static const struct soc_enum aic3x_enum[] = { | 237 | static const struct soc_enum aic3x_enum[] = { |
236 | SOC_ENUM_SINGLE(DAC_LINE_MUX, 6, 3, aic3x_left_dac_mux), | 238 | SOC_ENUM_SINGLE(DAC_LINE_MUX, 6, 3, aic3x_left_dac_mux), |
@@ -238,6 +240,8 @@ static const struct soc_enum aic3x_enum[] = { | |||
238 | SOC_ENUM_SINGLE(HPLCOM_CFG, 4, 3, aic3x_left_hpcom_mux), | 240 | SOC_ENUM_SINGLE(HPLCOM_CFG, 4, 3, aic3x_left_hpcom_mux), |
239 | SOC_ENUM_SINGLE(HPRCOM_CFG, 3, 5, aic3x_right_hpcom_mux), | 241 | SOC_ENUM_SINGLE(HPRCOM_CFG, 3, 5, aic3x_right_hpcom_mux), |
240 | SOC_ENUM_SINGLE(LINE1L_2_LADC_CTRL, 7, 2, aic3x_linein_mode_mux), | 242 | SOC_ENUM_SINGLE(LINE1L_2_LADC_CTRL, 7, 2, aic3x_linein_mode_mux), |
243 | SOC_ENUM_SINGLE(LINE1L_2_RADC_CTRL, 7, 2, aic3x_linein_mode_mux), | ||
244 | SOC_ENUM_SINGLE(LINE1R_2_LADC_CTRL, 7, 2, aic3x_linein_mode_mux), | ||
241 | SOC_ENUM_SINGLE(LINE1R_2_RADC_CTRL, 7, 2, aic3x_linein_mode_mux), | 245 | SOC_ENUM_SINGLE(LINE1R_2_RADC_CTRL, 7, 2, aic3x_linein_mode_mux), |
242 | SOC_ENUM_SINGLE(LINE2L_2_LADC_CTRL, 7, 2, aic3x_linein_mode_mux), | 246 | SOC_ENUM_SINGLE(LINE2L_2_LADC_CTRL, 7, 2, aic3x_linein_mode_mux), |
243 | SOC_ENUM_SINGLE(LINE2R_2_RADC_CTRL, 7, 2, aic3x_linein_mode_mux), | 247 | SOC_ENUM_SINGLE(LINE2R_2_RADC_CTRL, 7, 2, aic3x_linein_mode_mux), |
@@ -490,12 +494,16 @@ static const struct snd_kcontrol_new aic3x_right_pga_mixer_controls[] = { | |||
490 | }; | 494 | }; |
491 | 495 | ||
492 | /* Left Line1 Mux */ | 496 | /* Left Line1 Mux */ |
493 | static const struct snd_kcontrol_new aic3x_left_line1_mux_controls = | 497 | static const struct snd_kcontrol_new aic3x_left_line1l_mux_controls = |
494 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1L_ENUM]); | 498 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1L_2_L_ENUM]); |
499 | static const struct snd_kcontrol_new aic3x_right_line1l_mux_controls = | ||
500 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1L_2_R_ENUM]); | ||
495 | 501 | ||
496 | /* Right Line1 Mux */ | 502 | /* Right Line1 Mux */ |
497 | static const struct snd_kcontrol_new aic3x_right_line1_mux_controls = | 503 | static const struct snd_kcontrol_new aic3x_right_line1r_mux_controls = |
498 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1R_ENUM]); | 504 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1R_2_R_ENUM]); |
505 | static const struct snd_kcontrol_new aic3x_left_line1r_mux_controls = | ||
506 | SOC_DAPM_ENUM("Route", aic3x_enum[LINE1R_2_L_ENUM]); | ||
499 | 507 | ||
500 | /* Left Line2 Mux */ | 508 | /* Left Line2 Mux */ |
501 | static const struct snd_kcontrol_new aic3x_left_line2_mux_controls = | 509 | static const struct snd_kcontrol_new aic3x_left_line2_mux_controls = |
@@ -535,9 +543,9 @@ static const struct snd_soc_dapm_widget aic3x_dapm_widgets[] = { | |||
535 | &aic3x_left_pga_mixer_controls[0], | 543 | &aic3x_left_pga_mixer_controls[0], |
536 | ARRAY_SIZE(aic3x_left_pga_mixer_controls)), | 544 | ARRAY_SIZE(aic3x_left_pga_mixer_controls)), |
537 | SND_SOC_DAPM_MUX("Left Line1L Mux", SND_SOC_NOPM, 0, 0, | 545 | SND_SOC_DAPM_MUX("Left Line1L Mux", SND_SOC_NOPM, 0, 0, |
538 | &aic3x_left_line1_mux_controls), | 546 | &aic3x_left_line1l_mux_controls), |
539 | SND_SOC_DAPM_MUX("Left Line1R Mux", SND_SOC_NOPM, 0, 0, | 547 | SND_SOC_DAPM_MUX("Left Line1R Mux", SND_SOC_NOPM, 0, 0, |
540 | &aic3x_left_line1_mux_controls), | 548 | &aic3x_left_line1r_mux_controls), |
541 | SND_SOC_DAPM_MUX("Left Line2L Mux", SND_SOC_NOPM, 0, 0, | 549 | SND_SOC_DAPM_MUX("Left Line2L Mux", SND_SOC_NOPM, 0, 0, |
542 | &aic3x_left_line2_mux_controls), | 550 | &aic3x_left_line2_mux_controls), |
543 | 551 | ||
@@ -548,9 +556,9 @@ static const struct snd_soc_dapm_widget aic3x_dapm_widgets[] = { | |||
548 | &aic3x_right_pga_mixer_controls[0], | 556 | &aic3x_right_pga_mixer_controls[0], |
549 | ARRAY_SIZE(aic3x_right_pga_mixer_controls)), | 557 | ARRAY_SIZE(aic3x_right_pga_mixer_controls)), |
550 | SND_SOC_DAPM_MUX("Right Line1L Mux", SND_SOC_NOPM, 0, 0, | 558 | SND_SOC_DAPM_MUX("Right Line1L Mux", SND_SOC_NOPM, 0, 0, |
551 | &aic3x_right_line1_mux_controls), | 559 | &aic3x_right_line1l_mux_controls), |
552 | SND_SOC_DAPM_MUX("Right Line1R Mux", SND_SOC_NOPM, 0, 0, | 560 | SND_SOC_DAPM_MUX("Right Line1R Mux", SND_SOC_NOPM, 0, 0, |
553 | &aic3x_right_line1_mux_controls), | 561 | &aic3x_right_line1r_mux_controls), |
554 | SND_SOC_DAPM_MUX("Right Line2R Mux", SND_SOC_NOPM, 0, 0, | 562 | SND_SOC_DAPM_MUX("Right Line2R Mux", SND_SOC_NOPM, 0, 0, |
555 | &aic3x_right_line2_mux_controls), | 563 | &aic3x_right_line2_mux_controls), |
556 | 564 | ||