Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thesofproject/sof-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e24b8f6
Choose a base ref
...
head repository: thesofproject/sof-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b2be538
Choose a head ref
  • 2 commits
  • 25 files changed
  • 1 contributor

Commits on Nov 23, 2026

  1. sof-ucm: Add GTK4 end-to-end pipeline visualizer and ALSA UCM2 editor

    Add the `sof-ucm` GTK4 application and integrate it into the top-level build, documentation, and packaging:
    
    - `sof_ucm/discovery.py`, `tplg_loader.py`, `model.py`: Discover ALSA sound cards, PCM streams, kcontrols (`amixer contents`), DAPM widgets/routes, HDA codec nodes (`/proc/asound/cardN/codec#*`), and SOF IPC4 topology (`.tplg`) on either the local machine or a remote DUT over SSH (`SshTransport`).
    - `sof_ucm/graph_builder.py`, `layout.py`: Build end-to-end graphs linking left-column ALSA PCMs -> DSP pipeline containers & codec DAPM/HDA nodes -> right-column hardware endpoints (speakers, headphones, mics, jacks, line in/out, SPDIF, HDMI/DP, BT) with attached kcontrols.
    - `sof_ucm/graph_canvas.py`: Hardware-accelerated `Gtk.Snapshot` / `Gsk` + cached Cairo edge renderer matching `sof-builder` styling, smooth pan/zoom with drag cursors and grouped/claimed pointer gestures, interactive kcontrol sliders/switches/dropdowns, and offscreen PNG export (`--render-png`).
    - `sof_ucm/ucm_parser.py`, `ucm_serializer.py`, `ucm_editor.py`, `left_panes.py`, `right_inspector.py`, `window.py`: Parse, visualize, overlay, validate, edit, generate, and test ALSA UCM2 profiles (`alsaucm`) locally or over SSH.
    - `Makefile`, `README.md`, `packaging/rpm/sof-utils.spec`: Register `sof-ucm` targets, install/packaging rules, and unit tests.
    
    Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
    lrgirdwo committed Nov 23, 2026
    Configuration menu
    Copy the full SHA
    8a814c2 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2026

  1. sof-ucm: Address PR #8 review comments

    - `discovery.py`: Move SSH ControlPath to a `0700` `XDG_RUNTIME_DIR` / `~/.cache/sof-ucm` directory using `%C`, and append `--` before target host.
    - `graph_canvas.py`, `window.py`: Key `_edge_tex_key` on highlighted edge/node `frozenset`s and bump `_edge_version` on trace clear/update to prevent stale cached trace highlights.
    - `tplg_loader.py`: Remove premature `break` in multi-link blocks so all `DAI_LINK`/`BACKEND_LINK`/`CODEC_LINK` elements parse, add `<= block_end` private-data bounds checks in control and PCM parsing, and drop unused walrus assignment.
    - `ucm_editor.py`: Escape Pango status markup via `GLib.markup_escape_text()` and track single-quoted strings in `check_ucm_syntax_balance()`.
    - `ucm_serializer.py`, `model.py`: Escape backslashes and quotes in serialized strings, emit `SectionModifier.ConflictingDevice`, avoid duplicating foreign-`Include`d devices, and preserve existing conditional/include raw UCM2 files during `sync_profile_raw_files()`.
    - `window.py`: Fix `alsaucm` command argument tokenization (`["set", "_verb", verb]`), enforce `commonpath` confinement on local/SSH staging and export, use `mktemp -d` + cleanup for remote staging, batch `pkexec` writes, run `set_kcontrol_value` off the GTK main loop, and wire `UndoRedoManager` (`Ctrl+Z` / `Ctrl+Y`).
    - `Makefile`, `tests/`: Run unit tests in `sof-ucm/Makefile` `check`, guard local-card test with `skipTest`, and add regression tests for all review fixes.
    
    Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
    lrgirdwo committed Nov 24, 2026
    Configuration menu
    Copy the full SHA
    b2be538 View commit details
    Browse the repository at this point in the history
Loading