[PATCH v2 00/11] ASoC: mediatek: Add support for MT8196 SoC

Darren.Ye posted 11 patches 10 months, 1 week ago
There is a newer version of this series
.../bindings/sound/mediatek,mt8196-afe.yaml   |   233 +
.../sound/mediatek,mt8196-mt6681.yaml         |   114 +
sound/soc/mediatek/Kconfig                    |    30 +
sound/soc/mediatek/Makefile                   |     1 +
sound/soc/mediatek/common/mtk-afe-fe-dai.c    |    23 +-
sound/soc/mediatek/common/mtk-afe-fe-dai.h    |     1 +
.../mediatek/common/mtk-afe-platform-driver.c |    47 +-
.../mediatek/common/mtk-afe-platform-driver.h |     2 +
sound/soc/mediatek/common/mtk-base-afe.h      |    13 +
sound/soc/mediatek/mt8196/Makefile            |    16 +
sound/soc/mediatek/mt8196/mt8196-afe-clk.c    |   729 +
sound/soc/mediatek/mt8196/mt8196-afe-clk.h    |    78 +
sound/soc/mediatek/mt8196/mt8196-afe-common.h |   194 +
sound/soc/mediatek/mt8196/mt8196-afe-pcm.c    |  5070 +++++++
sound/soc/mediatek/mt8196/mt8196-dai-adda.c   |   918 ++
sound/soc/mediatek/mt8196/mt8196-dai-i2s.c    |  4080 ++++++
sound/soc/mediatek/mt8196/mt8196-dai-tdm.c    |   825 ++
.../mediatek/mt8196/mt8196-interconnection.h  |   121 +
sound/soc/mediatek/mt8196/mt8196-mt6681.c     |   876 ++
sound/soc/mediatek/mt8196/mt8196-reg.h        | 12068 ++++++++++++++++
20 files changed, 25414 insertions(+), 25 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-afe.yaml
create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-mt6681.yaml
create mode 100644 sound/soc/mediatek/mt8196/Makefile
create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.h
create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-common.h
create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-pcm.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-adda.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-i2s.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-tdm.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-interconnection.h
create mode 100644 sound/soc/mediatek/mt8196/mt8196-mt6681.c
create mode 100644 sound/soc/mediatek/mt8196/mt8196-reg.h
[PATCH v2 00/11] ASoC: mediatek: Add support for MT8196 SoC
Posted by Darren.Ye 10 months, 1 week ago
From: Darren Ye <darren.ye@mediatek.com>

This series of patches adds support for Mediatek AFE of MT8196 SoC.
Patches are based on broonie tree "for-next" branch.

Changes since v1:
  - modify mtk_memif_set_channel and mtk_afe_pcm_pointer interfaces
    are improved to support mt8196.
  - remove duplicate definitions in the mt8196 common header file.
  - cm logic is merge into the afe platform driver.
  - modify afe clk to return judgment logic and remove useless clk sources.
  - refactor the mt8196 adda dai driver.
  - remove the gpio module and use SND_SOC_DAPM_PINCTRL to manage it.
  - removes CONNSYS_I2S related functions that are not supported in i2s dai driver.
  - fixed mt8196-afe.yaml and mt8196-mt6681.yaml syntax issues.
  - modify log printing in all modules.
  - optimize the header file included for machine driver.

Darren Ye (11):
  ASoC: mediatek: common: modify mtk afe common driver for mt8196
  ASoC: mediatek: common: modify mtk afe platform driver for mt8196
  ASoC: mediatek: mt8196: add common header
  ASoC: mediatek: mt8196: support audio clock control
  ASoC: mediatek: mt8196: support ADDA in platform driver
  ASoC: mediatek: mt8196: support I2S in platform driver
  ASoC: mediatek: mt8196: support TDM in platform driver
  ASoC: mediatek: mt8196: add platform driver
  ASoC: dt-bindings: mediatek,mt8196-afe: add audio AFE document
  ASoC: mediatek: mt8196: add machine driver with mt6681
  ASoC: dt-bindings: mediatek,mt8196-mt6681: add mt8196-mt6681 document

 .../bindings/sound/mediatek,mt8196-afe.yaml   |   233 +
 .../sound/mediatek,mt8196-mt6681.yaml         |   114 +
 sound/soc/mediatek/Kconfig                    |    30 +
 sound/soc/mediatek/Makefile                   |     1 +
 sound/soc/mediatek/common/mtk-afe-fe-dai.c    |    23 +-
 sound/soc/mediatek/common/mtk-afe-fe-dai.h    |     1 +
 .../mediatek/common/mtk-afe-platform-driver.c |    47 +-
 .../mediatek/common/mtk-afe-platform-driver.h |     2 +
 sound/soc/mediatek/common/mtk-base-afe.h      |    13 +
 sound/soc/mediatek/mt8196/Makefile            |    16 +
 sound/soc/mediatek/mt8196/mt8196-afe-clk.c    |   729 +
 sound/soc/mediatek/mt8196/mt8196-afe-clk.h    |    78 +
 sound/soc/mediatek/mt8196/mt8196-afe-common.h |   194 +
 sound/soc/mediatek/mt8196/mt8196-afe-pcm.c    |  5070 +++++++
 sound/soc/mediatek/mt8196/mt8196-dai-adda.c   |   918 ++
 sound/soc/mediatek/mt8196/mt8196-dai-i2s.c    |  4080 ++++++
 sound/soc/mediatek/mt8196/mt8196-dai-tdm.c    |   825 ++
 .../mediatek/mt8196/mt8196-interconnection.h  |   121 +
 sound/soc/mediatek/mt8196/mt8196-mt6681.c     |   876 ++
 sound/soc/mediatek/mt8196/mt8196-reg.h        | 12068 ++++++++++++++++
 20 files changed, 25414 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-afe.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/mediatek,mt8196-mt6681.yaml
 create mode 100644 sound/soc/mediatek/mt8196/Makefile
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-clk.h
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-common.h
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-afe-pcm.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-adda.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-i2s.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-dai-tdm.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-interconnection.h
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-mt6681.c
 create mode 100644 sound/soc/mediatek/mt8196/mt8196-reg.h

-- 
2.45.2

Re: [PATCH v2 00/11] ASoC: mediatek: Add support for MT8196 SoC
Posted by Krzysztof Kozlowski 10 months, 1 week ago
On 07/04/2025 14:06, Darren.Ye wrote:
> From: Darren Ye <darren.ye@mediatek.com>
> 
> This series of patches adds support for Mediatek AFE of MT8196 SoC.
> Patches are based on broonie tree "for-next" branch.
> 
> Changes since v1:
>   - modify mtk_memif_set_channel and mtk_afe_pcm_pointer interfaces
>     are improved to support mt8196.
>   - remove duplicate definitions in the mt8196 common header file.
>   - cm logic is merge into the afe platform driver.
>   - modify afe clk to return judgment logic and remove useless clk sources.
>   - refactor the mt8196 adda dai driver.
>   - remove the gpio module and use SND_SOC_DAPM_PINCTRL to manage it.
>   - removes CONNSYS_I2S related functions that are not supported in i2s dai driver.
>   - fixed mt8196-afe.yaml and mt8196-mt6681.yaml syntax issues.
>   - modify log printing in all modules.
You just sent it today and immediately sent (20 minutes later) v2 with
so many changes?

Give people chance to review. One big patchset every few days.

Best regards,
Krzysztof
Re: [PATCH v2 00/11] ASoC: mediatek: Add support for MT8196 SoC
Posted by Darren Ye (叶飞) 10 months ago
I am so sorry, the first lost v2 mark was sent yesterday, please review
the v2 version directly, thanks.

Best regards,
Darren Ye

On Mon, 2025-04-07 at 15:04 +0200, Krzysztof Kozlowski wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 07/04/2025 14:06, Darren.Ye wrote:
> > From: Darren Ye <darren.ye@mediatek.com>
> > 
> > This series of patches adds support for Mediatek AFE of MT8196 SoC.
> > Patches are based on broonie tree "for-next" branch.
> > 
> > Changes since v1:
> >   - modify mtk_memif_set_channel and mtk_afe_pcm_pointer interfaces
> >     are improved to support mt8196.
> >   - remove duplicate definitions in the mt8196 common header file.
> >   - cm logic is merge into the afe platform driver.
> >   - modify afe clk to return judgment logic and remove useless clk
> > sources.
> >   - refactor the mt8196 adda dai driver.
> >   - remove the gpio module and use SND_SOC_DAPM_PINCTRL to manage
> > it.
> >   - removes CONNSYS_I2S related functions that are not supported in
> > i2s dai driver.
> >   - fixed mt8196-afe.yaml and mt8196-mt6681.yaml syntax issues.
> >   - modify log printing in all modules.
> 
> You just sent it today and immediately sent (20 minutes later) v2
> with
> so many changes?
> 
> Give people chance to review. One big patchset every few days.
> 
> Best regards,
> Krzysztof