Music is playing and the computer still sees the interface, yet a short click breaks through every few minutes. Reopening the player may quiet it for a while. A different cable may make no difference. Start by plotting the time of each click alongside the amount of data queued for playback. If the queue drifts steadily toward one limit before snapping back to the middle, compare the rate at which audio arrives with the rate at which the digital-to-analog converter actually consumes it.
The USB host schedules transfers against its own timebase. An asynchronous audio device can play samples at a rate set by its local oscillator. Each clock has some frequency error, so their seconds differ slightly. Both devices can report 48 kHz and the USB link can transfer packets without errors while the playback queue gradually empties or fills. Here, one audio frame means the samples for all channels at one instant, such as a left and a right sample. Use that common unit for both counters and buffer capacity.
What happened to the queue before the click?
Suppose the host sends exactly 48,000 frames per second and the playback clock is 50 parts per million faster. With other errors ignored, the device consumes about 2.4 extra frames each second. Starting with 1,200 frames of cushion, it runs out after about 500 seconds. If the driver inserts silence and refills the queue, playback can continue with a click and no obvious error message.
Doubling the cushion to 2,400 frames delays the first underrun to roughly 1,000 seconds. A few songs may play without trouble. The long-term rate mismatch still drives the queue to a boundary. Use the actual buffer capacity and expected clock difference to set test duration and leave some margin. A ten-minute demonstration can easily miss a fault that appears after fifteen minutes.
Have the host and device log cumulative frames written and read. Mark resets due to pausing or disconnecting so you can compare counters from the same session. If the discrepancy grows in sudden steps, look at scheduling, dropped packets and buffer levels. A persistent slope gives you a reason to compare clock rates. If the device clock is slower but the playback queue still shrinks, check the counter units or whether some frames are discarded. Examine 44.1 kHz and 48 kHz separately when testing rate changes.
What the feedback endpoint tells the host
In an asynchronous playback design with explicit feedback, the device reports its measured consumption rate through a feedback endpoint. The host adjusts later transfers accordingly. Some transfer intervals may carry one more frame and some one fewer. Over time, the average delivery rate should follow actual playback. Audio samples still travel through the data endpoint. The playback buffer absorbs the difference between packets that arrive in batches and samples consumed at regular intervals.
Zephyr's example estimates consumption by comparing audio-clock counts with USB frame timing. Check the units and encoding of the feedback value against your bus speed, descriptors and implementation. If one part of the firmware calculates a value per millisecond and another interprets it per shorter transfer interval, the estimate will be off by a fixed factor. Queues may then underrun or overflow much faster than with a small frequency offset. Also check whether feedback from a previous sample rate survives a restart.
Average accuracy is only part of the picture. A very short measurement interval makes the estimate jump when one extra edge is counted. Heavy filtering can make it slow to follow temperature changes, startup behavior or a new sample rate. The former may produce an oscillating queue level during steady playback. The latter often shows up during startup, resume or a rate change. Plot feedback, queue depth and word clock together. Treat an example's filter setting as a starting point and choose the actual value from your own buffer depth and startup tests.
For an oscillator substitution, ask for the complete ordering code, nominal frequency, initial tolerance, temperature range, aging and interface. Engineering should identify which stage the part clocks and what range the feedback algorithm can track. A separate crystal may clock the USB controller or processor. Mark the reference designator and net name as well as the frequency so purchasing can distinguish the two roles.
Use a repeatable test tone for cold startup, continuous playback, rate changes and wake from sleep. Record the host, driver configuration, frame counters and minimum distance from the buffer limits. An audio excerpt identifies the timing of the click. The counters guide the next check. If buffer levels remain comfortably within range and the click follows an analog mute or clock-switch event, investigate that output path and mute control.
