]> 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)
commite502ceb2ec1e29cae6318240022f924eb0332be0
tree94378d0e6f3860bcd3ba30aca2566f8928251ce2
parent7488bb3e80bc16b4fcdfc82e10c663f5ad778034
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