ASoC: msm: Allow drain only if a write was called

For compressed drivers, issue EOS command in the drain ioctl only
if there are any buffers being decoded. Return a proper error
(-EWOULDBLOCK) otherwise.

Change-Id: Ie0a8a04dd352446c69241686518de91e9691b88a
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
1 file changed