[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250324130057.4855-1-srinivas.kandagatla@linaro.org>
Date: Mon, 24 Mar 2025 13:00:51 +0000
From: srinivas.kandagatla@...aro.org
To: peda@...ntia.se,
broonie@...nel.org,
andersson@...nel.org,
krzk+dt@...nel.org
Cc: ivprusov@...utedevices.com,
luca.ceresoli@...tlin.com,
zhoubinbin@...ngson.cn,
paulha@...nsource.cirrus.com,
lgirdwood@...il.com,
robh@...nel.org,
conor+dt@...nel.org,
konradybcio@...nel.org,
perex@...ex.cz,
tiwai@...e.com,
dmitry.baryshkov@....qualcomm.com,
linux-sound@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
johan+linaro@...nel.org,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Subject: [PATCH v4 0/6] ASoC: wcd938x: enable t14s audio headset
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
On Lenovo ThinkPad T14s, the headset is connected via a HiFi Switch to
support CTIA and OMTP headsets. This switch is used to minimise pop and
click during headset type switching.
This patchset adds required bindings and changes to codec and dts to
tnable the regulator required to power this switch along with wiring up
gpio that control the headset switching.
Without this patchset, there will be lots of noise on headset and mic
will not we functional.
Changes since v3:
- rearranged mux deselct to do better error handling.
- reused mux_state for gpios as well.
- removed tested by on bindings
Changes since v2:
- udpated bindings as suggested by Rob and Krzysztof
- cleaned up swap_gnd_mic callback
- updated mux gpio to use dev_err_probe.
- added Tested-by and reviewed-by tags
Changes since v1:
- moved to using mux-controls.
- fixed typo in regulator naming.
Srinivas Kandagatla (6):
dt-bindings: mux: add optional regulator binding to gpio mux
mux: gpio: add optional regulator support
ASoC: codecs: wcd-mbhc: cleanup swap_gnd_mic api
ASoC: dt-bindings: wcd93xx: add bindings for audio mux controlling hp
ASoC: codecs: wcd938x: add mux control support for hp audio mux
arm64: dts: qcom: x1e78100-t14s: Enable audio headset support
.../devicetree/bindings/mux/gpio-mux.yaml | 4 ++
.../bindings/sound/qcom,wcd938x.yaml | 6 +++
.../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 25 ++++++++++
drivers/mux/gpio.c | 5 ++
sound/soc/codecs/Kconfig | 1 +
sound/soc/codecs/wcd-mbhc-v2.c | 2 +-
sound/soc/codecs/wcd-mbhc-v2.h | 2 +-
sound/soc/codecs/wcd937x.c | 2 +-
sound/soc/codecs/wcd938x.c | 50 +++++++++++++++----
sound/soc/codecs/wcd939x.c | 2 +-
10 files changed, 84 insertions(+), 15 deletions(-)
--
2.39.5
Powered by blists - more mailing lists