From f901033cd06e51298ce4b17260f97cd2bec783fa Mon Sep 17 00:00:00 2001
From: tiwai <>
Date: Oct 11 2021 14:17:50 +0000
Subject: Update alsa-topology-conf to version 1.2.5 / rev 7 via SR 924518
https://build.opensuse.org/request/show/924518
by user tiwai + dimstar_suse
---
diff --git a/.files b/.files
index 07ceee0..b2e1c5c 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 99fe7ac..ff4e3c1 100644
--- a/.rev
+++ b/.rev
@@ -49,4 +49,12 @@ Now required for some packages after alsa-1.2.1 release
922012
+
+ 92d07f8acd1c13d83b4f28666e608efd
+ 1.2.5
+
+ dimstar_suse
+
+ 924518
+
diff --git a/alsa-topology-conf.changes b/alsa-topology-conf.changes
index 382d126..dcb7b3a 100644
--- a/alsa-topology-conf.changes
+++ b/alsa-topology-conf.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Fri Oct 8 16:20:06 CEST 2021 - tiwai@suse.de
+
+- Install pre-built firmware for avoiding build error on BE hosts
+
+-------------------------------------------------------------------
Tue Sep 7 17:05:13 CEST 2021 - tiwai@suse.de
- Install the topology binary for skl_hda_dsp_generic-tplg, too
diff --git a/alsa-topology-conf.spec b/alsa-topology-conf.spec
index 5e3f148..d297943 100644
--- a/alsa-topology-conf.spec
+++ b/alsa-topology-conf.spec
@@ -28,7 +28,10 @@ Summary: ALSA topology configurations
License: BSD-3-Clause
URL: https://www.alsa-project.org/
Source: https://www.alsa-project.org/files/pub/lib/alsa-topology-conf-%{version}.tar.bz2
+Source1: skl_hda_dsp_generic-tplg.bin
+%ifarch %ix86 x86_64 %arm aarch64 ppc64le riscv64
BuildRequires: alsa-utils
+%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Skylake and Kayblake-LP
@@ -47,8 +50,14 @@ This package contains the configuration files for ALSA topology support.
mkdir -p %{buildroot}%{_datadir}/alsa
cp -a topology %{buildroot}%{_datadir}/alsa/
mkdir -p %{buildroot}%{_firmwaredir}
-alsatplg -c topology/hda-dsp/skl_hda_dsp_generic-tplg.conf \
- -o %{buildroot}%{_firmwaredir}/skl_hda_dsp_generic-tplg.bin
+install -c -m 0644 %{S:1} %{buildroot}%{_firmwaredir}/skl_hda_dsp_generic-tplg.bin
+
+%ifarch %ix86 x86_64 %arm aarch64 ppc64le riscv64
+%check
+alsatplg -c topology/hda-dsp/skl_hda_dsp_generic-tplg.conf -o /tmp/skl_hda_dsp_generic-tplg.bin.$$
+cmp -b %{S:1} /tmp/skl_hda_dsp_generic-tplg.bin.$$
+rm -f /tmp/skl_hda_dsp_generic-tplg.bin.$$
+%endif
%files
%defattr(-, root, root)
diff --git a/skl_hda_dsp_generic-tplg.bin b/skl_hda_dsp_generic-tplg.bin
new file mode 100644
index 0000000..361ec00
Binary files /dev/null and b/skl_hda_dsp_generic-tplg.bin differ