From: "Ondřej Jirman" <megi@xff.cz>
To: linux-kernel@vger.kernel.org, Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>
Cc: Ondrej Jirman <megi@xff.cz>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Arnaud Ferraris <arnaud.ferraris@collabora.com>,
linux-sound@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev
Subject: [PATCH v3 0/4] Add support for jack detection to codec present in A64 SoC
Date: Sat, 2 Mar 2024 15:00:34 +0100 [thread overview]
Message-ID: <20240302140042.1990256-1-megi@xff.cz> (raw)
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
next reply other threads:[~2024-03-02 14:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-02 14:00 Ondřej Jirman [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240302140042.1990256-1-megi@xff.cz \
--to=megi@xff.cz \
--cc=arnaud.ferraris@collabora.com \
--cc=broonie@kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=perex@perex.cz \
--cc=samuel@sholland.org \
--cc=tiwai@suse.com \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox