Design decisions

Edit on GitHub

Design decisions: streaming and buffering#

Five decisions about how audio gets from the app to the bus and what pause, seek and position mean on the way. They share a vocabulary: the ring is the buffer the app writes into, the bus queue is the audio already handed to the USB host controller as transfers, and a service interval is how often the DAC takes a packet (125 microseconds on a high-speed link, 1 millisecond on full speed). USB audio in a page explains the terms from the start.

Each decision has the same parts: the question and what it means in plain terms; what Flick, Mornye and BitChord do, with file paths; what usbdac does; the evidence; the trade-off; and the public references (listed in full on the references page). "Flick today" and the other revisions are defined on the drivers page. The overview of all decisions has the summary table.

1. How the queue on the bus is shaped#

The question. The driver keeps several isochronous transfers queued ahead of the DAC. How many, and how many packets does each carry?

In plain terms. Audio goes to the DAC in tiny packets, and the driver hands the phone's USB controller a batch of them at a time, with several batches waiting behind the first. A longer queue gives a late thread more room before the DAC runs dry. It also means that a pause or a seek is heard later, because everything already queued still plays. The way the queue is cut into batches decides how often the thread has to wake up and how much one bad batch costs.

What it does Where
Flick before #400 8 transfers of (4000 / service interval in microseconds) packets, clamped to 16..32: 32 x 8 = 256 packets (32 ms) on a high-speed link, 16 x 8 = 128 ms on a full-speed DAC with a 1 ms interval rust/src/uac2/iso_packet_scheduler.rs, ANDROID_USB_TRANSFER_QUEUE_DEPTH in android_direct.rs at 90a539c2
Flick today 16 x 8 = 128 packets (16 ms) for PCM at a 125 us interval. Every other case keeps the earlier rule: DoP and native DSD at 125 us are still 32 x 8 = 256 packets, a 1 ms DAC is still 16 x 8 = 128 ms IsoQueueGeometry::for_stream in iso_packet_scheduler.rs at 11395a49
Mornye 4 transfers of (4000 / interval in microseconds) packets, clamped to 1..32, so every transfer is about 4 ms: 32 packets at 125 us, 4 packets at 1 ms. 16 ms queued at any interval usb_audio/transport.rs (the slot loop in Session::open and packets in run)
BitChord The same: 4 transfers of up to 32 packets app/src/main/cpp/bitperfect/usb_transport.cpp (packetsPerTransfer, the slot loop in Session)
usbdac A transfer carries bus_queue_ms / transfers_in_flight of audio (2 ms by default), and 8 are in flight: 16 x 8 at 125 us, 8 x 8 at 250 us, 4 x 8 at 500 us, 2 x 8 at 1 ms. About 16 ms initially at the default geometry. With that default geometry, adaptive depth can then grow by two transfers after a loss, to at most 15 transfers (30 ms) at 125 us and 16 transfers (32 ms) at longer intervals. At most 32 packets per transfer, and the packets in flight never reach 256 (the code caps them at 255). Both numbers are settings crates/usbdac-core/src/iso_packet_scheduler.rs (IsoQueueGeometry), DacConfig::bus_queue_ms and transfers_in_flight

What usbdac does. One rule for every service interval and encoding. It is DacConfig(busQueueMs = 16, transfersInFlight = 8) by default, validated to 4..64 ms and 2..16 transfers, and the 255-packet cap wins over the configuration. The tests every_service_interval_queues_the_same_16_ms, packets_in_flight_never_reach_256_whatever_the_configuration and pcm_dop_and_native_dsd_get_the_same_queue_at_every_interval pin it down. Mornye's shape is reachable with busQueueMs = 16, transfersInFlight = 4, which gives 32 x 4 at 125 us. UsbQueueProfile (LOW_LATENCY, BALANCED, LOW_CPU) sets these values together, and transferPeriodUs picks the duration of one transfer on its own: the driver rounds it down to whole service intervals, keeps at least two slots and applies the same 255-packet cap.

