aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm_native.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm_native.c')
-rw-r--r--sound/core/pcm_native.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index f9ddecf2f4cd..09b4286c65f9 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -602,6 +602,8 @@ int snd_pcm_status(struct snd_pcm_substream *substream,
602 snd_pcm_update_hw_ptr(substream); 602 snd_pcm_update_hw_ptr(substream);
603 if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) { 603 if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE) {
604 status->tstamp = runtime->status->tstamp; 604 status->tstamp = runtime->status->tstamp;
605 status->audio_tstamp =
606 runtime->status->audio_tstamp;
605 goto _tstamp_end; 607 goto _tstamp_end;
606 } 608 }
607 } 609 }
@@ -1998,7 +2000,7 @@ int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream)
1998 if (runtime->dma_bytes) { 2000 if (runtime->dma_bytes) {
1999 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes); 2001 err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 0, runtime->dma_bytes);
2000 if (err < 0) 2002 if (err < 0)
2001 return -EINVAL; 2003 return err;
2002 } 2004 }
2003 2005
2004 if (!(hw->rates & (SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_CONTINUOUS))) { 2006 if (!(hw->rates & (SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_CONTINUOUS))) {