pub struct ClockChoice {
pub control_interface: u8,
pub source_id: u8,
pub path: Vec<ClockHop>,
pub resolution: ClockResolution,
}Expand description
How the clock the library programs the sample rate on was reached, for diagnosing a DAC with more than one clock. Read-only: nothing here changes what the library does.
UAC 2.0 routes a streaming terminal to its clock through Clock Selectors (several inputs, one active) and Clock Multipliers, ending at a Clock Source (section 4.7.2). The sampling frequency is set and read back on that source.
Fields§
§control_interface: u8Interface number of the AudioControl interface the clock requests go to.
source_id: u8Entity ID of the Clock Source the sample rate is set and verified on.
path: Vec<ClockHop>The entities followed, in order: the streaming terminal, then each clock
entity down to the Clock Source (the last hop, whose id is source_id).
For ClockResolution::FallbackFirstSource nothing was followed, so the
path is the Clock Source alone.
resolution: ClockResolution