diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-07 01:29:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-07 01:29:27 -0500 |
commit | e61c09249a39c0133bd5553576162ab2a56c6d43 (patch) | |
tree | a36459478be00d38132d1f046b04a097330a6040 /sound/soc/codecs/wm5102.c | |
parent | 6dbe51c251a327e012439c4772097a13df43c5b8 (diff) | |
parent | 82968b7e8d6150fcea0b48488f7bf6fb25e7b099 (diff) |
Merge remote-tracking branch 'asoc/fix/arizona' into tmp
Diffstat (limited to 'sound/soc/codecs/wm5102.c')
-rw-r--r-- | sound/soc/codecs/wm5102.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index b8d461db369f..b82bbf584146 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c | |||
@@ -573,6 +573,13 @@ static const struct reg_default wm5102_sysclk_reva_patch[] = { | |||
573 | { 0x025e, 0x0112 }, | 573 | { 0x025e, 0x0112 }, |
574 | }; | 574 | }; |
575 | 575 | ||
576 | static const struct reg_default wm5102_sysclk_revb_patch[] = { | ||
577 | { 0x3081, 0x08FE }, | ||
578 | { 0x3083, 0x00ED }, | ||
579 | { 0x30C1, 0x08FE }, | ||
580 | { 0x30C3, 0x00ED }, | ||
581 | }; | ||
582 | |||
576 | static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w, | 583 | static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w, |
577 | struct snd_kcontrol *kcontrol, int event) | 584 | struct snd_kcontrol *kcontrol, int event) |
578 | { | 585 | { |
@@ -587,6 +594,10 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w, | |||
587 | patch = wm5102_sysclk_reva_patch; | 594 | patch = wm5102_sysclk_reva_patch; |
588 | patch_size = ARRAY_SIZE(wm5102_sysclk_reva_patch); | 595 | patch_size = ARRAY_SIZE(wm5102_sysclk_reva_patch); |
589 | break; | 596 | break; |
597 | default: | ||
598 | patch = wm5102_sysclk_revb_patch; | ||
599 | patch_size = ARRAY_SIZE(wm5102_sysclk_revb_patch); | ||
600 | break; | ||
590 | } | 601 | } |
591 | 602 | ||
592 | switch (event) { | 603 | switch (event) { |
@@ -755,7 +766,7 @@ SOC_SINGLE("SPKDAT1 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_5L, | |||
755 | 766 | ||
756 | SOC_DOUBLE_R("HPOUT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_1L, | 767 | SOC_DOUBLE_R("HPOUT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_1L, |
757 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_MUTE_SHIFT, 1, 1), | 768 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_MUTE_SHIFT, 1, 1), |
758 | SOC_DOUBLE_R("OUT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_2L, | 769 | SOC_DOUBLE_R("HPOUT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_2L, |
759 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_MUTE_SHIFT, 1, 1), | 770 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_MUTE_SHIFT, 1, 1), |
760 | SOC_SINGLE("EPOUT Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_3L, | 771 | SOC_SINGLE("EPOUT Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_3L, |
761 | ARIZONA_OUT3L_MUTE_SHIFT, 1, 1), | 772 | ARIZONA_OUT3L_MUTE_SHIFT, 1, 1), |
@@ -767,7 +778,7 @@ SOC_DOUBLE_R("SPKDAT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_5L, | |||
767 | SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_1L, | 778 | SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_1L, |
768 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_VOL_SHIFT, | 779 | ARIZONA_DAC_DIGITAL_VOLUME_1R, ARIZONA_OUT1L_VOL_SHIFT, |
769 | 0xbf, 0, digital_tlv), | 780 | 0xbf, 0, digital_tlv), |
770 | SOC_DOUBLE_R_TLV("OUT2 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_2L, | 781 | SOC_DOUBLE_R_TLV("HPOUT2 Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_2L, |
771 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_VOL_SHIFT, | 782 | ARIZONA_DAC_DIGITAL_VOLUME_2R, ARIZONA_OUT2L_VOL_SHIFT, |
772 | 0xbf, 0, digital_tlv), | 783 | 0xbf, 0, digital_tlv), |
773 | SOC_SINGLE_TLV("EPOUT Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_3L, | 784 | SOC_SINGLE_TLV("EPOUT Digital Volume", ARIZONA_DAC_DIGITAL_VOLUME_3L, |