Skip to contentSkip to conversation

Patch for alsa-info.sh

PATCH Travis Place 2 participants 2 messages Feb 25, 2008

lore
Share & tools
lore
#0 lore raw

Sorry for the frequent patch interval.. I think this will do for a while.. Adds AC97 codec output if an AC97 card is in the system.

Signature · 2 lines
Happiness is like peeing your pants. Everyone can see it, but only you can 
feel its warmth 
alsa-info.sh +17 -1
diff -r 93cc5f0a20f1 alsa-info.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-SCRIPT_VERSION=0.4.38
+SCRIPT_VERSION=0.4.39
 CHANGELOG="http://hg.alsa-project.org/alsa/log/tip/alsa-info.sh"
 
 #################################################################################
@@ -270,6 +270,9 @@ lspci |grep -i "multi\|audio">/tmp/alsai
 #Check for HDA-Intel cards codec#*
 cat /proc/asound/card*/codec\#* > /tmp/alsainfo/alsa-hda-intel.tmp 2> /dev/null
 
+#Check for AC97 cards codec
+cat /proc/asound/card*/codec97\#0/ac97\#0-0 > /tmp/alsainfo/alsa-ac97.tmp 2> /dev/null
+
 #Fetch the info, and put it in $FILE in a nice readable format.
 echo "name=$USER&type=33&description=/tmp/alsa-info.txt&expiry=&s=Submit+Post&content=" > $FILE
 echo "!!################################" >> $FILE
@@ -362,6 +365,19 @@ then
 	echo "" >> $FILE
 	echo "" >> $FILE
 fi
+
+if [ -s "/tmp/alsainfo/alsa-ac97.tmp" ]
+then
+        echo "!!AC97 Codec information" >> $FILE
+        echo "!!---------------------------" >> $FILE
+        echo "--startcollapse--" >> $FILE
+        echo "" >> $FILE
+        cat /tmp/alsainfo/alsa-ac97.tmp >> $FILE
+        echo "--endcollapse--" >> $FILE
+        echo "" >> $FILE
+        echo "" >> $FILE
+fi
+
 
 #If no command line options are specified, then run as though --with-all was specified
 if [[ -z "$1" ]]

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

At Tue, 26 Feb 2008 01:43:55 +1000,

Quoted 2 lines · Travis Place

Sorry for the frequent patch interval.. I think this will do for a while..

Don't worry, that's OK, even better than too little :)

Quoted 1 line

Adds AC97 codec output if an AC97 card is in the system.

It'd be more helpful to have ac97#0-0+regs contents, too. Could you add it and repost?

Thanks,

Takashi

Quoted 51 lines
Signature · 5 lines
-- 
Happiness is like peeing your pants. Everyone can see it, but only you can 
feel its warmth 
[2 alsa-info-ac97.diff <text/x-diff; us-ascii (7bit)>]
diff -r 93cc5f0a20f1 alsa-info.sh
alsa-info.sh +17 -1
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-SCRIPT_VERSION=0.4.38
+SCRIPT_VERSION=0.4.39
 CHANGELOG="http://hg.alsa-project.org/alsa/log/tip/alsa-info.sh"
 
 #################################################################################
@@ -270,6 +270,9 @@ lspci |grep -i "multi\|audio">/tmp/alsai
 #Check for HDA-Intel cards codec#*
 cat /proc/asound/card*/codec\#* > /tmp/alsainfo/alsa-hda-intel.tmp 2> /dev/null
 
+#Check for AC97 cards codec
+cat /proc/asound/card*/codec97\#0/ac97\#0-0 > /tmp/alsainfo/alsa-ac97.tmp 2> /dev/null
+
 #Fetch the info, and put it in $FILE in a nice readable format.
 echo "name=$USER&type=33&description=/tmp/alsa-info.txt&expiry=&s=Submit+Post&content=" > $FILE
 echo "!!################################" >> $FILE
@@ -362,6 +365,19 @@ then
 	echo "" >> $FILE
 	echo "" >> $FILE
 fi
+
+if [ -s "/tmp/alsainfo/alsa-ac97.tmp" ]
+then
+        echo "!!AC97 Codec information" >> $FILE
+        echo "!!---------------------------" >> $FILE
+        echo "--startcollapse--" >> $FILE
+        echo "" >> $FILE
+        cat /tmp/alsainfo/alsa-ac97.tmp >> $FILE
+        echo "--endcollapse--" >> $FILE
+        echo "" >> $FILE
+        echo "" >> $FILE
+fi
+
 
 #If no command line options are specified, then run as though --with-all was specified
 if [[ -z "$1" ]]

[3 <text/plain; us-ascii (7bit)>]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel