linux/sound/soc/sunxi
Ryan Walklin 3673382803 ASoC: sun4i-codec: support hp-det-gpios property
[ Upstream commit a149377c03 ]

Add support for GPIO headphone detection with the hp-det-gpios
property. In order for this to properly disable the path upon
removal of headphones, the output must be labelled Headphone which
is a common sink in the driver.

Describe a headphone jack and detection GPIO in the driver, check for
a corresponding device tree node, and enable jack detection in a new
machine init function if described.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Ryan Walklin <ryan@testtoast.com>

--
Changelog v1..v2:
- Separate DAPM changes into separate patch and add rationale.

Tested-by: Philippe Simons <simons.philippe@gmail.com>
Link: https://patch.msgid.link/20250214220247.10810-4-ryan@testtoast.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:19 +02:00
..
Kconfig ASoC: sunxi: Add Allwinner H6 Digital MIC driver 2022-09-19 17:52:47 +01:00
Makefile ASoC: sunxi: Add Allwinner H6 Digital MIC driver 2022-09-19 17:52:47 +01:00
sun4i-codec.c ASoC: sun4i-codec: support hp-det-gpios property 2025-05-29 11:02:19 +02:00
sun4i-i2s.c ASoC: Updates for v6.12 2024-09-14 09:09:59 +02:00
sun4i-spdif.c ASoC: sun4i-spdif: Add clock multiplier settings 2025-02-08 09:57:27 +01:00
sun8i-adda-pr-regmap.c ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-adda-pr-regmap.h ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-codec-analog.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
sun8i-codec.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
sun50i-codec-analog.c ASoC: sun8i-codec: Implement jack and accessory detection 2024-03-25 00:32:32 +00:00
sun50i-dmic.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00