ALSA: pcm - Fix unbalanced pm_qos_request
authorTakashi Iwai <tiwai@suse.de>
Thu, 16 Sep 2010 20:52:32 +0000 (22:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Sep 2010 21:04:38 +0000 (23:04 +0200)
commit8699a0b657b43fa6401537dfe345bee7aa8115ec
tree109968539c7622c5ebda6dcac7bb4df3a8b6350d
parent147fcf1c211f1a87bf4d0711b7e9637f3d6ce080
ALSA: pcm - Fix unbalanced pm_qos_request

The pm_qos_request isn't freed properly when OSS PCM emulation is used
because it skips snd_pcm_hw_free() call but directly releases the
stream.  This resulted in Oops later.

Tested-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c