diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-10 17:21:56 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-12 07:44:45 (GMT) |
commit | 09b70e8509862debff5a033052f8adbd7402fa4e (patch) | |
tree | 6e67702a50a9433b198cf2d7358be3dca39fe740 /sound/pci/hda/hda_codec.h | |
parent | 08fb0d0ee1b9c7aef79f54a9ae24470621eb6447 (diff) | |
download | linux-09b70e8509862debff5a033052f8adbd7402fa4e.tar.xz |
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>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 4c4f166..61085b3 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -845,6 +845,7 @@ struct hda_codec { struct snd_array cvt_setups; /* audio convert setups */ #ifdef CONFIG_SND_HDA_HWDEP + struct mutex user_mutex; struct snd_hwdep *hwdep; /* assigned hwdep device */ struct snd_array init_verbs; /* additional init verbs */ struct snd_array hints; /* additional hints */ |