9 Sep
2009
9 Sep
'09
6:03 p.m.
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. Cheers - Pierre