OSDN Git Service

pcm: ioplug: update prepare and draining state correctly
authorTimo Wischer <twischer@de.adit-jv.com>
Fri, 16 Mar 2018 10:20:46 +0000 (11:20 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Mar 2018 10:29:20 +0000 (11:29 +0100)
commit07a17bd5a50289e2fdb2714a4e39f38f41811558
treeb970b2fca9fdfc43da8ac387274cf370eaec437c
parent22618077e78a04120f19582700127b6456e21932
pcm: ioplug: update prepare and draining state correctly

PREPARED should only be set when it is done and it was successfully.

DRAINING should be signalled when starting to drain. There is no need to
check if draining was successfully because it will change to drop (SETUP)
in any case.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_ioplug.c