ALSA: pcm: Handle XRUN at trigger START
authorTakashi Iwai <tiwai@suse.de>
Mon, 5 Dec 2022 13:21:23 +0000 (14:21 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Dec 2022 13:22:48 +0000 (14:22 +0100)
commite661c4886965e6f48d9378d8608f1d7dd7401a41
tree4e59172e8b6d8ab4dca7aedc7fa9581b7febb267
parent5c8cc93b06d1ff860327a273abf3ac006290d242
ALSA: pcm: Handle XRUN at trigger START

When the driver returns -EPIPE for indicating an XRUN already at PCM
trigger START, we should treat properly and set it to the XRUN state.
Otherwise the state is missing and the application would try to issue
trigger again without knowing that it's in an error state.

This is just for a theoretical bug, and it won't happen in most
cases.

Link: https://lore.kernel.org/r/b4e71631-4a94-613-27b2-fb595792630@carlh.net
Link: https://lore.kernel.org/r/20221205132124.11585-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c