diff options
author | Graeme Gregory <graeme@openmoko.org> | 2008-03-03 11:19:45 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:20 -0400 |
commit | ae092c9ede515bd6864b44efc2d83135bd3c535b (patch) | |
tree | 2a2adaaa08687ce68d6a315f3ac6e518954006a1 /sound/soc/codecs/wm8753.c | |
parent | 9ab4d072ad67793d70b8707e14fb9261749c4e07 (diff) |
[ALSA] soc - Add Invert Switch for ROUT2
GTA02 device has a speaker between LOUT2 & ROUT2 and in this mode ROUT2
needs to be inverted. This patch adds a mixer control for this.
Signed-off-by: Graeme Gregory <graeme@openmoko.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/wm8753.c')
-rw-r--r-- | sound/soc/codecs/wm8753.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index 02882758415a..76a5c7b05dfb 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c | |||
@@ -198,6 +198,7 @@ static const char *wm8753_mic_sel[] = {"Mic 1", "Mic 2", "Mic 3"}; | |||
198 | static const char *wm8753_dai_mode[] = {"DAI 0", "DAI 1", "DAI 2", "DAI 3"}; | 198 | static const char *wm8753_dai_mode[] = {"DAI 0", "DAI 1", "DAI 2", "DAI 3"}; |
199 | static const char *wm8753_dat_sel[] = {"Stereo", "Left ADC", "Right ADC", | 199 | static const char *wm8753_dat_sel[] = {"Stereo", "Left ADC", "Right ADC", |
200 | "Channel Swap"}; | 200 | "Channel Swap"}; |
201 | static const char *wm8753_rout2_phase[] = {"Non Inverted", "Inverted"}; | ||
201 | 202 | ||
202 | static const struct soc_enum wm8753_enum[] = { | 203 | static const struct soc_enum wm8753_enum[] = { |
203 | SOC_ENUM_SINGLE(WM8753_BASS, 7, 2, wm8753_base), | 204 | SOC_ENUM_SINGLE(WM8753_BASS, 7, 2, wm8753_base), |
@@ -228,6 +229,7 @@ SOC_ENUM_SINGLE(WM8753_ADC, 4, 2, wm8753_adc_filter), | |||
228 | SOC_ENUM_SINGLE(WM8753_MICBIAS, 6, 3, wm8753_mic_sel), | 229 | SOC_ENUM_SINGLE(WM8753_MICBIAS, 6, 3, wm8753_mic_sel), |
229 | SOC_ENUM_SINGLE(WM8753_IOCTL, 2, 4, wm8753_dai_mode), | 230 | SOC_ENUM_SINGLE(WM8753_IOCTL, 2, 4, wm8753_dai_mode), |
230 | SOC_ENUM_SINGLE(WM8753_ADC, 7, 4, wm8753_dat_sel), | 231 | SOC_ENUM_SINGLE(WM8753_ADC, 7, 4, wm8753_dat_sel), |
232 | SOC_ENUM_SINGLE(WM8753_OUTCTL, 2, 2, wm8753_rout2_phase), | ||
231 | }; | 233 | }; |
232 | 234 | ||
233 | 235 | ||
@@ -330,6 +332,7 @@ SOC_SINGLE("Mic1 Capture Volume", WM8753_INCTL1, 5, 3, 0), | |||
330 | SOC_ENUM_EXT("DAI Mode", wm8753_enum[26], wm8753_get_dai, wm8753_set_dai), | 332 | SOC_ENUM_EXT("DAI Mode", wm8753_enum[26], wm8753_get_dai, wm8753_set_dai), |
331 | 333 | ||
332 | SOC_ENUM("ADC Data Select", wm8753_enum[27]), | 334 | SOC_ENUM("ADC Data Select", wm8753_enum[27]), |
335 | SOC_ENUM("ROUT2 Phase", wm8753_enum[28]), | ||
333 | }; | 336 | }; |
334 | 337 | ||
335 | /* add non dapm controls */ | 338 | /* add non dapm controls */ |