mbox series

[0/4] Add support for jack detection to codec present in A64 SoC

Message ID 20240222181851.3398254-1-megi@xff.cz (mailing list archive)
Headers show
Series Add support for jack detection to codec present in A64 SoC | expand

Message

Ondřej Jirman Feb. 22, 2024, 6:18 p.m. UTC
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 improved and debugged version of the original
ones from Arnaud Ferraris and Samuel Holland, imrpoved to better
handle headset button presses and with more robust plug-in/out
event debouncing.

Please take a look. :)

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         | 388 +++++++++++++++++++++++++-
 2 files changed, 443 insertions(+), 18 deletions(-)

Comments

Mark Brown Feb. 22, 2024, 6:46 p.m. UTC | #1
On Thu, Feb 22, 2024 at 07:18:43PM +0100, Ondřej Jirman wrote:
> 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.

I'd expect to see this implementing a set_jack() operation in the CODEC
driver and then using that from the machine driver.