%global debug_package %{nil} Name: uke-fs19xx-vi-package-check Version: 0.1 Release: 1%{?dist} Summary: Verify the POCO Pad X1 diagnostic topology in a kernel RPM staging tree License: GPL-2.0-only AND BSD-3-Clause Source0: %{name}-%{version}.tar.xz ExclusiveArch: aarch64 BuildRequires: alsa-topology-utils coreutils findutils nodejs %description Verify disabled and diagnostic kernel-scoped firmware staging against the accepted A13 ALSA topology. The package contains a report. %prep %setup -q sha256sum -c --strict input.sha256 %build name=POCO-Pad-X1-tplg.bin vi=POCO-Pad-X1-VI-tplg.bin board=stage/usr/lib/firmware/7.3.5-qcom-test/qcom/sm7675 lookup=stage/usr/lib/firmware/7.3.5-qcom-test/qcom/uke735qu helper=packaging/native/install-fs19xx-vi-topology735.sh { cat input.sha256 alsatplg -c accepted.conf -o accepted.tplg printf '%s %s\n' 854bd77c8056654dcc1897fd9f9ac90f3962d7bca5bdcbefc38fbfb4a27f6320 accepted.tplg | sha256sum -c --strict install -Dm644 accepted.tplg "$board/$name" mkdir -p "$lookup" ln -s "../sm7675/$name" "$lookup/$name" printf '%s\n' '# CONFIG_SND_SOC_FS19XX_UKE_VI_DIAGNOSTIC is not set' > config bash "$helper" config accepted.conf accepted.tplg "$board" "$lookup" test ! -e "$board/$vi" test "$(readlink "$lookup/$name")" = "../sm7675/$name" printf '%s\n' 'Default kernel stages the original speaker topology.' printf '%s\n' 'CONFIG_SND_SOC_FS19XX_UKE_VI_DIAGNOSTIC=y' 'CONFIG_SND_SOC_FS19XX_UKE_QUALIFIED_GAIN=y' > config if bash "$helper" config accepted.conf accepted.tplg "$board" "$lookup"; then exit 1; fi test ! -e "$board/$vi" printf '%s\n' 'The high-gain configuration cannot stage diagnostic topology.' printf '%s\n' 'CONFIG_SND_SOC_FS19XX_UKE_VI_DIAGNOSTIC=y' '# CONFIG_SND_SOC_FS19XX_UKE_QUALIFIED_GAIN is not set' > config bash "$helper" config accepted.conf accepted.tplg "$board" "$lookup" printf '%s %s\n' f3c3ecf761afaeaca9b51d455c650b729dada37341ddbdd1e6dfe2764c892769 "$lookup/$name" | sha256sum -c --strict test "$(readlink "$lookup/$name")" = "../sm7675/$vi" cmp accepted.tplg "$board/$name" printf '%s\n' 'The diagnostic kernel stages only a release-scoped lookup for the verified capture topology.' } > result.txt cat result.txt %install install -Dm644 result.txt %{buildroot}%{_datadir}/uke-source-checks/vi-topology-staging.txt %files %{_datadir}/uke-source-checks/vi-topology-staging.txt %changelog * Thu Nov 19 2026 Uke Linux Maintainers - 0.1-1 - Verify gain gates and kernel-scoped topology staging.