[alsa-devel] [PATCH 1/4] utils/alsa-info.sh: adding system firmware version to the defaults collected under "DMI Information"
Takashi Iwai
tiwai at suse.de
Mon Jun 11 12:38:02 CEST 2012
At Mon, 11 Jun 2012 10:45:20 +0200,
David Henningsson wrote:
>
> From: Chris Van Hoof <vanhoof at canonical.com>
>
> Signed-off-by: Chris Van Hoof <vanhoof at canonical.com>
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
Thanks, applied all 4 patches now.
Takashi
> ---
> utils/alsa-info.sh | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/utils/alsa-info.sh b/utils/alsa-info.sh
> index fd7df96..46d2ebb 100755
> --- a/utils/alsa-info.sh
> +++ b/utils/alsa-info.sh
> @@ -424,10 +424,12 @@ if [ -d /sys/class/dmi/id ]; then
> DMI_SYSTEM_MANUFACTURER=$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)
> DMI_SYSTEM_PRODUCT_NAME=$(cat /sys/class/dmi/id/product_name 2>/dev/null)
> DMI_SYSTEM_PRODUCT_VERSION=$(cat /sys/class/dmi/id/product_version 2>/dev/null)
> + DMI_SYSTEM_FIRMWARE_VERSION=$(cat /sys/class/dmi/id/bios_version 2>/dev/null)
> elif [ -x $DMIDECODE ]; then
> DMI_SYSTEM_MANUFACTURER=$($DMIDECODE -s system-manufacturer 2>/dev/null)
> DMI_SYSTEM_PRODUCT_NAME=$($DMIDECODE -s system-product-name 2>/dev/null)
> DMI_SYSTEM_PRODUCT_VERSION=$($DMIDECODE -s system-version 2>/dev/null)
> + DMI_SYSTEM_FIRMWARE_VERSION=$($DMIDECODE -s bios-version 2>/dev/null)
> fi
>
> cat /proc/asound/modules 2>/dev/null|awk {'print $2'}>$TEMPDIR/alsamodules.tmp
> @@ -469,6 +471,7 @@ echo "" >> $FILE
> echo "Manufacturer: $DMI_SYSTEM_MANUFACTURER" >> $FILE
> echo "Product Name: $DMI_SYSTEM_PRODUCT_NAME" >> $FILE
> echo "Product Version: $DMI_SYSTEM_PRODUCT_VERSION" >> $FILE
> +echo "Firmware Version: $DMI_SYSTEM_FIRMWARE_VERSION" >> $FILE
> echo "" >> $FILE
> echo "" >> $FILE
> echo "!!Kernel Information" >> $FILE
> --
> 1.7.9.5
>
More information about the Alsa-devel
mailing list