[alsa-devel] [PATCH 2/2] ALSA: hda: support for wallclock timestamps

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Thu Jun 14 06:57:59 CEST 2012


On 6/13/2012 10:32 PM, Wang Xingchao wrote:
> I'm afraid you donot think much about the Wall Clock Counter register, 
> the counter will roll over to 0 within 179s under 24Mhz. Another case 
> maybe BCLK stop and controller reset. thanks --xingchao

Hi Xingchao,
all cycle counters will wrap around at some point, the HDAudio wall 
clock isn't an exception. As long as you have 2 periods or events per 
179s, the wrap-around can be detected without any issues. It's 
explicitely handled in the code.
If the BCLK stops, then there's no real audio transfer happening, is 
there? Likewise the controller reset does not matter since we re-init 
during a trigger.
I don't see any of these points as show-stoppers. The HDAudio spec 
clearly mentions that such a wall clock should be used for 
synchronization with other devices, and I am enabling just that.
Regards,
-Pierre



More information about the Alsa-devel mailing list