projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0146878
)
ALSA: docs: Add description about ack callback -EPIPE error handling
author
Takashi Iwai
<tiwai@suse.de>
Thu, 23 Mar 2023 06:52:36 +0000
(07:52 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 24 Mar 2023 13:52:58 +0000
(14:52 +0100)
Add a brief description about the newly added behavior of the PCM ack
callback with -EPIPE error.
Link:
https://lore.kernel.org/r/20230323065237.5062-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/sound/kernel-api/writing-an-alsa-driver.rst
patch
|
blob
|
history
diff --git
a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst
b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst
index 5c9523b7d55cdbb0df0bb291712e74e30e826860..6b8f3495407f3e05ff8950a80987450b978db9cf 100644
(file)
--- a/
Documentation/sound/kernel-api/writing-an-alsa-driver.rst
+++ b/
Documentation/sound/kernel-api/writing-an-alsa-driver.rst
@@
-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