]> 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)
commit248fe1f60fe6b864730194989808832d2fe2780b
tree572587c5e3ce39669e4dff26b165e93ba3181946
parent612240a981fedd83afa02881a0a72845e5a73ac3
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