Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
31c22118fe !11 【LTS升级】alsa-lib升级到最新版本
Merge pull request !11 from xinghe/openEuler-20.03-LTS
2020-08-17 20:00:54 +08:00
jinzhimin369
59632d5bf7 update version 2020-08-15 14:55:52 +08:00
openeuler-ci-bot
28c8df95ba !6 add alsa-ucm and alsa-topology
Merge pull request !6 from orange-snn/openEuler-20.03-LTS
2020-05-30 11:21:56 +08:00
orange
00dd2b6019 add alsa-ucm and alsa-topology 2020-05-30 10:29:01 +08:00
openeuler-ci-bot
35c6df84bf !3 update to 1.2.2
Merge pull request !3 from SuperHugePan/master
2020-05-12 20:30:17 +08:00
openeuler-ci-bot
20a6dccdcd !2 update to 1.2.2
Merge pull request !2 from SuperHugePan/master
2020-05-12 15:58:00 +08:00
SuperHugePan
328dd3373d update to 1.2.2
Signed-off-by: SuperHugePan <zhangpan26@huawei.com>
2020-05-12 11:17:30 +08:00
openeuler-ci-bot
3d2f0511d8 !1 remove useless code
Merge pull request !1 from SuperHugePan/test
2020-01-10 22:24:04 +08:00
SuperHugePan
f2b2123a3d gen patches from community
Signed-off-by: SuperHugePan <zhangpan26@huawei.com>
2020-01-10 22:14:17 +08:00
SuperHugePan
4060752591 remove useless information
Signed-off-by: SuperHugePan <zhangpan26@huawei.com>
2020-01-10 21:45:28 +08:00
12 changed files with 67 additions and 175 deletions

View File

@ -1,11 +0,0 @@
--- alsa-lib-1.0.14/aserver/aserver.c 2007-05-31 10:05:13.000000000 +0200
+++ alsa-lib-1.0.14.lennart/aserver/aserver.c 2007-08-15 15:53:32.000000000 +0200
@@ -35,6 +35,8 @@
#include "aserver.h"
+#undef open
+
char *command;
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)

View File

@ -1,44 +0,0 @@
diff --git a/src/conf/alsa.conf b/src/conf/alsa.conf
index 1889f01..60c12ac 100644
--- a/src/conf/alsa.conf
+++ b/src/conf/alsa.conf
@@ -66,8 +66,7 @@ defaults.pcm.nonblock 1
defaults.pcm.compat 0
defaults.pcm.minperiodtime 5000 # in us
defaults.pcm.ipc_key 5678293
-defaults.pcm.ipc_gid audio
-defaults.pcm.ipc_perm 0660
+defaults.pcm.ipc_perm 0600
defaults.pcm.dmix.max_periods 0
defaults.pcm.dmix.rate 48000
defaults.pcm.dmix.format "unchanged"
diff --git a/src/conf/pcm/dmix.conf b/src/conf/pcm/dmix.conf
index e62cb29..a005488 100644
--- a/src/conf/pcm/dmix.conf
+++ b/src/conf/pcm/dmix.conf
@@ -41,10 +41,6 @@ pcm.!dmix {
@func refer
name defaults.pcm.ipc_key
}
- ipc_gid {
- @func refer
- name defaults.pcm.ipc_gid
- }
ipc_perm {
@func refer
name defaults.pcm.ipc_perm
diff --git a/src/conf/pcm/dsnoop.conf b/src/conf/pcm/dsnoop.conf
index 49cfca9..842e1fb 100644
--- a/src/conf/pcm/dsnoop.conf
+++ b/src/conf/pcm/dsnoop.conf
@@ -41,10 +41,6 @@ pcm.!dsnoop {
@func refer
name defaults.pcm.ipc_key
}
- ipc_gid {
- @func refer
- name defaults.pcm.ipc_gid
- }
ipc_perm {
@func refer
name defaults.pcm.ipc_perm

Binary file not shown.

BIN
alsa-lib-1.2.3.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,85 +0,0 @@
From 93e03bdc2a3dcd5d12516f5de78e14d88a32ff2c Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Wed, 4 Apr 2018 09:58:12 +0200
Subject: [PATCH 1/2] alsa.conf: change the location for add-on configs to
/etc/alsa/conf.d
The add-on configuration files should be placed to a volatile place.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
src/conf/alsa.conf | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/conf/alsa.conf b/src/conf/alsa.conf
index f22918fb..bb00ff40 100644
--- a/src/conf/alsa.conf
+++ b/src/conf/alsa.conf
@@ -8,13 +8,7 @@
{
func load
files [
- {
- @func concat
- strings [
- { @func datadir }
- "/alsa.conf.d/"
- ]
- }
+ "/etc/alsa/conf.d"
"/etc/asound.conf"
"~/.asoundrc"
]
--
2.13.6
From 78505dccd23546cc77e5221cb21c01325bc0138d Mon Sep 17 00:00:00 2001
From: Jaroslav Kysela <perex@perex.cz>
Date: Wed, 4 Apr 2018 10:02:49 +0200
Subject: [PATCH 2/2] conf: remove alsa.conf.d from the datadir
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
---
src/conf/Makefile.am | 2 +-
src/conf/alsa.conf.d/Makefile.am | 8 --------
src/conf/alsa.conf.d/README | 2 --
3 files changed, 1 insertion(+), 11 deletions(-)
delete mode 100644 src/conf/alsa.conf.d/Makefile.am
delete mode 100644 src/conf/alsa.conf.d/README
diff --git a/src/conf/Makefile.am b/src/conf/Makefile.am
index ef2ea9c1..2b46f95c 100644
--- a/src/conf/Makefile.am
+++ b/src/conf/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS=cards pcm alsa.conf.d
+SUBDIRS=cards pcm
if BUILD_UCM
SUBDIRS += ucm
diff --git a/src/conf/alsa.conf.d/Makefile.am b/src/conf/alsa.conf.d/Makefile.am
deleted file mode 100644
index c91661e9..00000000
--- a/src/conf/alsa.conf.d/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-alsaconfigdir = @ALSA_CONFIG_DIR@
-alsadir = $(alsaconfigdir)/alsa.conf.d
-cfg_files = README
-
-alsa_DATA = $(cfg_files)
-
-EXTRA_DIST = \
- $(cfg_files)
diff --git a/src/conf/alsa.conf.d/README b/src/conf/alsa.conf.d/README
deleted file mode 100644
index 99978848..00000000
--- a/src/conf/alsa.conf.d/README
+++ /dev/null
@@ -1,2 +0,0 @@
-You can place files named *.conf in this folder and they will be processed
-when initialising alsa-lib.
--
2.13.6

View File

@ -1,19 +1,18 @@
%define version_alsa_ucm 1.2.3
%define version_alsa_tplg 1.2.3
Name: alsa-lib
Version: 1.1.6
Release: 5
Version: 1.2.3
Release: 1
Summary: the user space library that developers compile ALSA applications against
License: LGPLv2+
URL: https://alsa-project.org/
Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2
Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2
Source10: asound.conf
Source11: modprobe-dist-alsa.conf
Source12: modprobe-dist-oss.conf
Patch0: alsa-lib-1.0.24-config.patch
Patch1: alsa-lib-1.0.14-glibc-open.patch
Patch2: alsa-lib-addon-dir.patch
Source40: alsa-ucm-conf.patch
BuildRequires: autoconf, automake, libtool, doxygen
Requires: coreutils
@ -32,6 +31,26 @@ Provides: pkgconfig(alsa)
%description devel
This package contains libraries and header files for the ALSA development.
%package -n alsa-ucm
Summary: ALSA Use Case Manager configuration
BuildArch: noarch
License: BSD
Requires: %{name} >= %{version_alsa_ucm}
%description -n alsa-ucm
The Advanced Linux Sound Architecture (ALSA) Use Case Manager configuration
contains alsa-lib configuration of Audio input/output names and routing
%package -n alsa-topology
Summary: ALSA Topology configuration
BuildArch: noarch
License: BSD
Requires: %{name} >= %{version_alsa_tplg}
%description -n alsa-topology
The Advanced Linux Sound Architecture (ALSA) topology configuration
contains alsa-lib configuration of SoC topology
%prep
%autosetup -n %{name}-%{version} -p1
@ -53,12 +72,19 @@ make install DESTDIR=%{buildroot}
mkdir -p -m 755 %{buildroot}%{_sysconfdir}
install -p -m 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}
# install alsa modprobe configure file ,backup oss modprobe configure file
mkdir -p -m 755 %{buildroot}%{_prefix}/lib/modprobe.d/
install -p -m 0644 %{SOURCE11} %{buildroot}%{_prefix}/lib/modprobe.d/dist-alsa.conf
# Create UCM directories
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm2
# Unpack UCMs
tar xvjf %{SOURCE1} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/ucm" "*/ucm2"
patch -d %{buildroot}/%{_datadir}/alsa -p1 < %{SOURCE40}
mkdir -p -m 755 %{buildroot}/%{_defaultdocdir}/%{name}
install -p -m 0644 %{SOURCE12} %{buildroot}%{_defaultdocdir}/%{name}/
# Create topology directory
mkdir -p %{buildroot}/%{_datadir}/alsa/topology
# Unpack topologies
tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/topology"
%ldconfig_scriptlets
@ -66,22 +92,47 @@ install -p -m 0644 %{SOURCE12} %{buildroot}%{_defaultdocdir}/%{name}/
%license COPYING
%doc doc/asoundrc.txt
%{_sysconfdir}/*.conf
%{_prefix}/lib/modprobe.d/*.conf
%{_defaultdocdir}/%{name}/*.conf
%{_bindir}/*
%{_libdir}/libasound.so.*
%{_libdir}/libatopology.so.*
%{_datadir}/alsa/*
%exclude %{_datadir}/alsa/ucm
%exclude %{_datadir}/alsa/ucm2
%exclude %{_datadir}/alsa/topology
%files devel
%doc doc/doxygen/ TODO
%{_libdir}/libasound.so
%{_libdir}/libatopology.so
%exclude %{_libdir}/libasound.la
%exclude %{_libdir}/libatopology.la
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%files -n alsa-ucm
# BSD
%{_datadir}/alsa/ucm
%{_datadir}/alsa/ucm2
%files -n alsa-topology
# BSD
%{_datadir}/alsa/topology
%changelog
* Sat Aug 15 2020 xinghe <xinghe1@huawei.com> - 1.2.3-1
- update to 1.2.3
* Fri May 29 2020 gaoch_100 <gaochao52@huawei.com> - 1.2.2-2
- DESC:add alsa-ucm alsa-topology
* Fri Apr 24 2020 SuperHugePan <zhangpan26@huawei.com> - 1.2.2-1
- update to 1.2.2
* Fri Jan 10 2020 SuperHugePan <zhangpan26@huawei.com> - 1.1.6-6
- remove useless code
* Thu Oct 24 2019 caomeng <caomeng5@huawei.com> - 1.1.6-5
- Type:NA
- ID:NA

Binary file not shown.

BIN
alsa-ucm-conf-1.2.3.tar.bz2 Normal file

Binary file not shown.

0
alsa-ucm-conf.patch Normal file
View File

View File

@ -1,3 +1 @@
#
# Place your global alsa-lib configuration here...
#
# alsa-lib global configuration

View File

@ -1,9 +0,0 @@
# ALSA Sound Support
#
# We want to ensure that snd-seq is always loaded for those who want to use
# the sequencer interface, but we can't do this automatically through udev
# at the moment...so we have this rule (just for the moment).
#
# Remove the following line if you don't want the sequencer.
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-seq

View File

@ -1,8 +0,0 @@
# OSS Sound Support
# This has been disabled in F11 onwards because it can interfere with the
# PulseAudio sound service (a legacy OSS application can prevent PulseAudio
# applications from playing sound by preventing PulseAudio from (re-)opening
# the sound device). To re-enable support, copy this file to
# the /etc/modprobe.d directory.
#
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-pcm-oss && /sbin/modprobe snd-seq-device && /sbin/modprobe snd-seq-oss