From 7fff7ef91fc80dbd7f30bbecf57f95a43b62fadb9be2f55dc14064b7da0ac651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 4 Apr 2018 10:00:29 +0000 Subject: [PATCH] Accepting request 593419 from home:tiwai:branches:multimedia:libs - Updated to alsa-utils 1.1.6: * Change FSF address (Franklin Street) * aplay: Adjust sample rate limits to support newer hardware * alsactl: Only start restore service when asoundrc file exists * alsaloop: fix a typo in the comparison * speaker-test: Refactor the tone-generator codes * aplay: Fix wav file not being split on 32 bit platforms * bat: alsa.c - move the thread cleanup pop before goto exit3 - Remove obsoleted patches: 0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch 0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch - Use %license file tag OBS-URL: https://build.opensuse.org/request/show/593419 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=145 --- ...ple-rate-limits-to-support-newer-har.patch | 35 --------------- ...rt-restore-service-when-asoundrc-fil.patch | 43 ------------------- alsa-utils-1.1.5.tar.bz2 | 3 -- alsa-utils-1.1.6.tar.bz2 | 3 ++ alsa-utils.changes | 16 +++++++ alsa-utils.spec | 16 +++---- 6 files changed, 26 insertions(+), 90 deletions(-) delete mode 100644 0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch delete mode 100644 0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch delete mode 100644 alsa-utils-1.1.5.tar.bz2 create mode 100644 alsa-utils-1.1.6.tar.bz2 diff --git a/0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch b/0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch deleted file mode 100644 index 3fcb7ef..0000000 --- a/0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch +++ /dev/null @@ -1,35 +0,0 @@ -From d0802f32cafa8ba8ff4d48e3eb1f690b7adb0d3d Mon Sep 17 00:00:00 2001 -From: Jussi Laako -Date: Thu, 7 Dec 2017 13:57:14 +0200 -Subject: [PATCH] aplay: Adjust sample rate limits to support newer hardware - -There are number of devices that support up to 384 kHz sampling rate and -some devices up to 768 kHz sampling rate. This patch increases sanity -check limit to 768k in order to support testing of such hardware. - -Signed-off-by: Jussi Laako -Signed-off-by: Takashi Iwai ---- - aplay/aplay.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/aplay/aplay.c b/aplay/aplay.c -index dbae17caf3a4..6b740c281f8e 100644 ---- a/aplay/aplay.c -+++ b/aplay/aplay.c -@@ -635,10 +635,10 @@ int main(int argc, char *argv[]) - error(_("invalid rate argument '%s'"), optarg); - return 1; - } -- if (tmp < 300) -+ if (tmp < 1000) - tmp *= 1000; - rhwparams.rate = tmp; -- if (tmp < 2000 || tmp > 192000) { -+ if (tmp < 2000 || tmp > 768000) { - error(_("bad speed value %i"), tmp); - return 1; - } --- -2.15.1 - diff --git a/0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch b/0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch deleted file mode 100644 index e69f17f..0000000 --- a/0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch +++ /dev/null @@ -1,43 +0,0 @@ -From f1eba0b5deb6c3988d6dd7317ccc931c09792843 Mon Sep 17 00:00:00 2001 -From: Ikey Doherty -Date: Tue, 12 Dec 2017 13:32:34 +0000 -Subject: [PATCH] alsactl: Only start restore service when asoundrc file exists - -This solves the chicken and egg problem on fresh installations whereby -the alsa state file does not yet exist, and alsa-restore unit attempted -to launch without first having a state file. - -Signed-off-by: Ikey Doherty -Signed-off-by: Takashi Iwai ---- - alsactl/Makefile.am | 1 + - alsactl/alsa-restore.service.in | 1 + - 2 files changed, 2 insertions(+) - -diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am -index 90fab9d13ccc..aaaf74ee1e18 100644 ---- a/alsactl/Makefile.am -+++ b/alsactl/Makefile.am -@@ -41,6 +41,7 @@ edit = \ - $(SED) -r -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@mydatadir\@,$(mydatadir),g' \ - -e 's,@daemonswitch\@,$(ALSACTL_DAEMONSWITCH),g' \ -+ -e 's,@asoundrcfile\@,$(ASOUND_STATE_DIR)/asound.state,g' \ - < $< > $@ || rm $@ - - alsa-state.service: alsa-state.service.in -diff --git a/alsactl/alsa-restore.service.in b/alsactl/alsa-restore.service.in -index 80fd5fd48203..a84c2e842444 100644 ---- a/alsactl/alsa-restore.service.in -+++ b/alsactl/alsa-restore.service.in -@@ -7,6 +7,7 @@ - Description=Save/Restore Sound Card State - ConditionPathExists=!@daemonswitch@ - ConditionPathExistsGlob=/dev/snd/control* -+ConditionPathExists=@asoundrcfile@ - - [Service] - Type=oneshot --- -2.15.1 - diff --git a/alsa-utils-1.1.5.tar.bz2 b/alsa-utils-1.1.5.tar.bz2 deleted file mode 100644 index 80c8e5d..0000000 --- a/alsa-utils-1.1.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:320bd285e91db6e7fd7db3c9ec6f55b02f35449ff273c7844780ac6a5a3de2e8 -size 1202691 diff --git a/alsa-utils-1.1.6.tar.bz2 b/alsa-utils-1.1.6.tar.bz2 new file mode 100644 index 0000000..3d9be9c --- /dev/null +++ b/alsa-utils-1.1.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:155caecc40b2220f686f34ba3655a53e3bdbc0586adb1056733949feaaf7d36e +size 1203722 diff --git a/alsa-utils.changes b/alsa-utils.changes index c5ce7cc..a7b8d20 100644 --- a/alsa-utils.changes +++ b/alsa-utils.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Apr 4 08:39:33 CEST 2018 - tiwai@suse.de + +- Updated to alsa-utils 1.1.6: + * Change FSF address (Franklin Street) + * aplay: Adjust sample rate limits to support newer hardware + * alsactl: Only start restore service when asoundrc file exists + * alsaloop: fix a typo in the comparison + * speaker-test: Refactor the tone-generator codes + * aplay: Fix wav file not being split on 32 bit platforms + * bat: alsa.c - move the thread cleanup pop before goto exit3 +- Remove obsoleted patches: + 0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch + 0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch +- Use %license file tag + ------------------------------------------------------------------- Mon Dec 18 17:33:17 CET 2017 - tiwai@suse.de diff --git a/alsa-utils.spec b/alsa-utils.spec index fde9777..670d795 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -1,7 +1,7 @@ # # spec file for package alsa-utils # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%define package_version 1.1.5 +%define package_version 1.1.6 # %if 0%{?suse_version} > 1130 %define use_systemd 1 @@ -35,16 +35,14 @@ BuildRequires: systemd %define _udevdir /lib/udev %endif Name: alsa-utils -Version: 1.1.5 +Version: 1.1.6 Release: 0 Summary: Advanced Linux Sound Architecture Utilities -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Multimedia/Sound/Players Url: http://www.alsa-project.org/ Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2 Source1: 01beep.conf -Patch1: 0001-aplay-Adjust-sample-rate-limits-to-support-newer-har.patch -Patch2: 0002-alsactl-Only-start-restore-service-when-asoundrc-fil.patch BuildRequires: alsa-devel BuildRequires: automake BuildRequires: fftw3-devel @@ -81,8 +79,6 @@ and test audio before and after PM state changes. %setup -q -n %{name}-%{package_version} # fix stupid automake's automatic action sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am -%patch1 -p1 -%patch2 -p1 %build export AUTOMAKE_JOBS="%{?_smp_mflags}" @@ -115,7 +111,8 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/alsa %files -f %{name}.lang %defattr(-, root, root) -%doc COPYING ChangeLog INSTALL README TODO +%license COPYING +%doc ChangeLog INSTALL README TODO %doc seq/aconnect/README* %doc seq/aseqnet/README* %{_mandir}/man*/* @@ -137,6 +134,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/alsa %files -n alsabat %defattr(-, root, root) +%license COPYING %{_bindir}/alsabat %{_mandir}/man*/alsabat.*