ASoC: cs35l41: Fallback to using HID for system_name if no SUB is available
authorStefan Binding <sbinding@opensource.cirrus.com>
Wed, 5 Feb 2025 16:48:04 +0000 (16:48 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 11:33:47 +0000 (11:33 +0000)
commit1d44a30ae3f9195cb4eb7d81bb9ced2776232094
treee076eda6e149f9ca238d7d4b5569a51a27519f36
parent679074942c2502a95842a80471d8fb718165ac77
ASoC: cs35l41: Fallback to using HID for system_name if no SUB is available

For systems which load firmware on the cs35l41 which use ACPI, the
_SUB value is used to differentiate firmware and tuning files for the
individual systems. In the case where a system does not have a _SUB
defined in ACPI node for cs35l41, there needs to be a fallback to
allow the files for that system to be differentiated. Since all
ACPI nodes for cs35l41 should have a HID defined, the HID should be a
safe option.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Tested-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20250205164806.414020-1-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c