Skip to content

ASoC: Convert last few codecs to set_jack

Amadeusz Sławiński linux-sound linux-tegra lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12ASoC: codecs: wm8903: Implement set_jack callbacksound/soc/codecs/wm8903.c+12 -00 replies
2/12ASoC: codecs: wm8962: Implement set_jack callbacksound/soc/codecs/wm8962.c+7 -00 replies
3/12ASoC: codecs: wm8994: Implement set_jack callbacksound/soc/codecs/wm8994.c+18 -01 reply
4/12ASoC: tegra: tegra_wm8903: Use standard callback to set jacksound/soc/tegra/tegra_wm8903.c+2 -30 replies
5/12ASoC: tegra: tegra_wm8962: Use standard callback to set jacksound/soc/tegra/tegra_wm8962.c+2 -20 replies
6/12ASoC: tegra: tegra_wm8994: Use standard callback to set jacksound/soc/tegra/tegra_wm8994.c+2 -20 replies
7/12ASoC: samsung: littlemill: Use standard callback to set jacksound/soc/samsung/littlemill.c+1 -50 replies
8/12ASoC: samsung: midas_wm1811: Use standard callback to set jacksound/soc/samsung/midas_wm1811.c+1 -20 replies
9/12ASoC: samsung: tobermory: Use standard callback to set jacksound/soc/samsung/tobermory.c+1 -10 replies
10/12ASoC: codecs: wm8903: Make wm8903_mic_detect() staticsound/soc/codecs/wm8903.c sound/soc/codecs/wm8903.h+3 -80 replies
11/12ASoC: codecs: wm8962: Make wm8962_mic_detect() staticsound/soc/codecs/wm8962.c sound/soc/codecs/wm8962.h+1 -40 replies
12/12ASoC: codecs: wm8994: Make mic detect functions staticsound/soc/codecs/wm8994.c sound/soc/codecs/wm8994.h+5 -130 replies

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCharles Keepax
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] ASoC: Convert last few codecs to set_jack

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(-)

base-commit: cc3fc99f1bce93c3ae3771ef98cb91a566da857e

Signature · 1 line
2.56.0