From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: "Amadeusz Sławiński" <amade@asmblr.net>
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
patches@opensource.cirrus.com, linux-tegra@vger.kernel.org,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>
Subject: Re: [PATCH 00/12] ASoC: Convert last few codecs to set_jack
Date: Tue, 27 Oct 2026 10:04:41 +0000 [thread overview]
Message-ID: <auB3OWLAbq4eXEL7@opensource.cirrus.com> (raw)
In-Reply-To: <20261026201915.57184-1-amade@asmblr.net>
On Mon, Oct 26, 2026 at 09:19:03PM +0100, Amadeusz Sławiński wrote:
> There were still few codecs left using old method of jack detection by
> exporting public *_mic_detect() function. Convert them to .set_jack
> callback.
>
> First implement the wrapper around *_mic_detect, currently either none
> or just one of the arguments is used, so even if function exposes more,
> wrap it, by accepting only one. (If in the future there is usecase for
> more arguments, it can be easily added, by exposing jack setting struct,
> and passing it by data pointer.)
>
> Then convert the boards to use standard snd_soc_component_set_jack call.
>
> And finally remove *_mic_detect() from headers and unexport it.
>
> Amadeusz Sławiński (12):
> ASoC: codecs: wm8903: Implement set_jack callback
> ASoC: codecs: wm8962: Implement set_jack callback
> ASoC: codecs: wm8994: Implement set_jack callback
> ASoC: tegra: tegra_wm8903: Use standard callback to set jack
> ASoC: tegra: tegra_wm8962: Use standard callback to set jack
> ASoC: tegra: tegra_wm8994: Use standard callback to set jack
> ASoC: samsung: littlemill: Use standard callback to set jack
> ASoC: samsung: midas_wm1811: Use standard callback to set jack
> ASoC: samsung: tobermory: Use standard callback to set jack
> ASoC: codecs: wm8903: Make wm8903_mic_detect() static
> ASoC: codecs: wm8962: Make wm8962_mic_detect() static
> ASoC: codecs: wm8994: Make mic detect functions static
>
> sound/soc/codecs/wm8903.c | 18 +++++++++++++++---
> sound/soc/codecs/wm8903.h | 5 -----
> sound/soc/codecs/wm8962.c | 10 ++++++++--
> sound/soc/codecs/wm8962.h | 2 --
> sound/soc/codecs/wm8994.c | 30 +++++++++++++++++++++++-------
> sound/soc/codecs/wm8994.h | 6 ------
> sound/soc/samsung/littlemill.c | 6 +-----
> sound/soc/samsung/midas_wm1811.c | 3 +--
> sound/soc/samsung/tobermory.c | 2 +-
> sound/soc/tegra/tegra_wm8903.c | 5 ++---
> sound/soc/tegra/tegra_wm8962.c | 4 ++--
> sound/soc/tegra/tegra_wm8994.c | 4 ++--
> 12 files changed, 55 insertions(+), 40 deletions(-)
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
prev parent reply other threads:[~2026-10-27 10:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 20:19 Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 01/12] ASoC: codecs: wm8903: Implement set_jack callback Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 02/12] ASoC: codecs: wm8962: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 03/12] ASoC: codecs: wm8994: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 04/12] ASoC: tegra: tegra_wm8903: Use standard callback to set jack Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 05/12] ASoC: tegra: tegra_wm8962: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 06/12] ASoC: tegra: tegra_wm8994: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 07/12] ASoC: samsung: littlemill: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 08/12] ASoC: samsung: midas_wm1811: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 09/12] ASoC: samsung: tobermory: " Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 10/12] ASoC: codecs: wm8903: Make wm8903_mic_detect() static Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 11/12] ASoC: codecs: wm8962: Make wm8962_mic_detect() static Amadeusz Sławiński
2026-10-26 20:19 ` [PATCH 12/12] ASoC: codecs: wm8994: Make mic detect functions static Amadeusz Sławiński
2026-10-27 10:04 ` Charles Keepax [this message]
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=auB3OWLAbq4eXEL7@opensource.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=amade@asmblr.net \
--cc=broonie@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=s.nawrocki@samsung.com \
--cc=thierry.reding@kernel.org \
--cc=tiwai@suse.com \
/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
all inboxes | Powered by JetHome®