[alsa-devel] Is there a way to figure out if the clocks of two snd_pcm_t's deviate? (snd_pcm_info_get_sync?)

pl bossart bossart.nospam at gmail.com
Wed Sep 9 18:03:18 CEST 2009

> but why shouldn't this information be queriable from the drivers?
> Drivers do know a lot about the hardware they drive, so they should
> now about clocks, too.

You are correct, drivers typically configure serial audio links to be
master or slave, and what is the clock source. In SoC this would be
done in the dai link configurations. If you had a means to report this
information to userspace then yes you could find out if two interfaces
are in sync. It might be a bit more complex for USB since the standard
specifies different ways of sending audio out.
- Pierre

More information about the Alsa-devel mailing list