[PATCH v6 0/5] ASoC: Add support for Airoha AN7581

Christian Marangi posted 5 patches 2 weeks, 3 days ago
.../bindings/sound/airoha,an7581-afe.yaml     |  41 ++
.../bindings/sound/airoha,an7581-wm8960.yaml  |  71 +++
MAINTAINERS                                   |   8 +
sound/soc/mediatek/Kconfig                    |  27 +-
sound/soc/mediatek/Makefile                   |   1 +
sound/soc/mediatek/an7581/Makefile            |   9 +
sound/soc/mediatek/an7581/an7581-afe-common.h |  49 ++
sound/soc/mediatek/an7581/an7581-afe-pcm.c    | 515 ++++++++++++++++++
sound/soc/mediatek/an7581/an7581-dai-etdm.c   | 433 +++++++++++++++
sound/soc/mediatek/an7581/an7581-reg.h        | 114 ++++
sound/soc/mediatek/an7581/an7581-wm8960.c     | 161 ++++++
sound/soc/mediatek/common/mtk-afe-fe-dai.c    |  14 +-
sound/soc/mediatek/common/mtk-base-afe.h      |   2 +
13 files changed, 1439 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml
create mode 100644 sound/soc/mediatek/an7581/Makefile
create mode 100644 sound/soc/mediatek/an7581/an7581-afe-common.h
create mode 100644 sound/soc/mediatek/an7581/an7581-afe-pcm.c
create mode 100644 sound/soc/mediatek/an7581/an7581-dai-etdm.c
create mode 100644 sound/soc/mediatek/an7581/an7581-reg.h
create mode 100644 sound/soc/mediatek/an7581/an7581-wm8960.c
[PATCH v6 0/5] ASoC: Add support for Airoha AN7581
Posted by Christian Marangi 2 weeks, 3 days ago
Add all the patch and documentation to support Airoha AN7581
sound driver.

The card follows similar implementation with Mediatek with
the codec present on i2c but with a simplified implementation
register wise and additional frequency supported.

Changes v6:
- Fix PCM probe allocation logic
- Split driver patch to dedicated PCM/ETDM patch and machine driver
Changes v5:
- Address comments from bot
- Better handle concurrent irq status bit
- Protect enable etdm
- Add Review tag for documentation patch
- Address formal comments from Cezary
Changes v4:
- Improve Documentation YAML
- Move IRQ regmap to mtk_base_afe_irq
- Use mutex for user tracking in ETDM
- Register IRQ after memif allocation
- Address suggestion from bot
Changes v3:
- Major fix to the ETDM code
- Add duplex support
- Improve Kconfig setup
- Rework and improve YAML schema
Changes v2:
- Fix wrong edit in MAINTAINERS file

Christian Marangi (5):
  ASoC: dt-bindings: Add Airoha AN7581 AFE Sound card
  ASoC: dt-bindings: Add Airoha AN7581 AFE with WM8960 Codec schema
  ASoC: mediatek: common: permit to provide dedicated regmap for irq
  ASoC: airoha: Add AFE driver for Airoha AN7581
  ASoC: airoha: Add machine driver for Airoha AN7581

 .../bindings/sound/airoha,an7581-afe.yaml     |  41 ++
 .../bindings/sound/airoha,an7581-wm8960.yaml  |  71 +++
 MAINTAINERS                                   |   8 +
 sound/soc/mediatek/Kconfig                    |  27 +-
 sound/soc/mediatek/Makefile                   |   1 +
 sound/soc/mediatek/an7581/Makefile            |   9 +
 sound/soc/mediatek/an7581/an7581-afe-common.h |  49 ++
 sound/soc/mediatek/an7581/an7581-afe-pcm.c    | 515 ++++++++++++++++++
 sound/soc/mediatek/an7581/an7581-dai-etdm.c   | 433 +++++++++++++++
 sound/soc/mediatek/an7581/an7581-reg.h        | 114 ++++
 sound/soc/mediatek/an7581/an7581-wm8960.c     | 161 ++++++
 sound/soc/mediatek/common/mtk-afe-fe-dai.c    |  14 +-
 sound/soc/mediatek/common/mtk-base-afe.h      |   2 +
 13 files changed, 1439 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-afe.yaml
 create mode 100644 Documentation/devicetree/bindings/sound/airoha,an7581-wm8960.yaml
 create mode 100644 sound/soc/mediatek/an7581/Makefile
 create mode 100644 sound/soc/mediatek/an7581/an7581-afe-common.h
 create mode 100644 sound/soc/mediatek/an7581/an7581-afe-pcm.c
 create mode 100644 sound/soc/mediatek/an7581/an7581-dai-etdm.c
 create mode 100644 sound/soc/mediatek/an7581/an7581-reg.h
 create mode 100644 sound/soc/mediatek/an7581/an7581-wm8960.c

-- 
2.53.0
Re: [PATCH v6 0/5] ASoC: Add support for Airoha AN7581
Posted by Mark Brown 6 days, 23 hours ago
On Tue, 08 Sep 2026 11:04:42 +0200, Christian Marangi wrote:
> ASoC: Add support for Airoha AN7581
> 
> Add all the patch and documentation to support Airoha AN7581
> sound driver.
> 
> The card follows similar implementation with Mediatek with
> the codec present on i2c but with a simplified implementation
> register wise and additional frequency supported.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4

Thanks!

[1/5] ASoC: dt-bindings: Add Airoha AN7581 AFE Sound card
      https://git.kernel.org/broonie/sound/c/78da571393da
[2/5] ASoC: dt-bindings: Add Airoha AN7581 AFE with WM8960 Codec schema
      https://git.kernel.org/broonie/sound/c/8fcf0497e6da
[3/5] ASoC: mediatek: common: permit to provide dedicated regmap for irq
      https://git.kernel.org/broonie/sound/c/b49799e40313
[4/5] ASoC: airoha: Add AFE driver for Airoha AN7581
      https://git.kernel.org/broonie/sound/c/4974ffa0d6c2
[5/5] ASoC: airoha: Add machine driver for Airoha AN7581
      https://git.kernel.org/broonie/sound/c/272d6e51bc1f

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark