]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add missing initial vmaster hook at build_controls callback
authorTakashi Iwai <tiwai@suse.de>
Fri, 25 Oct 2013 21:43:10 +0000 (23:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 25 Oct 2013 21:43:10 +0000 (23:43 +0200)
commitcf06b8e6066267617dff5b6bb386051c412d0640
tree7695c0b5de82589ce46a43a309b0f07957c2959b
parentbb1ea396ba1f4c5314935f4ebd47d73db7e8b2b9
ALSA: hda - Add missing initial vmaster hook at build_controls callback

The generic parser has a support of vmaster hook, but this is
initialized only in the init callback with the check of the presence
of the corresponding kctl.  However, since kctl is NULL at the very
first init callback that is called before build_controls callback, the
vmaster hook sync is skipped there.  Eventually this leads to the
uninitialized state depending on the hook implementation.

This patch adds a simple workaround, just calling the sync function
explicitly at build_controls callback.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c