Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 00/14] qrb4210-rb2: add wsa audio playback and capture support
@ 2024-12-12  0:47 Alexey Klimov
  2024-12-12  0:47 ` [PATCH v2 01/14] ASoC: dt-bindings: qcom: Add SM6115 LPASS rxmacro and vamacro codecs Alexey Klimov
                   ` (14 more replies)
  0 siblings, 15 replies; 33+ messages in thread
From: Alexey Klimov @ 2024-12-12  0:47 UTC (permalink / raw)
  To: broonie, konradybcio, konrad.dybcio, andersson,
	srinivas.kandagatla
  Cc: tiwai, lgirdwood, perex, robh, krzk+dt, conor+dt,
	dmitry.baryshkov, linux-sound, linux-arm-msm, devicetree,
	linux-kernel

Issues with distorted sound and unstable volume on playback were resolved
and this patchset also includes support for onboard DMIC and thus
capturing feature.

This implements the playback via the following path:
RX1 from DSP is connected to rxmacro which communicates with wcd codec
using soundwire. This goes into AUX input of wcd.
wcd codec outputs analog audio into wsa8815 amplifier.
Capturing works through vamacro using one onboard DMIC which is
directly connected to vamacro codec.

Special thanks to Srini. Without his help and support this patchset
wouldn't be here.

Previous version:
https://lore.kernel.org/linux-sound/20241101053154.497550-1-alexey.klimov@linaro.org/

Changes since v2:

-- forcing single channel output for RX_1 channel is moved into drv variant;
-- added capture feature support hence some new patches and
   updates to pins description;
-- sorted headers in wsa881x-i2c driver, removed excessive ones;
-- removed of_gpio.h as suggested by Rob;
-- removed wrong bindings and updated already existing
   qcom,wsa881x.yaml as suggested by Krzysztof;
-- removed unused pins state description as suggested by Krzysztof;
-- reworked wsa881x-i2c driver
   (initialisation, pm, consts, some functions, etc);
-- usage of devm_kmemdup() in wsa881x-i2c probe() as a hint from Krzysztof;
-- updated commit messages where required;
-- not using i2c gpio bit-banging for wsa881x i2c;
-- made dtbs_check and dt_binding_check happy.


This series depends on:
 -- HDMI audio playback
https://lore.kernel.org/linux-arm-msm/20241204140027.2198763-1-alexey.klimov@linaro.org/
-- and LPASS clock controller
https://lore.kernel.org/linux-clk/20241212002551.2902954-1-alexey.klimov@linaro.org/


Alexey Klimov (14):
  ASoC: dt-bindings: qcom: Add SM6115 LPASS rxmacro and vamacro codecs
  ASoC: codecs: va-macro: add sm6115 compatible
  ASoC: codecs: lpass-rx-macro: add sm6115 compatible
  arm64: dts: qcom: sm6115: add LPASS devices
  arm64: dts: qcom: sm4250: add description of soundwire and dmic pins
  arm64: dts: qcom: qrb4210-rb2: add wcd937x codec support
  ASoC: codecs: wsa881x: split into common and soundwire drivers
  dt-bindings: arm: qcom-soc: extend pattern matching to support
    qcom,wsa881x
  ASoC: dt-bindings: qcom,wsa881x: extend description to analog mode
  arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier
  ASoC: codecs: add wsa881x-i2c amplifier codec driver
  arm64: dts: qcom: qrb4210-rb2: add WSA audio playback support
  arm64: dts: qcom: qrb4210-rb2: add VA capture support
  ASoC: qcom: sm8250: force single channel via RX_1 output for qrb4210

 .../devicetree/bindings/arm/qcom-soc.yaml     |    3 +-
 .../bindings/sound/qcom,lpass-rx-macro.yaml   |   19 +
 .../bindings/sound/qcom,lpass-va-macro.yaml   |   17 +
 .../bindings/sound/qcom,wsa881x.yaml          |   75 +-
 arch/arm64/boot/dts/qcom/qrb4210-rb2.dts      |  126 +-
 arch/arm64/boot/dts/qcom/sm4250.dtsi          |   62 +
 arch/arm64/boot/dts/qcom/sm6115.dtsi          |  132 ++
 sound/soc/codecs/Kconfig                      |   15 +
 sound/soc/codecs/Makefile                     |    4 +
 sound/soc/codecs/lpass-rx-macro.c             |    4 +-
 sound/soc/codecs/lpass-va-macro.c             |    1 +
 sound/soc/codecs/wsa881x-common.c             |  123 ++
 sound/soc/codecs/wsa881x-common.h             |  426 ++++++
 sound/soc/codecs/wsa881x-i2c.c                | 1352 +++++++++++++++++
 sound/soc/codecs/wsa881x.c                    |  493 +-----
 sound/soc/qcom/sm8250.c                       |   28 +-
 16 files changed, 2384 insertions(+), 496 deletions(-)
 create mode 100644 sound/soc/codecs/wsa881x-common.c
 create mode 100644 sound/soc/codecs/wsa881x-common.h
 create mode 100644 sound/soc/codecs/wsa881x-i2c.c

