diff options
author | Libin Yang <libin.yang@intel.com> | 2015-02-16 23:28:23 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-17 01:48:15 -0500 |
commit | 9fd37810daa56b8c0a8d51565216c95220889e62 (patch) | |
tree | 0c3029d086ea85e3efaca892185fb0763fe9c95b /sound/soc | |
parent | b62b998010028c4dfd7db7c26990efb2a0985a1e (diff) |
ASoC: Intel: add SNDRV_PCM_INFO_DRAIN_TRIGGER flag
Add SNDRV_PCM_INFO_DRAIN_TRIGGER in snd_pcm_hardware.info to
call sst_hsw_stream_set_silence_start() when PCM draining.
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/intel/sst-haswell-pcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-haswell-pcm.c b/sound/soc/intel/sst-haswell-pcm.c index d6fa9d5514e1..7e21e8f85885 100644 --- a/sound/soc/intel/sst-haswell-pcm.c +++ b/sound/soc/intel/sst-haswell-pcm.c | |||
@@ -91,7 +91,8 @@ static const struct snd_pcm_hardware hsw_pcm_hardware = { | |||
91 | SNDRV_PCM_INFO_INTERLEAVED | | 91 | SNDRV_PCM_INFO_INTERLEAVED | |
92 | SNDRV_PCM_INFO_PAUSE | | 92 | SNDRV_PCM_INFO_PAUSE | |
93 | SNDRV_PCM_INFO_RESUME | | 93 | SNDRV_PCM_INFO_RESUME | |
94 | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP, | 94 | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP | |
95 | SNDRV_PCM_INFO_DRAIN_TRIGGER, | ||
95 | .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | | 96 | .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | |
96 | SNDRV_PCM_FMTBIT_S32_LE, | 97 | SNDRV_PCM_FMTBIT_S32_LE, |
97 | .period_bytes_min = PAGE_SIZE, | 98 | .period_bytes_min = PAGE_SIZE, |