Skip to content

Commit

Permalink
[ALSA] soc/wm8731: Fix stereo mixer controls
Browse files Browse the repository at this point in the history
Disable the simultaneous load feature for the line in and headphone
out volume registers. This allows left and right volume levels to
be controlled separately.

Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Ville Syrjala authored and Jaroslav Kysela committed Jan 31, 2008
1 parent d47ac43 commit 389619f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/codecs/wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,13 @@ static int wm8731_init(struct snd_soc_device *socdev)

/* set the update bits */
reg = wm8731_read_reg_cache(codec, WM8731_LOUT1V);
wm8731_write(codec, WM8731_LOUT1V, reg | 0x0100);
wm8731_write(codec, WM8731_LOUT1V, reg & ~0x0100);
reg = wm8731_read_reg_cache(codec, WM8731_ROUT1V);
wm8731_write(codec, WM8731_ROUT1V, reg | 0x0100);
wm8731_write(codec, WM8731_ROUT1V, reg & ~0x0100);
reg = wm8731_read_reg_cache(codec, WM8731_LINVOL);
wm8731_write(codec, WM8731_LINVOL, reg | 0x0100);
wm8731_write(codec, WM8731_LINVOL, reg & ~0x0100);
reg = wm8731_read_reg_cache(codec, WM8731_RINVOL);
wm8731_write(codec, WM8731_RINVOL, reg | 0x0100);
wm8731_write(codec, WM8731_RINVOL, reg & ~0x0100);

wm8731_add_controls(codec);
wm8731_add_widgets(codec);
Expand Down

0 comments on commit 389619f

Please sign in to comment.