diff options
author | Gary Zhang <b13634@freescale.com> | 2012-05-09 11:34:37 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:37:14 +0800 |
commit | 8326cd9ffe8b3810369f808a70ee6301aed448e5 (patch) | |
tree | 0279762190833d956d00973d37943b2a533f0ff0 /sound/soc | |
parent | eefccea87e84254b441b5c2985d7ffab8133b163 (diff) |
ENGR00182220 WM8962: set a default volume
set default volume for headphone and speaker
Signed-off-by: Gary Zhang <b13634@freescale.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index ccf8883a7866..32481c6dc720 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -4097,6 +4097,16 @@ static int wm8962_probe(struct snd_soc_codec *codec) pdata->mic_cfg); } + /* set the default volume for headphpone and speaker */ + snd_soc_update_bits(codec, WM8962_HPOUTL_VOLUME, + WM8962_HPOUTL_VOL_MASK, 0x65); + snd_soc_update_bits(codec, WM8962_HPOUTR_VOLUME, + WM8962_HPOUTR_VOL_MASK, 0x65); + snd_soc_update_bits(codec, WM8962_SPKOUTL_VOLUME, + WM8962_SPKOUTL_VOL_MASK, 0x72); + snd_soc_update_bits(codec, WM8962_SPKOUTR_VOLUME, + WM8962_SPKOUTR_VOL_MASK, 0x72); + /* Latch volume update bits */ snd_soc_update_bits(codec, WM8962_LEFT_INPUT_VOLUME, WM8962_IN_VU, WM8962_IN_VU); |