ALSA: compress: fix the states to check for allowing read
authorVinod Koul <vinod.koul@intel.com>
Mon, 29 Apr 2013 08:55:23 +0000 (14:25 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Apr 2013 11:33:18 +0000 (13:33 +0200)
commit754813473c1a8b7711802313125f0fafc60141f8
tree3d948cec2f7b73756c4cbb548546db57f0a17b22
parenta555bb8c6bf6932c5706745bfdbad22df26324d9
ALSA: compress: fix the states to check for allowing read

for reading compressed data, we need to allow when we are paused, draining or
stopped.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Cc: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c