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)
commit5d890f591d15d1161131546c2af371178c967734
tree62876fcd91458b77368d187b4a3fd1dc373e6640
parent4eeaaeaea1cec60a25979678182720dc91308550
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