]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ALSA: hda - create hda_codec.control_mutex for kcontrol->private_value
authorWu Fengguang <wfg@linux.intel.com>
Fri, 9 Jan 2009 08:45:24 +0000 (16:45 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Jan 2009 08:58:47 +0000 (09:58 +0100)
commit5a9e02e94989323c2a7102e2fc80ee9102b19fa0
treee6f5d2ecd8928a5b0256f4c9f8f7c7963d1f8e36
parent57d139278e6c246d78f71e4bf0e0d15bb0390646
ALSA: hda - create hda_codec.control_mutex for kcontrol->private_value

Fix the following lockdep warning by not reusing the hda_codec.spdif_mutex.

    ALSA sound/pci/hda/hda_codec.c:882: hda_codec_cleanup_stream: NID=0x2

    =======================================================
    [ INFO: possible circular locking dependency detected ]
    2.6.28-next-20090102 #33
    -------------------------------------------------------
    mplayer/3151 is trying to acquire lock:
     (&pcm->open_mutex){--..}, at: [<ffffffffa004ced3>] snd_pcm_release+0x43/0xd0 [snd_pcm]

    but task is already holding lock:
     (&mm->mmap_sem){----}, at: [<ffffffff810c0252>] sys_munmap+0x42/0x80

    which lock already depends on the new lock.

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