-- 
2.45.2


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2024-12-13 12:41 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12  0:47 [PATCH v2 00/14] qrb4210-rb2: add wsa audio playback and capture support Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 01/14] ASoC: dt-bindings: qcom: Add SM6115 LPASS rxmacro and vamacro codecs Alexey Klimov
2024-12-12  2:25   ` Rob Herring (Arm)
2024-12-12  7:39   ` Krzysztof Kozlowski
2024-12-12 16:36   ` Konrad Dybcio
2024-12-12  0:47 ` [PATCH v2 02/14] ASoC: codecs: va-macro: add sm6115 compatible Alexey Klimov
2024-12-12  7:40   ` Krzysztof Kozlowski
2024-12-12  0:47 ` [PATCH v2 03/14] ASoC: codecs: lpass-rx-macro: " Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 04/14] arm64: dts: qcom: sm6115: add LPASS devices Alexey Klimov
2024-12-12  7:42   ` Krzysztof Kozlowski
2024-12-12  0:47 ` [PATCH v2 05/14] arm64: dts: qcom: sm4250: add description of soundwire and dmic pins Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 06/14] arm64: dts: qcom: qrb4210-rb2: add wcd937x codec support Alexey Klimov
2024-12-12  7:43   ` Krzysztof Kozlowski
2024-12-12 17:17   ` Konrad Dybcio
2024-12-12  0:47 ` [PATCH v2 07/14] ASoC: codecs: wsa881x: split into common and soundwire drivers Alexey Klimov
2024-12-12 17:20   ` Konrad Dybcio
2024-12-12  0:47 ` [PATCH v2 08/14] dt-bindings: arm: qcom-soc: extend pattern matching to support qcom,wsa881x Alexey Klimov
2024-12-12  7:46   ` Krzysztof Kozlowski
2024-12-12  8:02     ` Krzysztof Kozlowski
2024-12-12  0:47 ` [PATCH v2 09/14] ASoC: dt-bindings: qcom,wsa881x: extend description to analog mode Alexey Klimov
2024-12-12  2:25   ` Rob Herring (Arm)
2024-12-12  7:49   ` Krzysztof Kozlowski
2024-12-12 16:39   ` Konrad Dybcio
2024-12-12  0:47 ` [PATCH v2 10/14] arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 11/14] ASoC: codecs: add wsa881x-i2c amplifier codec driver Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 12/14] arm64: dts: qcom: qrb4210-rb2: add WSA audio playback support Alexey Klimov
2024-12-13 12:41   ` Konrad Dybcio
2024-12-12  0:47 ` [PATCH v2 13/14] arm64: dts: qcom: qrb4210-rb2: add VA capture support Alexey Klimov
2024-12-12  0:47 ` [PATCH v2 14/14] ASoC: qcom: sm8250: force single channel via RX_1 output for qrb4210 Alexey Klimov
2024-12-12 17:22   ` Konrad Dybcio
2024-12-13 11:54     ` Alexey Klimov
2024-12-13 11:57       ` Konrad Dybcio
2024-12-12  7:37 ` [PATCH v2 00/14] qrb4210-rb2: add wsa audio playback and capture support Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox