ALSA: hda: take cmd_mutex in probe_codec()
authorWu Fengguang <fengguang.wu@intel.com>
Sat, 1 Aug 2009 10:46:46 +0000 (18:46 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Aug 2009 06:26:23 +0000 (08:26 +0200)
commita678cdee25a387c8fc3b2754974695412baf1d85
tree77363880dead9748b8072ac31a571be7a9270c5c
parentdeadff1665491afce124a8ff83f00f784161f660
ALSA: hda: take cmd_mutex in probe_codec()

Now that each codec will have its own module, it is possible
for the user to load one codec while another one is running.

So cmd_mutex would be a safe addition to probe_codec().

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c