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)
commit3421894765a345c6919b22cdda606c2ba1aab2eb
tree0a533d59caf4f229497efbfe49e8c9dc98809a99
parent8b4a133c6145a34618c770117b65b33f1aa993aa
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