mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-24 03:25:38 +00:00
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>
This commit is contained in:
parent
cd3de83f14
commit
2408c219df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user