]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Initialize vmaster slave volumes
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Mar 2012 16:51:10 +0000 (17:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Mar 2012 16:55:30 +0000 (17:55 +0100)
commit8f96131c1f1dfe83a8dccf543cffe9fbc3b124e1
tree572587c5e3ce39669e4dff26b165e93ba3181946
parentb169d4925a1ef44865b1c46782df497bddbb415f
ALSA: hda - Initialize vmaster slave volumes

When the driver is changed to use vmaster or a new slave element is
added by the improvement of the parser code, user may face often the
silent output because of the muted slave mixer although Master volume
is properly set.  And they complain.  And I get upset.

Although such a mixer element should be initialized via "alsactl init",
it'd be more user-friendly if the known output slaves are unmuted and
set to 0dB so that user can control the volume only with Master as
default.  Since Master is still set muted as default even with this
change, no risk of the speaker blow up, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c