|
Bernhard M. Wiedemann |
a4ccc9 |
#
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# spec file for package alsa-topology-conf
|
|
Bernhard M. Wiedemann |
a4ccc9 |
#
|
|
|
77c984 |
# Copyright (c) 2021 SUSE LLC
|
|
Bernhard M. Wiedemann |
a4ccc9 |
#
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# All modifications and additions to the file contributed by third parties
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# remain the property of their copyright owners, unless otherwise agreed
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# upon. The license for this file, and modifications and additions to the
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# file, is the same license as for the pristine package itself (unless the
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# license for the pristine package is not an Open Source License, in which
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# case the license is the MIT License). An "Open Source License" is a
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# license that conforms to the Open Source Definition (Version 1.9)
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# published by the Open Source Initiative.
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
Bernhard M. Wiedemann |
a4ccc9 |
#
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
26b908 |
|
|
|
d1e674 |
%if 0%{?suse_version} < 1550
|
|
|
d1e674 |
%define _firmwaredir /lib/firmware
|
|
|
d1e674 |
%endif
|
|
|
d1e674 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
Name: alsa-topology-conf
|
|
|
89ba6d |
Version: 1.2.5.1
|
|
Bernhard M. Wiedemann |
a4ccc9 |
Release: 0
|
|
Bernhard M. Wiedemann |
a4ccc9 |
Summary: ALSA topology configurations
|
|
Bernhard M. Wiedemann |
a4ccc9 |
License: BSD-3-Clause
|
|
|
77c984 |
URL: https://www.alsa-project.org/
|
|
|
77c984 |
Source: https://www.alsa-project.org/files/pub/lib/alsa-topology-conf-%{version}.tar.bz2
|
|
|
f90103 |
Source1: skl_hda_dsp_generic-tplg.bin
|
|
|
f90103 |
%ifarch %ix86 x86_64 %arm aarch64 ppc64le riscv64
|
|
|
d1e674 |
BuildRequires: alsa-utils
|
|
|
f90103 |
%endif
|
|
Bernhard M. Wiedemann |
a4ccc9 |
BuildArch: noarch
|
|
Bernhard M. Wiedemann |
a4ccc9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
d1e674 |
# Skylake and Kayblake-LP
|
|
|
d1e674 |
Supplements: modalias(pci:v00008086d00009D70sv*sd*bc*sc*i*)
|
|
|
d1e674 |
Supplements: modalias(pci:v00008086d00009D71sv*sd*bc*sc*i*)
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%description
|
|
Bernhard M. Wiedemann |
a4ccc9 |
This package contains the configuration files for ALSA topology support.
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%prep
|
|
|
89ba6d |
%setup -q
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%build
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%install
|
|
Bernhard M. Wiedemann |
a4ccc9 |
mkdir -p %{buildroot}%{_datadir}/alsa
|
|
Bernhard M. Wiedemann |
a4ccc9 |
cp -a topology %{buildroot}%{_datadir}/alsa/
|
|
|
d1e674 |
mkdir -p %{buildroot}%{_firmwaredir}
|
|
|
f90103 |
install -c -m 0644 %{S:1} %{buildroot}%{_firmwaredir}/skl_hda_dsp_generic-tplg.bin
|
|
|
f90103 |
|
|
|
f90103 |
%ifarch %ix86 x86_64 %arm aarch64 ppc64le riscv64
|
|
|
f90103 |
%check
|
|
|
f90103 |
alsatplg -c topology/hda-dsp/skl_hda_dsp_generic-tplg.conf -o /tmp/skl_hda_dsp_generic-tplg.bin.$$
|
|
|
f90103 |
cmp -b %{S:1} /tmp/skl_hda_dsp_generic-tplg.bin.$$
|
|
|
f90103 |
rm -f /tmp/skl_hda_dsp_generic-tplg.bin.$$
|
|
|
f90103 |
%endif
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%files
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%defattr(-, root, root)
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%doc README.md
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%license LICENSE
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%{_datadir}/alsa
|
|
|
d1e674 |
%{_firmwaredir}/*
|
|
Bernhard M. Wiedemann |
a4ccc9 |
|
|
Bernhard M. Wiedemann |
a4ccc9 |
%changelog
|