Richard Fitzgerald 0db0c17708
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>
2024-02-13 19:37:25 +00:00
..
2021-04-20 17:25:51 +01:00
2023-12-01 16:59:16 +00:00
2023-12-01 16:59:19 +00:00
2023-12-01 16:59:20 +00:00
2023-09-11 13:34:39 +01:00
2023-12-06 23:06:55 +00:00
2023-12-06 23:06:55 +00:00
2023-09-14 16:12:47 +01:00
2023-12-01 16:59:23 +00:00
2023-12-01 16:59:23 +00:00
2024-01-08 08:18:02 +01:00
2023-07-23 23:33:05 +01:00
2023-12-01 16:59:25 +00:00
2023-12-01 16:59:24 +00:00
2023-08-11 21:12:45 +02:00
2021-03-31 18:00:38 +01:00
2022-06-06 12:33:10 +01:00
2024-01-12 11:55:28 -08:00
2024-01-12 11:32:19 -08:00
2023-08-10 00:19:02 +01:00
2018-04-26 12:44:15 +01:00
2023-08-13 19:37:49 +01:00
2023-08-13 19:37:52 +01:00
2020-05-07 13:18:04 +01:00
2023-08-13 19:37:52 +01:00
2022-10-13 13:01:32 +01:00
2023-08-13 19:37:53 +01:00
2023-08-17 22:38:42 +01:00
2023-08-13 19:37:54 +01:00
2023-08-13 19:37:56 +01:00
2023-08-13 19:37:58 +01:00
2021-12-06 10:04:05 +01:00
2022-07-08 11:52:42 +01:00
2024-01-08 08:18:02 +01:00
2021-12-06 10:04:05 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2020-10-02 21:05:29 +01:00