]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/sound/pcm.h
[media] tw68: make tw68_pci_tbl static and constify
[karo-tx-linux.git] / include / sound / pcm.h
index d854fb31c000756e46bc9c677e6a9979232b8453..6f3e10ca0e323f8ca8422e1a75824bce89d61a62 100644 (file)
@@ -931,10 +931,17 @@ void snd_pcm_timer_done(struct snd_pcm_substream *substream);
 static inline void snd_pcm_gettime(struct snd_pcm_runtime *runtime,
                                   struct timespec *tv)
 {
-       if (runtime->tstamp_type == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC)
+       switch (runtime->tstamp_type) {
+       case SNDRV_PCM_TSTAMP_TYPE_MONOTONIC:
                ktime_get_ts(tv);
-       else
+               break;
+       case SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW:
+               getrawmonotonic(tv);
+               break;
+       default:
                getnstimeofday(tv);
+               break;
+       }
 }
 
 /*