[alsa-utils] Add patch to unmute MacBookAir4,1 speakers

Bastien Nocera hadess at fedoraproject.org
Mon Oct 31 19:38:48 UTC 2011


commit cc38084eb4d667586dbf4a5f76896478b8f26a78
Author: Bastien Nocera <hadess at hadess.net>
Date:   Mon Oct 31 17:29:13 2011 +0000

    Add patch to unmute MacBookAir4,1 speakers

 0001-Unmute-MacBookAir4-1-speakers.patch |   33 ++++++++++++++++++++++++++++++
 alsa-utils.spec                          |    9 +++++++-
 2 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/0001-Unmute-MacBookAir4-1-speakers.patch b/0001-Unmute-MacBookAir4-1-speakers.patch
new file mode 100644
index 0000000..393639a
--- /dev/null
+++ b/0001-Unmute-MacBookAir4-1-speakers.patch
@@ -0,0 +1,33 @@
+From a0c92daabf4fdc0a636f445ec2312c1b4fe04421 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera <hadess at hadess.net>
+Date: Wed, 14 Sep 2011 12:13:04 +0100
+Subject: [PATCH] Unmute MacBookAir4,1 speakers
+
+---
+ alsactl/init/default |   10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/alsactl/init/default b/alsactl/init/default
+index 7f8ec4c..198a306 100644
+--- a/alsactl/init/default
++++ b/alsactl/init/default
+@@ -174,6 +174,16 @@ CTL{name}="AC97 Playback Volume",CTL{do_search}=="1", \
+ CTL{name}="AC97 Playback Switch",CTL{do_search}=="1", \
+   CTL{values}="on"
+ 
++CTL{reset}="mixer"
++# With, and without typo, see
++# http://thread.gmane.org/gmane.linux.alsa.devel/89179
++CTL{name}="Surround Speaker Playback Volum",CTL{do_search}=="1", \
++  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="100%"
++CTL{name}="Surround Speaker Playback Volume",CTL{do_search}=="1", \
++  CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="100%"
++CTL{name}="Surround Speaker Playback Switch",CTL{do_search}=="1", \
++  CTL{values}="on"
++
+ #
+ # Powermacs
+ #
+-- 
+1.7.6.2
+
diff --git a/alsa-utils.spec b/alsa-utils.spec
index 5d56030..ea1345d 100644
--- a/alsa-utils.spec
+++ b/alsa-utils.spec
@@ -4,7 +4,7 @@
 Summary: Advanced Linux Sound Architecture (ALSA) utilities
 Name:    alsa-utils
 Version: %{baseversion}%{?fixversion}
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+
 Group:   Applications/Multimedia
 URL:     http://www.alsa-project.org/
@@ -25,12 +25,16 @@ BuildRequires: xmlto
 Conflicts: udev < 062
 Requires: alsa-lib >= %{baseversion}, systemd-units, dialog
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=738227
+Patch0: 0001-Unmute-MacBookAir4-1-speakers.patch
+
 %description
 This package contains command line utilities for the Advanced Linux Sound
 Architecture (ALSA).
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch0 -p1 -b .mba41
 
 %build
 %configure CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" --sbindir=/sbin --disable-alsaconf
@@ -108,6 +112,9 @@ if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
 fi
 
 %changelog
+* Mon Oct 31 2011 Bastien Nocera <bnocera at redhat.com> 1.0.24-4
+- Add patch to unmute MacBookAir4,1 speakers
+
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.24.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list