[ALSA] PCM core - remove SNDRV_PCM_TSTAMP_MMAP condition in snd_pcm_status()
[linux-block.git] / sound / core / pcm_native.c
index 2e7b1e63db94ce7899efb6ec373cd04b441d9b7a..3fc33deabe356912e5b192909d0c0c3a7a46567e 100644 (file)
@@ -593,14 +593,9 @@ int snd_pcm_status(struct snd_pcm_substream *substream,
        if (status->state == SNDRV_PCM_STATE_OPEN)
                goto _end;
        status->trigger_tstamp = runtime->trigger_tstamp;
-       if (snd_pcm_running(substream)) {
+       if (snd_pcm_running(substream))
                snd_pcm_update_hw_ptr(substream);
-               if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_MMAP)
-                       status->tstamp = runtime->status->tstamp;
-               else
-                       snd_pcm_gettime(runtime, &status->tstamp);
-       } else
-               snd_pcm_gettime(runtime, &status->tstamp);
+       snd_pcm_gettime(runtime, &status->tstamp);
        status->appl_ptr = runtime->control->appl_ptr;
        status->hw_ptr = runtime->status->hw_ptr;
        if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {