From 1bb88da7fa2b3934f5cb8347c4ff351b3e7e66ee Mon Sep 17 00:00:00 2001 From: june <159748074+june-fish@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:10:09 -0500 Subject: [PATCH] Add chromebook-avs-topology-config (#1009) * add: chromebook-avs-topology-config * rename chromebook-avs-topology-config to avs-tplg-conf --- anda/system/avs-tplg-conf/anda.hcl | 5 +++ anda/system/avs-tplg-conf/avs-tplg-conf.spec | 33 ++++++++++++++++++++ anda/system/avs-tplg-conf/update.rhai | 1 + 3 files changed, 39 insertions(+) create mode 100644 anda/system/avs-tplg-conf/anda.hcl create mode 100644 anda/system/avs-tplg-conf/avs-tplg-conf.spec create mode 100644 anda/system/avs-tplg-conf/update.rhai diff --git a/anda/system/avs-tplg-conf/anda.hcl b/anda/system/avs-tplg-conf/anda.hcl new file mode 100644 index 0000000000..0d06001874 --- /dev/null +++ b/anda/system/avs-tplg-conf/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "avs-tplg-conf.spec" + } +} diff --git a/anda/system/avs-tplg-conf/avs-tplg-conf.spec b/anda/system/avs-tplg-conf/avs-tplg-conf.spec new file mode 100644 index 0000000000..e66b54678c --- /dev/null +++ b/anda/system/avs-tplg-conf/avs-tplg-conf.spec @@ -0,0 +1,33 @@ +%global debug_package %{nil} + +Name: avs-tplg-conf +Version: 2024.02 +Release: 1%?dist + +License: Apache-2.0 +Summary: Configuration files for Intel AudioVoiceSpeech (AVS) driver +URL: https://github.com/thesofproject/avs-topology-xml +Source0: https://github.com/thesofproject/avs-topology-xml/releases/download/v%version/avs-topology_%version.tar.gz + +Conflicts: alsa-sof-firmware + +%description +Configuration files for Intel AudioVoiceSpeech (AVS) driver. Each configuration file represents an audio stream topology i.e.: connections of AudioDSP pipelines and processing modules that provide rich user experience with the Intel AVS stack. The avs-driver is part of the Linux kernel sound subsystem, sound/soc/intel/avs. + +%prep +%autosetup -n avs-topology +rm lib/firmware/intel/avs/max98357a-tplg.bin # according to tree this might blow up speakers, so let's not include it + +%build +xz -z lib/firmware/intel/avs/*.bin + +%install +mkdir -p %buildroot/lib/firmware/intel/avs +cp lib/firmware/intel/avs/*.bin.xz %buildroot/lib/firmware/intel/avs/ + +%files +%license LICENSE +/lib/firmware/intel/avs/* + +%changelog +%autochangelog diff --git a/anda/system/avs-tplg-conf/update.rhai b/anda/system/avs-tplg-conf/update.rhai new file mode 100644 index 0000000000..6d287e535f --- /dev/null +++ b/anda/system/avs-tplg-conf/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("thesofproject/avs-topology-xml"));