]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: compress: Make sure we trigger STOP before closing the stream.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 13 Sep 2013 16:43:16 +0000 (17:43 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Sep 2013 07:28:22 +0000 (09:28 +0200)
commit10204545e7370e720008d5d9b77a662d207e3e26
tree94378d0e6f3860bcd3ba30aca2566f8928251ce2
parentf66aae1c1dddeed46d34a458cf743696143fb1bf
ALSA: compress: Make sure we trigger STOP before closing the stream.

Currently we assume that userspace will shut down the compressed stream
correctly. However, if userspcae dies (e.g. cplay & ctrl-C) we dont
stop the stream before freeing it.

This now checks that the stream is stopped before freeing.

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