summaryrefslogtreecommitdiff
path: root/include/sound/uapi/asound.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2023-04-25 14:36:19 +0200
committerJaroslav Kysela <perex@perex.cz>2023-05-03 14:00:57 +0200
commit90e25887d24661a0bdc169b7b14525a97a4645c1 (patch)
tree9d9263756ad221698a4a911cbce1e3f61f350d29 /include/sound/uapi/asound.h
parentdd9cb31a90594e19f7a3ad53dc1a6344ddf78f7e (diff)
downloadalsa-lib-90e25887d24661a0bdc169b7b14525a97a4645c1.tar.gz
pcm: hw: introduce SNDRV_PCM_INFO_PERFECT_DRAIN
Handle the driver informing us that it is not necessary to set up silencing upon playback draining. This will be the case for drivers which are guaranteed to not read any samples beyond the application pointer. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/uapi/asound.h')
-rw-r--r--include/sound/uapi/asound.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/uapi/asound.h b/include/sound/uapi/asound.h
index fc18c024..0b8834f2 100644
--- a/include/sound/uapi/asound.h
+++ b/include/sound/uapi/asound.h
@@ -281,6 +281,7 @@ typedef int __bitwise snd_pcm_subformat_t;
#define SNDRV_PCM_INFO_DOUBLE 0x00000004 /* Double buffering needed for PCM start/stop */
#define SNDRV_PCM_INFO_BATCH 0x00000010 /* double buffering */
#define SNDRV_PCM_INFO_SYNC_APPLPTR 0x00000020 /* need the explicit sync of appl_ptr update */
+#define SNDRV_PCM_INFO_PERFECT_DRAIN 0x00000040 /* silencing at the end of stream is not required */
#define SNDRV_PCM_INFO_INTERLEAVED 0x00000100 /* channels are interleaved */
#define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200 /* channels are not interleaved */
#define SNDRV_PCM_INFO_COMPLEX 0x00000400 /* complex frame organization (mmap only) */