DAC Validator#
The usbdac Validator is a standalone app for Android and Apple Silicon macOS. It runs the direct USB playback matrix on one attached DAC and saves a local ZIP with the device, the test plan, every leg, the counters and the debug log. It is the app behind the hardware validation results.
Use it when you want to know whether a DAC works with usbdac before integrating the library, when you are reporting a playback problem, or when you are adding a device to the compatibility record. It is not a player and it does not measure analog output.
Download and versions#
Each release from 0.1.11 includes both validators, built from the same commit as the library:
- Android APK: Android 8.0+ with USB host. Signed with the project's pinned validator key; releases after 0.1.20 install over each other. An APK from 0.1.20 or earlier must be uninstalled once.
- macOS app: Apple Silicon, macOS 12+. From 0.1.22 it ships as a DMG signed with a Developer ID and notarized by Apple. Earlier releases shipped an ad hoc signed ZIP.
Get them from the latest release.
The APK and DMG (or earlier ZIP) are also listed in SHA256SUMS.txt. The
validator does not disable system security or install a persistent helper.
The Android app in the workspace reports 0.1.22–0.1.23 in the 28 November runs. The library and guide in this checkout are at 0.1.23; use the validator from the release that matches the library you are testing when that matters.
Before you start#
Remove headphones and mute or disconnect the downstream amplifier. The validator sends real audio, including DoP marker patterns that a DAC without a DoP decoder can turn into loud noise. Keep the amplifier muted or disconnected for the whole run.
Connect one DAC only. A second audio device makes the selection ambiguous. If the DAC was already connected before capture, the Android app offers Use an already connected DAC; the macOS app expects you to attach it after the baseline.
Run a capture#
- Start the app and choose Start capture. On macOS, approve the administrator request for the one-shot USB worker. The GUI itself stays unprivileged.
- Attach the DAC when the app asks. On Android, approve the system USB permission dialog if it appears.
- Let the exact-format matrix finish. The app then runs the admission probes and, where an exact request is refused, the converted-fallback probes.
- Choose Save diagnostics (macOS) or Save (Android) and keep the ZIP. The app can save a partial report after a cancellation, a device loss or a handled error.
On Android, the source-backed compatibility option is on by default. It lets the
validator exercise device-specific modes that the library's default
VerifiedOnly policy would not apply. Clear it to reproduce the strict policy.
The chosen policy is recorded in the ZIP.
The macOS app uses an ordinary libusb interface claim first. If macOS already owns the DAC, the worker can capture the whole device from the system driver after an ownership or access failure. That is why the administrator approval is needed. The archive records the claim, capture and hand-back results. If the system audio route does not return after a captured run, unplug and reconnect the DAC.
What the matrix tests#
| Mode | What is requested | What the report proves |
|---|---|---|
| PCM | Every advertised signed PCM rate, significant depth and channel combination, with a low-level channel-identifiable tone | Exact negotiation, chosen alternate, clock, frames, payload digest and transfer accounting |
| DoP | The PCM carrier rates the driver can negotiate, with modulated DSD in the carried bytes | The carrier and payload only; decoder lock needs an independent observation |
| Native DSD | Advertised native rates and layouts, with a low-level delta-sigma tone | The packed transport and payload; no analog result |
| Admission probes | Standard exact requests outside the advertised set | A typed rejection or, if unexpectedly admitted, a recorded discrepancy and a direct test |
| Converted fallback | Production-driver conversion to an admitted target after a typed refusal | The target transport separately from the source fidelity; a converted leg is not source bit-perfect |
The validator keeps admission results, exact playback verdicts and converted fallbacks separate on purpose. A rejected exact request is not a failed DAC. A converted leg that plays is not a bit-perfect source result. The detailed acceptance rules are in the validator design.
What is in the ZIP#
The archive is written locally. A typical report contains:
| Part | Contents |
|---|---|
| Run header | UTC start, monotonic elapsed time, app and driver version, host OS and architecture, quirk policy, start-up volume setting |
| Device | VID:PID, product and manufacturer, firmware revision where available, link speed, active configuration, descriptors, permission and claim outcomes |
| Plan | Ordered exact, admission and fallback cases, including cases not reached |
| Legs | Request, negotiated format, interface and alternate, subslot, valid bits, endpoint, pacing, service interval, frames, counters, payload SHA-256, close outcome |
| Diagnostics | Driver log, feedback trace, host timing samples, conversion evidence and any bounded truncation |
| Status | passed_usb, expected rejection, unsupported, no fallback, inconclusive, cancelled or device loss |
A pass is a USB transport result. It does not establish analog output, acoustic quality, DoP decoder lock or long-duration behaviour. The hardware page lists the limits; the evidence page keeps the run narratives and the ledger digests.
Report privacy#
The ZIP contains device identifiers and debug logs. Do not commit a raw ZIP or
paste it into a public issue without checking it. The repository keeps only
derived summaries under docs/evidence/history/, with the raw ZIP left out.
When you report a problem, the useful parts are the device row, the failed leg,
the error code and the relevant log lines.
If the DAC is not detected#
The Android app lists a device only when Android's UsbManager exposes it and
its descriptors contain an AudioStreaming interface with an isochronous OUT
endpoint. It does not filter by vendor, product or device class. If a DAC is
missing:
- Check the USB host state. Connect to Android with wireless ADB, then run
adb shell dumpsys usbwhile the DAC is connected. Checkdata_roleand look for the vendor and product IDs in the current host device list. Connection history can include devices that have already detached. - Check discovery. If the current host list shows the DAC but the validator
does not, save the validator ZIP and the USB dump. An
unrecognized_usb_attachevent indicates an attach reached the validator without producing a playback candidate. Compare the reported interfaces and endpoints. - Compare the connection. With a separately powered DAC, try powering it on while USB remains connected. Change one connection variable at a time, such as the cable, hub, or host, and capture the new USB state.
For the SMSL A50 Pro, direct USB-C recovery after power-on was observed on Android and macOS. Both validator playback runs used a USB 2.0 hub.
Build from source#
From the repository root:
# Android validator APK
(cd android && ./gradlew :validator:assembleDebug)
# Apple Silicon macOS validator
macos/validator/build.sh
The macOS build needs Xcode command-line tools, Rust, a C compiler and the
aarch64-apple-darwin target. The Android build needs the NDK and the usual
Android SDK. The validators link the same driver and run the same suite, so a
report from either platform uses the same leg vocabulary.
Related pages#
- Hardware validation: the structured results, the A50 Pro case, and what a pass does not mean.
- Evidence and status: the narrative record and the run limits.
- Capability and result ledger: the generated, digest-checked rows.
- Collect a USB playback support report: the in-app support flow for a player, which is separate from the validator.