Skip to content

Commit

Permalink
ALSA: docs: Add description about ack callback -EPIPE error handling
Browse files Browse the repository at this point in the history
Add a brief description about the newly added behavior of the PCM ack
callback with -EPIPE error.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Mar 24, 2023
1 parent 0146878 commit f84af10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/sound/kernel-api/writing-an-alsa-driver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,10 @@ This callback is also not mandatory. This callback is called when the
emu10k1-fx and cs46xx need to track the current ``appl_ptr`` for the
internal buffer, and this callback is useful only for such a purpose.

The callback function may return 0 or a negative error. When the
return value is ``-EPIPE``, PCM core treats as a buffer XRUN happens,
and changes the state to ``SNDRV_PCM_STATE_XRUN`` automatically.

This callback is atomic as default.

page callback
Expand Down

0 comments on commit f84af10

Please sign in to comment.