ALSA: hda - Protect user-defined arrays via mutex
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Jan 2013 17:21:56 +0000 (18:21 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:44:45 +0000 (08:44 +0100)
commit09b70e8509862debff5a033052f8adbd7402fa4e
tree6e67702a50a9433b198cf2d7358be3dca39fe740
parent08fb0d0ee1b9c7aef79f54a9ae24470621eb6447
ALSA: hda - Protect user-defined arrays via mutex

The pincfgs, init_verbs and hints set by sysfs or patch might be
changed dynamically on the fly, thus we need to protect it.
Add a simple protection via a mutex.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_hwdep.c
sound/pci/hda/patch_sigmatel.c