]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: don't override timestamp unconditionally
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 6 Feb 2015 21:55:50 +0000 (15:55 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Feb 2015 15:01:21 +0000 (16:01 +0100)
commit88a277ad15ef9429d1ebe9f6e249e204af88a8fb
treef0204a290125e413b8ad4b07c89bcc231bd784c4
parent725983c4ab445eb7d5c42b40422a3a5100dc5a5e
ALSA: pcm: don't override timestamp unconditionally

timestamp in RUNNING mode is already taken in update_hw_ptr routine,
getting a new timestamp introduces offset between hw_ptr, audio_tstamp
and system time

Add else condition to read timestamp as fallback and only when
enabled

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c