summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@intel.com>2014-12-31 15:09:54 +0100
committerTakashi Iwai <tiwai@suse.de>2014-12-31 17:10:08 +0100
commit48d882978eb0a15547093b4542a82b5c22548041 (patch)
tree814d122dc9b7d6076ecb49229ba27b3bd94d3401 /include/sound
parentALSA: asihpi: fix an information leak in asihpi_hpi_ioctl() (diff)
downloadlinux-48d882978eb0a15547093b4542a82b5c22548041.tar.xz
linux-48d882978eb0a15547093b4542a82b5c22548041.zip
ALSA: pcm: add SNDRV_PCM_TRIGGER_DRAIN trigger
Add SNDRV_PCM_TRIGGER_DRAIN trigger for pcm drain. Some audio devices require notification of drain events in order to properly drain and shutdown an audio stream. Signed-off-by: Libin Yang <libin.yang@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/pcm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 3652c9439af9..bf32cea2202e 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -106,6 +106,7 @@ struct snd_pcm_ops {
#define SNDRV_PCM_TRIGGER_PAUSE_RELEASE 4
#define SNDRV_PCM_TRIGGER_SUSPEND 5
#define SNDRV_PCM_TRIGGER_RESUME 6
+#define SNDRV_PCM_TRIGGER_DRAIN 7
#define SNDRV_PCM_POS_XRUN ((snd_pcm_uframes_t)-1)