diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-30 08:35:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-30 23:32:54 -0500 |
commit | 3f3af6eeff3e048e27eb864519e779aedc194386 (patch) | |
tree | ec81775fba57e9546c6c71b1e502d19f66a4296d /sound/soc/codecs/wm2000.c | |
parent | 33e7546e199f123808699c65274283606114e225 (diff) |
ASoC: wm2000: Expose ANC gain adjustment
No TLV information since it's not actually a direct gain control.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm2000.c')
-rw-r--r-- | sound/soc/codecs/wm2000.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index 627c45499392..cb7fa3c78675 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c | |||
@@ -650,6 +650,7 @@ static int wm2000_speaker_put(struct snd_kcontrol *kcontrol, | |||
650 | } | 650 | } |
651 | 651 | ||
652 | static const struct snd_kcontrol_new wm2000_controls[] = { | 652 | static const struct snd_kcontrol_new wm2000_controls[] = { |
653 | SOC_SINGLE("ANC Volume", WM2000_REG_ANC_GAIN_CTRL, 0, 255, 0), | ||
653 | SOC_SINGLE_BOOL_EXT("WM2000 ANC Switch", 0, | 654 | SOC_SINGLE_BOOL_EXT("WM2000 ANC Switch", 0, |
654 | wm2000_anc_mode_get, | 655 | wm2000_anc_mode_get, |
655 | wm2000_anc_mode_put), | 656 | wm2000_anc_mode_put), |
@@ -755,6 +756,8 @@ static int wm2000_probe(struct snd_soc_codec *codec) | |||
755 | { | 756 | { |
756 | struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev); | 757 | struct wm2000_priv *wm2000 = dev_get_drvdata(codec->dev); |
757 | 758 | ||
759 | snd_soc_codec_set_cache_io(codec, 16, 8, SND_SOC_REGMAP); | ||
760 | |||
758 | /* This will trigger a transition to standby mode by default */ | 761 | /* This will trigger a transition to standby mode by default */ |
759 | wm2000_anc_set_mode(wm2000); | 762 | wm2000_anc_set_mode(wm2000); |
760 | 763 | ||