]> git.alsa-project.org Git - alsa-utils.git/commit
alsa-info: add ACPI device status
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 10 Jan 2017 00:32:24 +0000 (18:32 -0600)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Jan 2017 08:09:57 +0000 (09:09 +0100)
commit1fefc1440276f3a91649650d1dd9bcbb28bab7bd
treea8b030af4aa0c2897401beb8e6b1794d93fc5ae6
parent541c7a6460835d6fa982253caf06bc971e2b9279
alsa-info: add ACPI device status

BIOS vendors typically reuse the same definitions between different
platforms and expose the relevant hardware by changing the value of
the _STA method.

For example on the Asus T100HA, there are 3 HID values for audio
codecs in the DSDT table but two have a zero status and will be
ignored by the ACPI subsystem.

$ more /sys/bus/acpi/devices/10EC*/status
::::::::::::::
/sys/bus/acpi/devices/10EC3270:00/status
::::::::::::::
15
::::::::::::::
/sys/bus/acpi/devices/10EC5640:00/status
::::::::::::::
0
::::::::::::::
/sys/bus/acpi/devices/10EC5648:00/status
::::::::::::::
0

This information is very useful to figure out which HIDs/quirks need
to be supported. Add log to alsa-info.sh to only expose non-zero
results of the ACPI _STA method, e.g.

!!ACPI Device Status Information
!!---------------

/sys/bus/acpi/devices/10EC3270:00/status   15

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
alsa-info/alsa-info.sh