[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#606984: closed by Otavio Salvador <otavio@debian.org> (Bug#606984: fixed in hw-detect 1.84+squeeze1)



A Sábado 26 Março 2011 12:53:15 Risto Suominen você escreveu:
> I have now tested on my PM G3 B&W with today's daily build.
> 
> The blacklisting works partly: snd-aoa is added to
> /etc/modprobe.d/blacklist.local.conf,
> 
> snd-aoa-codec-tas
> snd-aoa-fabric-layout
> snd-aoa-i2sbus
> snd-aoa-soundbus
> 
> are not. The result is that snd-aoa is still drawn in, by the others,
> and prevents snd-powermac from loading.
> 
> snd-powermac is added to /etc/modules.
> 
> Needs this bug to be re-opened to get it fixed?
> 
> Risto

Here it goes another patch to blacklist the modules you pointed.
If it's OK i can commit it.

-- 
Melhores cumprimentos/Best regards,

Miguel Figueiredo
http://www.DebianPT.org
diff --git a/debian/changelog b/debian/changelog
index 0221f4b..7f317ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 hw-detect (1.86) UNRELEASED; urgency=low
 
   [ Miguel Figueiredo ]
+  * discover-mac-io.sh: blacklist snd-aoa-* modules to allow snd-powermac 
+    to work. Closes #606984.
   * Change priority of driver-injection-disk/load template. Closes: #583650.
  
   [ Otavio Salvador ]
diff --git a/discover-mac-io.sh b/discover-mac-io.sh
index 651b676..df84721 100755
--- a/discover-mac-io.sh
+++ b/discover-mac-io.sh
@@ -53,6 +53,11 @@ for dir in $(find "/proc/device-tree/" -type d); do
 			if [ -f "$child/name" ]; then
 				childname="$(cat "$child/name" 2>/dev/null || true)"
 				if [ "$childname" = sound ]; then
+					# blacklist snd-aoa modules so snd-powermac is loaded
+					register-module -b snd-aoa-codec-tas
+					register-module -b snd-aoa-fabric-layout
+					register-module -b snd-aoa-i2sbus
+					register-module -b snd-aoa-soundbus
 					register-module -b snd-aoa
 					register-module snd-powermac
 				fi

Reply to: