ALSA: hda - Move mutex from hda_eld to per_pin in HDMI codec driver
authorTakashi Iwai <tiwai@suse.de>
Thu, 17 Oct 2013 16:21:12 +0000 (18:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Oct 2013 17:23:45 +0000 (19:23 +0200)
commita4e9a38b40a0e2f7dad1a0b355896d23fbdd16e0
treeed9f473567d7e73eb3bc6a04995d8c34caea7fae
parentcbbaa603a03cc46681e24d6b2804b62fde95a2af
ALSA: hda - Move mutex from hda_eld to per_pin in HDMI codec driver

Since the lock is used primarily in patch_hdmi.c, it's better to move
it in the local struct instead of exporting in hda_eld.  The only
functions requiring the lock in hda_eld.c are proc accessors.  So in
this patch, the proc entry and its creation/deletion/accessors are
moved into patch_hdmi.c, together with the mutex lock to pin_spec
struct.

The former proc info functions are exported so that they can be called
from patch_hdmi.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_hdmi.c