drm/i915: Add locks around audio component bind/unbind
authorDavid Henningsson <david.henningsson@canonical.com>
Thu, 3 Sep 2015 09:51:35 +0000 (11:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Sep 2015 10:14:45 +0000 (12:14 +0200)
commitd5f362a7b977bdfaf8a955f3d604a29267bd5464
treecd170f8c4f665d140935a713292f11ddabbed321
parentf0675d4a8ed9d3e863ff611561ee0944969a2784
drm/i915: Add locks around audio component bind/unbind

This will make sure that audio callbacks do not race with
component bind/unbind.

[Note: this is an update patch to commit [51e1d83cab99: drm/i915: Call
 audio pin/ELD notify function] where I mistakenly applied the older
 version.  Jani and Daniel's review tags were to the latest version,
 so I add them below, too -- tiwai]

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/drm/i915/intel_audio.c