• Takashi Iwai's avatar
    ALSA: hda - Add missing initial vmaster hook at build_controls callback · b63eae0a
    Takashi Iwai authored
    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: default avatarTakashi Iwai <tiwai@suse.de>