UPSTREAM: ASoC: cs35l41: Read System Name from ACPI _SUB to identify firmware

When loading firmware, wm_adsp uses a number of parameters to
determine the path of the firmware and tuning files to load.
One of these parameters is system_name.
Add support in cs35l41 to read this system name from the ACPI
_SUB ID in order to uniquely identify the firmware and tuning
mapped to a particular system.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220707151037.3901050-3-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit c1ad138822a1be95a7a7b122521c2415583a0c26)

BUG=b:202484541
TEST=Test correct amplifier firmware loads on boot

Signed-off-by: Stefan Binding <stefan.binding@cirrus.corp-partner.google.com>
Change-Id: I397929ae0127c41107158521e842c87fc0be29ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3810239
Commit-Queue: Terry Cheong <htcheong@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Stuart Henderson <stuart.henderson@cirrus.corp-partner.google.com>
Reviewed-by: Judy Hsiao <judyhsiao@google.com>
Tested-by: Terry Cheong <htcheong@chromium.org>
(cherry picked from commit 18131586c94fac243f6bdd97c533c31ab8d3722b)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3933910
Auto-Submit: Terry Cheong <htcheong@chromium.org>
1 file changed