Adaptive depth. DacConfig.adaptiveQueue (on by default) changes only the number of active transfers, never the packets in one. A worker batch that completes with loss adds two transfers, once per batch however many lossy completions it held, and each quiet 30 s removes one, down to the starting depth. The ceiling is the smallest of 16 transfers, 255 packets in flight and 64 ms; at the default 2 ms transfers the packet cap gives 15 transfers (30 ms) at 125 us, and 16 transfers (32 ms) at 250 us, 500 us and 1 ms. The 64 ms term never binds with the default geometry. Adaptation runs only with the default busQueueMs, transfersInFlight and no transferPeriodUs, and never on an implicit-feedback route, whose IN and OUT pools stay paired. The Linux driver sizes its URB pool once at setup and does not grow it after loss.

Evidence.

  • A stall at exactly 256 packets. On a OnePlus 15 (CPH2747, Android 17) with an iBasso DC04U, 24-bit at 44.1 kHz, Flick's 32 x 8 started playing and then stalled: the log shows the stream starting at 15:05:55.227 and isochronous transfer timed out at 15:05:57.188, and the build fell back to Android's own output. A sweep of about 40 geometries driven from adb, each run for 10 to 20 seconds, found that every geometry with 255 packets in flight or fewer played cleanly, and every geometry with exactly 256 stalled within the first seconds, whatever the transfer size (8 x 32, 16 x 16, 32 x 8, 64 x 4 and 128 x 2). The stall came earlier or later with the shape, from about 0.2 s to about 4 s after the start, which the pull request's ring-position arithmetic also predicts. Above 256 the result was irregular but repeatable. The full table is on the evidence page. It was measured on one phone and one DAC.
  • The cause is not established. The pull request that records the sweep (Flick #400) suggests the stall is tied to the 256-entry ring segments of the xHCI host controller, one entry of which is a link, leaving 255 usable. The arithmetic matches the moments at which the stuck transfer was submitted in the logs, to within 12 to 30 ms. The Linux xHCI source does set 256 TRBs per segment and does use one of them as a link (TRBS_PER_SEGMENT in drivers/usb/host/xhci.h, xhci_set_link_trb in xhci-mem.c), but that source does not say anything about audio queue depth, and the failing totals above 256 are irregular. usbdac therefore does not claim a mechanism. It keeps clear of 256 and says why.
  • Cost of the shapes that work. CPU time of the USB output thread over 10 s, idle and with 16 busy loops running: 32 x 4 used 33 and 13 ms/s; 16 x 8 used 44 to 48 and 18 to 19 ms/s; 8 x 16 used 66 and 29 ms/s. CPU cost follows packets per transfer rather than queue depth. 32 x 4 is the cheapest, and its lowest observed queue depth was 3 of 4.
  • The Linux kernel driver stays well inside. snd-usb-audio limits itself to 12 URBs and, as a soft limit, 18 ms of queued audio (MAX_URBS, MAX_QUEUE in sound/usb/card.h). Flick's 128 ms for a 1 ms DAC was 7 times the kernel's ceiling, and 256 packets at 125 us is 32 ms.
  • A deeper queue is not free. Mornye tried up to 24 transfers (about 96 ms in flight) to stop stutters when its worker thread is late (commit 09ff115ef, 2026-11-19), and reverted it the same day (580a9bbfe). The reverting message says that with 96 ms of audio committed to the kernel, the packet sizes a DAC asks for through its feedback endpoint take effect that much later, a DAC that steers its own buffer through feedback then swings past the 2 % band the transport accepts, and playback paused with "USB feedback stopped or invalid" for a tester. It also says "the mechanism is read from the code, not measured".
  • A third party's phone. BitChord issue #1485 (Poco F9 Ultra, Snapdragon, Android 16, a USB-C dongle DAC; one reporter, one device) counts about 990 failed transfers in 7 minutes with the 4-transfer queue, 91 with 16 transfers, and says 32 transfers were worse: all in-flight transfers timed out together. It is an anecdote from a different phone, and it shows that the best depth depends on the phone as well as the DAC.
  • Reported in testing, not reproduced in an automated test: start-up time did not differ between 32 x 4 and 16 x 8.

Trade-off. 32 x 4 wakes the output thread half as often as 16 x 8 and costs about a third less CPU, which matters for battery on a long listen. In return one late or lost transfer is a quarter of the queue instead of an eighth, and with 4 transfers the queue is refilled in larger steps. usbdac chose 16 x 8 because it was the shape measured on the phone that exposed the stall, because it keeps 8 transfers queued (inside the kernel driver's 12), and because a loss costs 2 ms of audio rather than 4. A host that cares more about CPU than about the granularity of a loss can set transfersInFlight = 4. Mornye's and BitChord's shape has been run on hardware by their authors, and usbdac has not repeated their runs.

References. UAC 2.0 and USB 2.0 service intervals, Linux snd-usb-audio limits, xHCI segment size, libusb isochronous transfers, Flick #400, Mornye commits, BitChord #1485.

2. How deep the ring is, and what a deep ring must not slow down#

The question. How much audio should the app be able to keep queued in the library's ring, and what happens to the things a listener changes while it plays?

In plain terms. A bigger buffer protects against a gap when the phone is busy or a file is slow to read. It also delays anything the player applies to the audio before handing it over, such as an equaliser or software volume, because the new setting only reaches the sound after the older audio has played. The question is how to have the protection without the delay.

What it does Where
Flick before and after #400 Target 100 ms, capacity 200 ms ANDROID_USB_BUFFER_TARGET_MS, ANDROID_USB_BUFFER_CAPACITY_MS in android_direct.rs at 11395a49
Mornye Capacity 1.5 s at every rate (at least 256 KiB). Commit 30ec85296 raised it from "200 ms or 256 KiB, whichever is more" because that was 1.5 s at CD rate but a third of a second for 96 kHz 32-bit, "so a short stall of the source thread (another app opening) cut high-rate songs only". The README still says "approximately 200 ms" usb_audio/descriptors.rs (queue_bytes), transport.rs (capacity)
BitChord 200 ms or 256 KiB, whichever is more (capacity = max(rate * frame / 5, 256 KiB)); the comment above write says about 200 ms usb_transport.cpp, Output
usbdac Target 250 ms, capacity 500 ms, start threshold 100 ms. While software gain is not exactly 1.0, or the host says it processes the audio itself, the recommended depth drops to 100 ms (processing_buffer_target_ms). Software gain is applied when each transfer is prepared, not when audio enters the ring DacConfig in config.rs, ring_target.rs, apply_software_gain in transport/encode.rs and its call in transport/output.rs

What usbdac does. writable_bytes() tells the app how much to write to bring the ring to its target; write() accepts more, up to the capacity. The target is chosen again on every call to writable_bytes(), from two inputs: whether software gain is on, and whether the host has said it processes audio (set_host_processing(true), for an equaliser, a DSP chain, a crossfade). That second input is set_host_processing(true) in Rust and DacStream.setHostProcessing(true) in Kotlin (since 0.1.5). It is a buffering hint only: it changes no sample and does not touch the bit-perfect flag. DoP and native DSD are bitstreams that are never processed, so they always get the deep ring. When the target drops, the ring is not flushed: the app simply stops writing until the output has drained below the new target, so the audio stays continuous and the change is heard after at most the old fill. Software gain is multiplied in as each transfer is built, so it does not wait behind the full ring; submitted and downstream audio affect when the change is heard. A flush on every seek, stop and track change (see decision 4) is what stops a deep ring from making the player feel slow.

Evidence.

  • Flick's commit 3d864cea (on Flick's own feat/usb-dac-unified branch, 2026-11-26) records the reasoning for 250 ms: with a 100 ms target "an upstream stall of about 100 ms (slow storage, a network source, scheduling) was an audible dropout". It also records the cost: EQ, DSP and software gain "are applied when audio is rendered, so a change is heard after the buffered audio", which grew from about 100 ms to about 250 ms. The follow-up 0fbfbfe9 keeps the deep ring only for bit-perfect passthrough. usbdac's ring_target.rs is that decision with the app-side parts removed.
  • Mornye's 30ec85296 is an independent report of the same stall (another app opening starves the source thread) and chose a larger buffer.
  • usbdac tests cover the truth table of "live" processing and the ring across a change in each direction (tests/ring_target_tests.rs).
  • The 250 ms figure is a judgement. It is above the 100 ms at which a stall was described as audible and well under Mornye's 1.5 s. It has not been tuned against a measured distribution of stalls.

Trade-off. A deeper ring costs memory (500 ms of 384 kHz stereo is about 1.5 MB at 4 bytes per sample) and delays whatever the host applies before write. A 1.5 s ring like Mornye's rides out longer stalls, and takes 1.5 s to reflect any change made upstream of the ring unless every seek and stop flushes it, which Mornye does. usbdac's middle value, with the shallow mode for live processing, is a compromise, and a host that processes audio can tell the stream through the Rust or Kotlin API.

References. Linux ALSA buffer sizes, Flick commits on the unified branch, Mornye commits.

3. What a late or lost transfer does#

The question. When the host controller reports that a batch of packets timed out, came back short, or was not sent, does the stream end, and what does the player get told?

In plain terms. Isochronous USB has no retry: a packet that does not arrive is gone, and the DAC plays whatever fills the gap. By the time a failure is reported, the next batches are already queued behind it, so re-sending would play the audio out of order. The choices are to stop at once, to carry on and say nothing, or to carry on, count exactly what was lost, stop only if it keeps happening, and never claim the audio was perfect afterwards.

What it does Where
Flick before #406 Any non-completed status, a timed-out transfer, or a packet whose length is not exactly the submitted length ends the stream iso_packet_validation.rs, the status match in android_direct.rs at 90a539c2
Flick today PCM streams survive a timed-out transfer. Audio is counted lost exactly, three lossy transfers in a row or more than 100 ms lost since the start ends the stream, and the first lost frame clears the bit-perfect flag for that stream. DoP and native DSD still end the stream on a timeout. A packet with a non-completed status still ends the stream iso_transport_loss.rs, ANDROID_USB_MAX_CONSECUTIVE_LOSSY_URBS, ANDROID_USB_MAX_LOST_AUDIO_MS, and the pcm_frame_bytes.is_some() arm in android_direct.rs at 11395a49
Mornye The first transfer that is not fully completed, or whose packets are not all the length submitted, ends the stream with "USB audio transfer failed". Two seconds without a valid feedback report also ends it usb_audio/transport.rs (Slot::success, run)
BitChord The same, because it is a port: require(slot->success(), "USB audio transfer failed") usb_transport.cpp
usbdac Timed-out or failed transfers and failed packets are charged conservatively, with unconfirmed bytes never credited as delivered. Exact successful completions retain exact accounting. A decaying loss budget and a consecutive failure limit bound recovery; the first charged frame permanently clears bit-perfect. iso_transport_loss.rs, iso_packet_validation.rs, transport/output.rs

What usbdac does. The limits are in time rather than in a bare count: more than 100 ms of audio in the decaying decision budget ends it, and so do more consecutive lossy transfers than cover 6 ms of audio, with a minimum of three transfers (IsoQueueGeometry::max_consecutive_lossy_urbs). With the default 2 ms transfers that is the fourth lossy transfer in a row. Held silence that was lost (during a pause) is counted separately and is not lost music. The LostFrames event carries the count, and StreamStats has the totals.

Evidence.

  • Hardware, with fault injection (Flick #406). A healthy DAC loses nothing, so the loss was made on purpose with a test-only build on the OnePlus 15 and DC04U: a one-frame-short packet, a zero-length packet, a transfer reported timed out with its back half undelivered, and real URB timeouts of 4 ms and 15 ms. Playback continued in all of them, the count was exact (for example 3 packets, 102 bytes, 17 frames delivered of a 44-frame URB, 27 reported lost), and four consecutive lossy transfers stopped the stream on the fourth, with the message naming the limit. The table is on the evidence page. What the loss sounds like was not judged: the runs were driven over adb.
  • Resubmission alone was not enough. The same pull request that found the stall (#400) reports that an earlier build with timeout resubmission still stopped with four consecutive timeouts at 256 packets in flight. Tolerating a timeout is a safety net. The geometry in decision 1 is what removes the cause.
  • A failed packet is charged, not fatal. BitChord issue #1485 reported zero-byte packets with LIBUSB_TRANSFER_ERROR on a Snapdragon phone. 0.1.5 first tolerated one isolated empty packet error. The current accounting charges supported failed packets (error, timeout, overflow and stall) and failed transfers against the budget, and never credits bytes from failed packets as delivered. Malformed geometry and unsupported statuses remain terminal. The tests include test_failed_packet_recovery_accounts_every_known_empty_request, test_unrecoverable_packet_errors_are_rejected_even_when_lengths_match and stalled_partial_packet_is_charged_without_crediting_unconfirmed_bytes in iso_packet_validation_tests.rs. No phone has produced such an error under usbdac.
  • Units. Flick's loss counter divided native DSD shortfall by the transport frame size while the ring counts one frame per DSD byte per channel, so DSD loss was under-counted by the slot size. Flick #406 fixed it; usbdac carries the fix (ring_bytes_per_frame) and applies loss tolerance to every encoding.
  • usbdac tests: iso_transport_loss_tests.rs (about 600 lines), iso_packet_validation_tests.rs, and the host-side fake_dac tests in transport/tests.rs.

Trade-off. Carrying on after loss keeps the music going through a brief fault, and the price is a bounded stretch of damaged audio. The bounds (100 ms, 6 ms or three transfers) are choices. Flick's #406 says its own bounds "are my choice (3 URBs, 100 ms), not derived from measurements", and usbdac's are the same numbers expressed in time. A listener who would rather have silence than a glitch can treat the first LostFrames event as a stop condition.

References. USB 2.0: isochronous transfers are not retried, libusb: transfer status and cancellation, Flick #406, BitChord #1485.

4. What pause, flush and position mean at the wire#

The question. When the listener presses pause, resumes, or seeks, what is on the bus, what happens to the audio in the buffer, and what position does the app read?

In plain terms. A player feels connected to the listener's finger when pause stops the sound now, resume starts it from the same sample, a seek is heard at once, and the progress bar shows what is coming out of the headphones. A deep buffer and a queue on the bus both get in the way, because audio that is already queued keeps playing.

Pause Seek or stop Position
Flick before #414 The engine starts rendering silence, but the 100 ms of music already in the ring plays first, and 100 ms of silence is queued before the music on resume The ring is not cleared: about 100 ms of the old position plays From the decoder
Flick today The output thread sends wire silence without consuming the ring, so the audio resumes where it stopped; the isochronous stream keeps running; nothing in flight is cancelled The ring is discarded; transfers already on the bus play out From the decoder (a played-frame count exists on Flick's own branch, commit ce5f4a7d, not upstream)
Mornye Pause records the position from completed frames, discards the queue and the transfers in flight (flush, waits up to 2 s for them to be returned), and re-seeks the source when playback resumes. While paused no transfers are submitted: the bus is idle The same flush base + completed music frames; silence inserted during an underrun is not counted
BitChord Stops submitting transfers and keeps the queue; no silence is sent. The port commit says it "adds a pause that keeps the queue and restarts the feedback watchdog, which a Media3 sink needs" flush() cancels in-flight transfers, clears the queue and resets the frame count Completed frames since the last flush, excluding silence
usbdac Wire-correct silence goes out (zero for PCM, the idle pattern 0x69 for DSD, DoP markers keep alternating) and the ring is not consumed; what is already submitted may play first; resume continues from exactly the held audio The ring is dropped, played_frames returns to 0, the transfers on the bus that carry music are cancelled and the slots are refilled with silence until the ring refills. Cancelled audio is not counted as lost, underrun or played. pause() never cancels; a flush while paused or with only silence queued cancels nothing played_frames counts music frames of transfers the DAC completed; latency_frames is ring plus bus. Transfers filled before a flush are tagged with the earlier epoch and never counted afterwards

What usbdac does. The same queue and cancellation rules apply to PCM, DoP and native DSD. The USB stream remains active on silence during a pause; DAC lock and acoustic response require device evidence. A flush requests cancellation of the music-carrying transfers; the output thread waits until libusb has returned every one of them (up to one second, after which the stream fails with an error that names how many), and resumes with silence. DacConfig::cancel_in_flight_on_flush turns the cancel off, and the transfers then play out. Queue depth can vary. The decisions about which transfers to cancel live in flush_cancel.rs so the host tests run the same code as the output loop.

Evidence.

  • Flick #414's description gives the three audible lags of the old behaviour (pause, resume and seek, about a tenth of a second each) and Flick #418 describes the opposite cost of keeping the stream running (below). The description of #414 says it was not run on hardware.
  • Mornye's flush acknowledges every cancelled transfer before freeing its memory and the README states the rule. That is the same discipline usbdac follows: buffers stay alive until libusb hands the transfer back, and the transfer is never freed while pending.
  • usbdac tests: flush_cancel decisions, the position tests in tests/output_position_tests.rs (283 lines) and the pause and flush cases in transport/tests.rs. These run without a DAC. The pause, flush and position behaviour of usbdac has not been confirmed by listening on hardware.
  • libusb documents that cancellation is asynchronous and that freeing a transfer before its cancellation completes is undefined behaviour, which is why the wait is part of the flush.

Trade-off. Sending silence during a pause keeps the USB stream active; acoustic resume timing has not been established. It also keeps the phone's USB bus busy and a bus-powered DAC awake. Flick #418 (open) describes exactly that: a pause overnight is a warm dongle and a drained battery. Mornye's and BitChord's idle bus avoids it, at the cost of a restart on resume that has not been compared here. usbdac's answer is the DacIdleRelease helper, which closes the stream after 30 s of pause while keeping the DAC claimed, and reopens it on play. Cancelling the transfers on flush requires waiting for the controller to return them; acoustic seek latency is not established. Mornye and BitChord cancel as well. Flick today does not.

References. libusb cancellation, USB 2.0: no retry on isochronous, Media3 AudioSink, Flick #414, BitChord port commit.

5. How DSD is carried#

The question. DSD can travel over USB as DoP (DSD bits inside 24-bit PCM samples, with marker bytes) or natively. How does the driver know a DAC takes either, and who owns the details?

In plain terms. USB audio descriptors do not announce DoP, so a driver cannot read "this DAC plays DoP" from the DAC. UAC3 defines a native DSD format with fixed 8-byte words per channel. Legacy native DSD layouts remain device-specific: the byte order and slot size can differ, and a wrong guess sounds like loud noise.

What it does Where
Flick DoP and native DSD (DsdTransportMode in the output loop) rust/src/uac2/android_direct.rs
Mornye Native DSD only for exact matches of vendor id, product id, alternate setting and firmware revision (Amanero Combo384, Pro-Ject Pre Box S2 Digital, Mola-Mola), checked against sound/usb/quirks.c. DoP is a separate opt-in "for a DAC explicitly known to support it; USB audio descriptors do not announce DoP support". Unsupported DSD is stopped, never played as PCM usb_audio/descriptors.rs (native_encoding), README.md
BitChord The same identity table, ported, in Kotlin usb/UsbDescriptors.kt
usbdac Capabilities::supports_dop is true when a PCM alternate setting of at least 24 bits can run 176.4 kHz or more with valid pacing and enough packet capacity, which is what DoP64 needs; supports_native_dsd comes from native DSD alternate settings and legacy quirks. Standard UAC3 DSD uses 8-byte words at bit_rate / 64, D63 oldest, emitted LE64. Legacy 1-, 2- and 4-byte formats retain the quirk table, DacConfig (dsd_big_endian, dsd_subslot) and DsdBitReverse; those controls do not alter standard UAC3 packing. DoP selects a PCM alternate even on UAC3; the capability describes a feasible carrier and does not establish physical marker decoding. The library owns the DoP marker byte (0x05/0xFA), overwrites whatever the host wrote, and keeps it alternating through pause, flush and underrun. Software gain is refused for direct DSD. Optional DSD-to-PCM conversion is separately reported as lossy capabilities.rs, quirk.rs, transport/ring.rs (dop_marker_is_fa), DacStream::set_software_gain

What usbdac does. It reports what the descriptors allow and leaves the encoding choice to the host. Standard UAC3 native DSD uses its declared format. Under the default VerifiedOnly quirk policy a legacy native layout is admitted in three cases, as it was in 0.1.5: the Hidizs AP80 Pro-X (its UAC2 RAW_DATA alternate, four-byte big-endian words, matched on the exact descriptor), the MOONDROP Dawn Pro quirk, and explicit host settings (dsdBigEndian, dsdSubslot and the DSD quirks). The Linux identity tables for Amanero, the ITF families (TEAC, Esoteric, Denon, Marantz, Luxman), Playback Designs and the vendor RAW_DATA families were recorded as source-backed candidates in 0.1.5. The opt-in SourceBacked policy admits only scoped descriptor-proven rules; no unsupported vendor mode command is implied. The compatibility ledger records the evidence, and the bit-perfect output guide explains the byte order the host supplies.

Evidence. UAC3 audio formats define standard native DSD with 64-bit subslots at one sixty-fourth of the source bit rate. The Linux kernel's snd_usb_interface_dsd_format_quirks in sound/usb/quirks.c lists legacy native DSD devices one by one; its comment about the absence of a designated DSD format field applies to those legacy paths, not to the UAC3 DSD format. The DoP standard fixes the marker bytes and the carrier rates (24 bits at 176.4 kHz for DSD64). Mornye's DSD path is tested at the byte level in its own test suite, and its README says native DSD, DoP and long playback "still require device testing". usbdac has host tests for both encodings. The Kotlin SDK also passed native DSD64, DSD128 and DSD256 USB transport and PCM hand-back on an AP80 Pro-X. DoP hardware validation is pending. AP80 transition evidence

Trade-off. UAC3 standard DSD is descriptor-based and has a fixed layout. Legacy native DSD still needs device knowledge: Mornye uses an identity table, while usbdac combines descriptors with quirks. Neither can detect a wrong legacy byte order at run time. DoP carrier feasibility also remains separate from device marker decoding.

References. UAC3 audio formats, DoP open standard 1.1, Linux native DSD quirks, Mornye README.

Loss recovery and queue policy#

Lifetime charged-frame counters and the first-loss bit-perfect blocker remain latched. A failed packet or transfer may report bytes whose delivery cannot be established; those bytes are charged as unconfirmed, so the counter is an upper bound on actual loss on such failures, not a measurement of on-wire loss. The fatal loss decision uses a separate budget that refills linearly over ten seconds; persistent consecutive failures remain fatal. A loss can grow an adaptive queue immediately within the time, slot and USB packet caps. Explicit non-default queue geometry or a transfer period fixes the host's requested depth. Failed packets and transfers are accounted conservatively; bytes reported by failed packets are not credited as delivered. Timeout counters count only timeouts.

For an unverified clock, feedback is limited to within 3% of the requested cadence to reject adjacent 44.1/48 kHz families. Verified clocks retain the wider FIFO-recentering window, subject to endpoint capacity. An invalid report cannot prevent the next valid standard-timebase report from restoring feedback.