Read _SUB from ACPI to be able to identify firmware
authorMark Brown <broonie@kernel.org>
Fri, 15 Jul 2022 17:21:09 +0000 (18:21 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jul 2022 17:21:09 +0000 (18:21 +0100)
commit1c69bbc3c10821c9b3dbbfd35284addc2850371f
treec5b2778fe5435539ec082df31598f187711f708a
parente1d1ffeda697dedf0859f963bc4180b5bb7bf150
parentc1ad138822a1be95a7a7b122521c2415583a0c26
Read _SUB from ACPI to be able to identify firmware

Merge series from Stefan Binding <sbinding@opensource.cirrus.com>:

CS35L41 has a DSP which is able to run firmware, as well as a tuning file.
Different systems may want to use different firmwares and tuning files, and
some firmwares/tunings may not be compatible with other systems.
To allow a system to select the correct fimware/tuning, we can read an _SUB
from the ACPI. This _SUB can then be used to uniquely identify the system
in the firmware/tuning file name.

Add a helper function which reads the _SUB, so this can be used by other
parts in the future.
Add support inside the CS35L41 ASoC driver to read this _SUB, and save it
appropriately.