summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-07-10 09:40:38 +0200
committerTakashi Iwai <tiwai@suse.de>2014-07-10 16:58:01 +0200
commit2408c219df9e7a47680d43ed7877aaaec3feca1b (patch)
tree9747ece297479c3b21daad40273f0e7d60c8191f
parentcd3de83f147601356395b57a8673e9c5ff1e59d1 (diff)
downloadlinux-2408c219df9e7a47680d43ed7877aaaec3feca1b.tar.gz
linux-2408c219df9e7a47680d43ed7877aaaec3feca1b.tar.bz2
linux-2408c219df9e7a47680d43ed7877aaaec3feca1b.zip
ALSA: pcm: simplify snd_pcm_tstamp()
No functional change. Acked-by: Jaroslav Kysela <perex@perex.cz> Reviewed-by: Mark Brown <broonie@linaro.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/pcm_native.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index b653ab001fba..2372c49a8e84 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2540,9 +2540,7 @@ static int snd_pcm_tstamp(struct snd_pcm_substream *substream, int __user *_arg)
return -EFAULT;
if (arg < 0 || arg > SNDRV_PCM_TSTAMP_TYPE_LAST)
return -EINVAL;
- runtime->tstamp_type = SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY;
- if (arg == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC)
- runtime->tstamp_type = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC;
+ runtime->tstamp_type = arg;
return 0;
}