]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: support for wallclock timestamps
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 22 Oct 2012 21:42:16 +0000 (16:42 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Oct 2012 14:13:52 +0000 (16:13 +0200)
commitd9c9d6b2d800e5aa33a7ddc510f5ee0a69b32f42
tree62876fcd91458b77368d187b4a3fd1dc373e6640
parent57456292f8c3f829f41f1f12aec0ef52886b069c
ALSA: hda: support for wallclock timestamps

Reuse code from clocksource to handle wall clock counter.
Since wrapparound occurs, the audio timestamp is reinitialized
to zero on a trigger. Synchronized linked devices will
start counting from same reference to avoid any drift.

Max buffer time is limited to 178 seconds to make sure
wall clock counter does not overflow

Wallclock timestamps are disabled on capture streams
until we figure out how to handle digital inputs.

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