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)
commitb26d19e44adfd10b691bf4ffd50ed411c1be9317
tree94378d0e6f3860bcd3ba30aca2566f8928251ce2
parent4028b6c4c03f213260e9290ff3a6b5439aad07ce
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