[alsa-devel] Patch for alsa-info.sh

Takashi Iwai tiwai at suse.de
Mon Feb 25 16:48:12 CET 2008


At Tue, 26 Feb 2008 01:43:55 +1000,
Travis Place wrote:
> 
> 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 :)

> 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


> 
> -- 
> 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
> --- a/alsa-info.sh	Mon Feb 25 13:07:07 2008 +0100
> +++ b/alsa-info.sh	Tue Feb 26 01:43:18 2008 +1000
> @@ -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
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


More information about the Alsa-devel mailing list