]> git.karo-electronics.de Git - linux-beck.git/commit
ALSA: hda - hdmi defer to register acomp eld notifier
authorLibin Yang <libin.yang@linux.intel.com>
Fri, 4 Mar 2016 06:33:43 +0000 (14:33 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2016 07:40:24 +0000 (08:40 +0100)
commit790b415c98de62602810b0eedce26f0f9d6ddd78
tree31eae524fe8e36df55b07c844a4c2e21b0d312b3
parentec75a940b1037e877efd9a5a9e94eab1e464f73b
ALSA: hda - hdmi defer to register acomp eld notifier

Defer to register acomp eld notifier until hdmi audio driver
is fully ready.

After registering eld notifier, gfx driver can use this
callback function to notify audio driver the monitor
connection event. However this action may happen when
audio driver is adding the pins or doing other initialization.
This is not always safe, however. For example, using
per_pin->lock before the lock is initialized.

Let's register the eld notifier after the initialization is done.

Signed-off-by: Libin Yang <libin.yang@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c