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)
commitc48336842c4e0ad9362506535f1ae8b6f11a9100
tree31eae524fe8e36df55b07c844a4c2e21b0d312b3
parent87d6c7154da96e1efe017eda746f3b784ab405be
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