diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/pcm_native.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 2e7b1e63db94..3fc33deabe35 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -593,14 +593,9 @@ int snd_pcm_status(struct snd_pcm_substream *substream, | |||
593 | if (status->state == SNDRV_PCM_STATE_OPEN) | 593 | if (status->state == SNDRV_PCM_STATE_OPEN) |
594 | goto _end; | 594 | goto _end; |
595 | status->trigger_tstamp = runtime->trigger_tstamp; | 595 | status->trigger_tstamp = runtime->trigger_tstamp; |
596 | if (snd_pcm_running(substream)) { | 596 | if (snd_pcm_running(substream)) |
597 | snd_pcm_update_hw_ptr(substream); | 597 | snd_pcm_update_hw_ptr(substream); |
598 | if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_MMAP) | 598 | snd_pcm_gettime(runtime, &status->tstamp); |
599 | status->tstamp = runtime->status->tstamp; | ||
600 | else | ||
601 | snd_pcm_gettime(runtime, &status->tstamp); | ||
602 | } else | ||
603 | snd_pcm_gettime(runtime, &status->tstamp); | ||
604 | status->appl_ptr = runtime->control->appl_ptr; | 599 | status->appl_ptr = runtime->control->appl_ptr; |
605 | status->hw_ptr = runtime->status->hw_ptr; | 600 | status->hw_ptr = runtime->status->hw_ptr; |
606 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { | 601 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { |