Skip to content

Commit 2408c21

Browse files
committed
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>
1 parent cd3de83 commit 2408c21

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎sound/core/pcm_native.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,9 +2540,7 @@ static int snd_pcm_tstamp(struct snd_pcm_substream *substream, int __user *_arg)
25402540
return -EFAULT;
25412541
if (arg < 0 || arg > SNDRV_PCM_TSTAMP_TYPE_LAST)
25422542
return -EINVAL;
2543-
runtime->tstamp_type = SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY;
2544-
if (arg == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC)
2545-
runtime->tstamp_type = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC;
2543+
runtime->tstamp_type = arg;
25462544
return 0;
25472545
}
25482546

0 commit comments

Comments
 (0)