ALSA: pcm: Improved XRUN handling for indirect PCM helpers
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Mar 2023 06:52:35 +0000 (07:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Mar 2023 13:52:58 +0000 (14:52 +0100)
commit0146878cf299174ec39cdd2340c19a528794d881
tree89192b18b46c05fa9fa5b0075cfa8bc8c4f41b17
parenta7a0dcdff41700d4dfc347a6d7786d8e695994e5
ALSA: pcm: Improved XRUN handling for indirect PCM helpers

As PCM ack callback may handle the XRUN situation gracefully now,
change the indirect PCM helpers to give a proper error (-EPIPE).
Also, change the pointer callback helpers to deal with the XRUN error
properly, too.

This requires the PCM core change by the commit 8c721c53dda5
("ALSA: usb-audio: Fix recursive locking at XRUN during syncing").

Link: https://lore.kernel.org/r/20230323065237.5062-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm-indirect.h