]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: add documentation for -ENODATA error code
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 29 May 2020 12:28:16 +0000 (15:28 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Jun 2020 09:46:46 +0000 (11:46 +0200)
This error code can be used e.g. with echo reference PCM devices
(the SND_USE_CASE_MOD_ECHO_REF UCM token).

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
src/pcm/pcm.c

index 98b5ced4dceaa963fe0973902d1a3d30944e24f5..45e791b7d1081169f9cbcaaaf9e98df2b0dbcb43 100644 (file)
@@ -292,6 +292,14 @@ This error can happen when device is physically removed (for example
 some hotplug devices like USB or PCMCIA, CardBus or ExpressCard
 can be removed on the fly).
 
+\par -ENODATA
+
+This error can happen if the device data transfer is dependent on
+an external condition and that condition is not met. For example,
+PCM device for echo reference as described by SND_USE_CASE_MOD_ECHO_REF
+UCM token, may return -ENODATA if the linked playback stream has not been
+started.
+
 \section pcm_params Managing parameters
 
 The ALSA PCM device uses two groups of PCM related parameters. The hardware