Repository navigation
Conversation
Add host utilities for flashing, hardware loopback verification, and USB/ALSA diagnostics on PJRC Teensy 4.1 (NXP i.MX RT1062) SOF audio bridges: - teensy_flash.py: Automated HalfKay reboot request (0xFB) and firmware flashing via teensy_loader_cli with topology-path board resolution. - test_teensy_loopback.py: Automated UAC2 -> S/PDIF / SAI1 I2S -> UAC2 hardware loopback audio test computing FFT peak frequency, SNR (dB), and XRUN/dropped-frame diagnostics. - teensy_diag.py: Non-intrusive USB topology, ALSA card discovery, and SOF UAC2 enumeration diagnostics. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the PJRC Teensy 4.1 (NXP i.MX RT1062) host utilities out of the main
sofrepository (per review feedback on thesofproject/sof#11197) intosof-utils/sof-teensy/:teensy_flash.py(sof-teensy-flash): Sends the vendor-specific USB control transfer (0xFB) to reboot running SOF UAC2 firmware into the HalfKay bootloader without physical button presses, resolves multi-board setups by USB hub topology path or serial, and flashes.heximages viateensy_loader_cli.test_teensy_loopback.py(sof-teensy-loopback): Automated end-to-end hardware audio loopback test (aplay-> Board A UAC2 -> S/PDIF or SAI1 I2S -> Board B -> UAC2 ->arecord) computing FFT fundamental frequency, per-channel SNR (dB), and XRUN/dropped-frame diagnostics.teensy_diag.py(sof-teensy-diag): Non-intrusive USB topology, ALSA card discovery, and SOF UAC2 enumeration diagnostics.Makefile(install,uninstall,check) andREADME.md.Verification
make checkpasses cleanly.teensy_flash.pyandtest_teensy_loopback.py --interface spdifon physical Board A + Board B hardware (140.81 dBSNR on Left & Right channels,0dropped frames).