Skip to content

Commit

Permalink
ASoC: Disable WM8731 line bypass by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Feb 19, 2009
1 parent c6f2981 commit ce3bdaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/codecs/wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ static int wm8731_register(struct wm8731_priv *wm8731)
reg = wm8731_read_reg_cache(codec, WM8731_RINVOL);
wm8731_write(codec, WM8731_RINVOL, reg & ~0x0100);

/* Disable bypass path by default */
reg = wm8731_read_reg_cache(codec, WM8731_APANA);
wm8731_write(codec, WM8731_APANA, reg & ~0x4);

wm8731_codec = codec;

ret = snd_soc_register_codec(codec);
Expand Down

0 comments on commit ce3bdaa

Please sign in to comment.