mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
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>
This commit is contained in:
parent
dd9cb31a90
commit
90e25887d2
5 changed files with 30 additions and 1 deletions
|
|
@ -79,6 +79,8 @@
|
|||
#define SND_PCM_INFO_DOUBLE SNDRV_PCM_INFO_DOUBLE
|
||||
/** device transfers samples in batch */
|
||||
#define SND_PCM_INFO_BATCH SNDRV_PCM_INFO_BATCH
|
||||
/** device does perfect drain (silencing not required) */
|
||||
#define SND_PCM_INFO_PERFECT_DRAIN SNDRV_PCM_INFO_PERFECT_DRAIN
|
||||
/** device accepts interleaved samples */
|
||||
#define SND_PCM_INFO_INTERLEAVED SNDRV_PCM_INFO_INTERLEAVED
|
||||
/** device accepts non-interleaved samples */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue