]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Don't ignore internal PCMs in snd_pcm_dev_disconnect()
authorTakashi Iwai <tiwai@suse.de>
Fri, 20 Feb 2015 16:05:27 +0000 (17:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Feb 2015 18:52:04 +0000 (19:52 +0100)
commitb5d72ab388bc0ae59bdd511dd6cf109599764638
tree7cff75ce80cffaa16094430c33e90b0fa265e54b
parent913232354111db008b28e21cf8687905528981d0
ALSA: pcm: Don't ignore internal PCMs in snd_pcm_dev_disconnect()

Some codes in snd_pcm_dev_disconnect() are still valid even for
internal PCMs, but they are skipped because of the check of
list_empty(&pcm->list) at the beginning.  Remove this check and put
pcm->internal checks appropriately for internal PCM object to process
through this function.

Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c