Add support for jack detection to codec present in
authorMark Brown <broonie@kernel.org>
Tue, 26 Mar 2024 14:11:34 +0000 (14:11 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 26 Mar 2024 14:11:34 +0000 (14:11 +0000)
commit35c8c82fa08e0cc66c4777ff07a2f1c9200fdae9
tree9741fabbebba0b66c214d544b3b47f5edcc2dd33
parentfc32f949ed45488353bcdefd92afa43a081253a9
parent21fa98f4197bb3365dda1417708b318f403c13c1
Add support for jack detection to codec present in

Merge series from OndÅ™ej 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.