I created the patch below to make alsaconf work with the DBRI and
CS4231 chips. But I'm not sure if this will work for the AMD7930
chip. The patch tries to find a "SUNW,AMD7930*" directory in this
case, but I don't know if that exists. Can somebody with an AMD7930
sound chip confirm/deny this?

Other feedback (like better approaches) is welcome too. I'll submit
it to Takashi once the AMD7930 issue is resolved.

-- 
Martin

--- alsaconf.orig       2005-10-25 16:00:11.000000000 +0100
+++ alsaconf    2005-10-25 17:17:51.000000000 +0100
@@ -696,6 +696,27 @@
            echo "PowerMac $i" >> $FOUND
        done
     fi
+
+    #
+    # Sparc
+    #
+    if grep -q Sparc $PROCFS/cpuinfo; then
+       test -r $PROCFS/openprom || /bin/mount -t openpromfs none 
$PROCFS/openprom >/dev/null 2>&1
+       /sbin/modprobe -a -l | grep 'snd-sun-' | \
+       while read i; do
+           i=${i##*/}
+           i=${i%%.o}
+           i=${i%%.ko}
+           sdev=`echo ${i#snd-sun-} | tr "[a-z]" "[A-Z]"`
+
+           if test -r $PROCFS/openprom; then
+               find $PROCFS/openprom -follow -type d -name "SUNW,${sdev}*" \
+                   -exec echo "$sdev $i" \; 2>/dev/null >> $FOUND
+           else
+               echo "$sdev $i" >> $FOUND
+           fi
+       done
+    fi
 }
 
 #


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to