Skip to content

mediatek: rework audio subsystem driver

Ryder Lee alsa-devel linux-arm-kernel linux-clk linux-devicetree linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()sound/soc/mediatek/mt2701/mt2701-afe-pcm.c+14 -171 reply
2/12ASoC: mediatek: rework clock functions for MT2701sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h sound/soc/mediatek/mt2701/mt2701-afe-common.h +1 more+200 -4421 reply
3/12ASoC: mediatek: cleanup audio driver for MT2701sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c sound/soc/mediatek/mt2701/mt2701-afe-common.h sound/soc/mediatek/mt2701/mt2701-afe-pcm.c +1 more+24 -1451 reply
4/12ASoC: mediatek: update clock related properties of MT2701 AFEDocumentation/devicetree/bindings/sound/mt2701-afe-pcm.txt+91 -1161 reply
5/12mfd: mtk-audsys: add MediaTek audio subsystem driverdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/mtk-audsys.c+149 -02 replies
6/12mfd: add DT bindings for MedaiTek audio subsystemDocumentation/devicetree/bindings/mfd/mtk-audsys.txt+109 -01 reply
7/12ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrappersound/soc/mediatek/mt2701/mt2701-afe-pcm.c sound/soc/mediatek/mt2701/mt2701-reg.h+17 -260 replies
8/12ASoC: mediatek: modify documentation to adapt subsystem wrapperDocumentation/devicetree/bindings/sound/mt2701-afe-pcm.txt+82 -780 replies
9/12clk: mediatek: move part of mtk_clk_register_gates() to the new functiondrivers/clk/mediatek/clk-mtk.c drivers/clk/mediatek/clk-mtk.h+21 -90 replies
10/12clk: mediatek: switch to use dev_get_regmap() for MT7622 audsysdrivers/clk/mediatek/clk-mt7622-aud.c include/dt-bindings/clock/mt7622-clk.h+11 -31 reply
11/12clk: mediatek: add audsys support for MT2701drivers/clk/mediatek/Kconfig drivers/clk/mediatek/Makefile drivers/clk/mediatek/clk-mt2701-aud.c+187 -00 replies
12/12dt-bindings: clock: mediatek: update audsys bindings to adapt the wrapperDocumentation/devicetree/bindings/arm/mediatek/mediatek,audsys.txt+13 -60 replies

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by.

PatchGarlic Tseng
1/12T-b T-b
2/12T-b T-b
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] mediatek: rework audio subsystem driver

Hi all,

This patch series mainly adds a common driver [5][6] for the top block of the MediaTek audio subsystem, which includes clock part and audio components. This is a minimal driver that manages shared resources like shared registers, and expose a regmap to its sub-nodes. It was tested on the bananapi-r2 and the MT2701 EVB.

Also, this driver can be reused by other subsystems (e.g. MMSYS, ETHSYS) in future patch.

Patch[1]-[4]: rework for audio enable/disable sequences and update some part of
code to make them more generic.
Patch[7]~[12]: modify both drivers, audio and clock to adapt the new subsystem.

Ryder Lee (12):
ASoC: mediatek: fix error handling in mt2701_afe_pcm_dev_probe()
ASoC: mediatek: rework clock functions for MT2701
ASoC: mediatek: cleanup audio driver for MT2701
ASoC: mediatek: update clock related properties of MT2701 AFE
mfd: mtk-audsys: add MediaTek audio subsystem driver
mfd: add DT bindings for MedaiTek audio subsystem
ASoC: mediatek: modify MT2701 AFE driver to adapt subsystem wrapper
ASoC: mediatek: modify documentation to adapt subsystem wrapper
clk: mediatek: move part of mtk_clk_register_gates() to the new
function
clk: mediatek: switch to use dev_get_regmap() for MT7622 audsys
clk: mediatek: add audsys support for MT2701
dt-bindings: clock: mediatek: update audsys bindings to adapt the
wrapper

 .../bindings/arm/mediatek/mediatek,audsys.txt      |  19 +-
 .../devicetree/bindings/mfd/mtk-audsys.txt         | 109 +++++
 .../devicetree/bindings/sound/mt2701-afe-pcm.txt   | 257 +++++-----
 drivers/clk/mediatek/Kconfig                       |   6 +
 drivers/clk/mediatek/Makefile                      |   1 +
 drivers/clk/mediatek/clk-mt2701-aud.c              | 180 +++++++
 drivers/clk/mediatek/clk-mt7622-aud.c              |  11 +-
 drivers/clk/mediatek/clk-mtk.c                     |  26 +-
 drivers/clk/mediatek/clk-mtk.h                     |   4 +
 drivers/mfd/Kconfig                                |   9 +
 drivers/mfd/Makefile                               |   2 +
 drivers/mfd/mtk-audsys.c                           | 138 ++++++
 include/dt-bindings/clock/mt7622-clk.h             |   3 +-
 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c  | 526 +++++++--------------
 sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.h  |  15 +-
 sound/soc/mediatek/mt2701/mt2701-afe-common.h      |  84 +---
 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c         | 212 +++------
 sound/soc/mediatek/mt2701/mt2701-reg.h             |  42 +-
 18 files changed, 860 insertions(+), 784 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/mtk-audsys.txt
 create mode 100644 drivers/clk/mediatek/clk-mt2701-aud.c
 create mode 100644 drivers/mfd/mtk-audsys.c
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html