Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add support for jack detection to codec present in A64 SoC
@ 2024-03-02 14:00 Ondřej Jirman
  2024-03-02 14:00 ` [PATCH v3 1/4] ASoC: sun50i-codec-analog: Move suspend/resume to set_bias_level Ondřej Jirman
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ondřej Jirman @ 2024-03-02 14:00 UTC (permalink / raw)
  To: linux-kernel, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai
  Cc: Ondrej Jirman, Chen-Yu Tsai, Jernej Skrabec, Samuel Holland,
	Arnaud Ferraris, linux-sound, linux-arm-kernel, linux-sunxi

From: Ondrej Jirman <megi@xff.cz>

This series adds support for jack detection to this codec. I used
and tested this on Pinephone. It works quite nicely. I tested it
against Android headset mic button resistor specification.

The patches are a rewritten and debugged version of the original
ones from Arnaud Ferraris and Samuel Holland, improved to better
handle headset button presses and with more robust plug-in/out
event debouncing, and to use set_jack API instead of sniffing
the sound card widget names, to detect the type of jack connector.

Please take a look. :)

v3:
- removed all device-tree related code
  (it's not necessary for core functionality, it only helps make the jack detect
  functionality of the codec be usable from simple-sound-card driver, and I'll
  send it spearately, because it will apparently need several more rounds
  of review)

v2:
- use set_jack/get_jack_type
- get rid of some custom poking inside card internals to figure
  out what kind of jack port we should setup the codec for
- read jack-type from OF as suggested here: 
  https://elixir.bootlin.com/linux/latest/source/sound/soc/soc-component.c#L288
- add DT bindings

Thank you very much,
	Ondřej Jirman

Arnaud Ferraris (2):
  ASoC: sun50i-codec-analog: Enable jack detection on startup
  ASoC: sun8i-codec: Implement jack and accessory detection

Samuel Holland (2):
  ASoC: sun50i-codec-analog: Move suspend/resume to set_bias_level
  ASoC: sun8i-codec: Enable bus clock at STANDBY and higher bias

 sound/soc/sunxi/sun50i-codec-analog.c |  73 +++++-
 sound/soc/sunxi/sun8i-codec.c         | 346 +++++++++++++++++++++++++-
 2 files changed, 399 insertions(+), 20 deletions(-)

-- 
2.44.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-01-09 12:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-02 14:00 [PATCH v3 0/4] Add support for jack detection to codec present in A64 SoC Ondřej Jirman
2024-03-02 14:00 ` [PATCH v3 1/4] ASoC: sun50i-codec-analog: Move suspend/resume to set_bias_level Ondřej Jirman
2024-03-02 14:00 ` [PATCH v3 2/4] ASoC: sun8i-codec: Enable bus clock at STANDBY and higher bias Ondřej Jirman
2024-03-02 14:00 ` [PATCH v3 3/4] ASoC: sun50i-codec-analog: Enable jack detection on startup Ondřej Jirman
2024-03-02 14:00 ` [PATCH v3 4/4] ASoC: sun8i-codec: Implement jack and accessory detection Ondřej Jirman
2024-03-26 15:27 ` [PATCH v3 0/4] Add support for jack detection to codec present in A64 SoC Mark Brown
2024-03-26 16:33   ` Ondřej Jirman
2024-03-26 16:46     ` Mark Brown
2024-12-27 23:58 ` Vasily Khoruzhick
2025-01-07 19:23   ` Ondřej Jirman
2025-01-08  2:24     ` Vasily Khoruzhick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox