diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-19 09:29:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-02-19 09:30:57 -0500 |
commit | ce3bdaa8710c10eec5a6dae67aaf73088d0ced4f (patch) | |
tree | c6d6c286b36c01e202bedc47eeeb25272158bcb5 /sound/soc/codecs/wm8731.c | |
parent | c6f2981170272cce2c192087a16dd74dbde25ed2 (diff) |
ASoC: Disable WM8731 line bypass by default
This avoids temporarily enabling the ouput stages during startup which
can cause audible effets in the output stages.
Reported-by: Fredrik RedgÄrd <rik@svep.se>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 4cac3195bfa3..9e7ebcc2c491 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c | |||
@@ -594,6 +594,10 @@ static int wm8731_register(struct wm8731_priv *wm8731) | |||
594 | reg = wm8731_read_reg_cache(codec, WM8731_RINVOL); | 594 | reg = wm8731_read_reg_cache(codec, WM8731_RINVOL); |
595 | wm8731_write(codec, WM8731_RINVOL, reg & ~0x0100); | 595 | wm8731_write(codec, WM8731_RINVOL, reg & ~0x0100); |
596 | 596 | ||
597 | /* Disable bypass path by default */ | ||
598 | reg = wm8731_read_reg_cache(codec, WM8731_APANA); | ||
599 | wm8731_write(codec, WM8731_APANA, reg & ~0x4); | ||
600 | |||
597 | wm8731_codec = codec; | 601 | wm8731_codec = codec; |
598 | 602 | ||
599 | ret = snd_soc_register_codec(codec); | 603 | ret = snd_soc_register_codec(codec); |