projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3de83
)
ALSA: pcm: simplify snd_pcm_tstamp()
author
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jul 2014 07:40:38 +0000
(09:40 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jul 2014 14:58:01 +0000
(16:58 +0200)
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>
sound/core/pcm_native.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/pcm_native.c
b/sound/core/pcm_native.c
index b653ab001fbac0778547b933815dff289240f7cf..2372c49a8e84d9180928451d84735d50c5b962a5 100644
(file)
--- 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;
}