ALSA: hda - Avoid unnecessary verbs to clear PCM formats
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Sep 2011 15:33:45 +0000 (17:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Sep 2011 15:33:45 +0000 (17:33 +0200)
commit218264ae9ab3e12a785e1faeb2e15c8ae7172863
treefe2e22fefa237cbf6e8e90da967aa89dd2c76ee1
parent5ec02a1cfa9497f585721ec775c9b3e2783ff6fb
ALSA: hda - Avoid unnecessary verbs to clear PCM formats

Since really_cleanup_stream() is called from both purity_inactive_streams()
and hda_cleanup_all_streams(), the verbs to clear the PCM channel and
format may be called multiple times unnecessarily.

This patch adds checks to skip these unneeded verbs.

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