]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: common: add ACPI package extraction utility
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sun, 13 Nov 2016 00:07:44 +0000 (18:07 -0600)
committerMark Brown <broonie@kernel.org>
Sun, 13 Nov 2016 09:19:51 +0000 (09:19 +0000)
commitbc10c6e78def1004ea7767f57e5b97dee7fd9941
tree0a533d59caf4f229497efbfe49e8c9dc98809a99
parent58c7ec3673b7d7700949ddc3c9feaf771da4467e
ASoC: Intel: common: add ACPI package extraction utility

Add a new common routine to extract a package exposed by a
device indexed with the HID value. The functionality is
implemented without assumptions on the package type or
structure to allow for reuse. The caller is responsible for
defining the name and allocating structures to store the
results, ACPICA will complain in case of type mismatches
or buffer size issues.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/sst-acpi.h
sound/soc/intel/common/sst-match-acpi.c