]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: cs35l56: Workaround for ACPI with broken spk-id-gpios property
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 9 Feb 2024 11:18:40 +0000 (11:18 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Feb 2024 19:37:25 +0000 (19:37 +0000)
commit0db0c1770834f39e11a2902e20e1f11a482f4465
treee9d0d0e1462847e26b8964694ae742e5b6c6a65b
parent9dbe95e28ff1473837a2838d621c75d365a13822
ASoC: cs35l56: Workaround for ACPI with broken spk-id-gpios property

The ACPI in some SoundWire laptops has a spk-id-gpios property but
it points to the wrong Device node. This patch adds a workaround to
try to get the GPIO directly from the correct Device node.

If the attempt to get the GPIOs from the property fails, the workaround
looks for the SDCA node "AF01", which is where the GpioIo resource is
defined. If this exists, a spk-id-gpios mapping is added to that node
and then the GPIO is got from that node using the property.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://msgid.link/r/20240209111840.1543630-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c