pcm: ioplug: update prepare and draining state correctly
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 <715c057449941916292d0f6d747877e2fbe7af60@de.adit-jv.com>
Signed-off-by: Takashi Iwai <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>

takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib