Skip to content

ASoC: amd: ps: add SoundWire support

Vijendar Mukunda alsa-devel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 15 repliesIn review
  2. v39 patches 14 repliesSuperseded
  3. v29 patches 25 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches10 repliesSuperseded

Changes in v4 from the cover letter

- use pdev_config instead of pdev_mask in the code.
- define platform device configuration macros rather than enums
- add comments for MIPI DisCo version
- refactor SoundWire DMA start/stop sequence using single function
- refactor "acp_reset" flag related functionality.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ASoC: amd: ps: create platform devices based on acp configsound/soc/amd/ps/acp63.h sound/soc/amd/ps/pci-ps.c+323 -213 replies
2/9ASoC: amd: ps: handle SoundWire interrupts in acp pci driversound/soc/amd/ps/acp63.h sound/soc/amd/ps/pci-ps.c+46 -50 replies
3/9ASoC: amd: ps: add SoundWire dma driversound/soc/amd/ps/acp63.h sound/soc/amd/ps/ps-sdw-dma.c+75 -00 replies
4/9ASoC: amd: ps: add SoundWire dma driver dma opssound/soc/amd/ps/acp63.h sound/soc/amd/ps/ps-sdw-dma.c+464 -08 replies
5/9ASoC: amd: ps: add support for SoundWire DMA interruptssound/soc/amd/ps/acp63.h sound/soc/amd/ps/pci-ps.c+98 -20 replies
6/9ASoC: amd: ps: add pm ops support for SoundWire dma driversound/soc/amd/ps/ps-sdw-dma.c+96 -20 replies
7/9ASoC: amd: ps: enable SoundWire dma driver buildsound/soc/amd/ps/Makefile+2 -00 replies
8/9ASoC: amd: update comments in Kconfig filesound/soc/amd/Kconfig+2 -10 replies
9/9ASoC: amd: ps: add acp_reset flag check in acp pci driver pm ops.sound/soc/amd/ps/pci-ps.c+12 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/9] ASoC: amd: ps: add SoundWire support

This patch series add support for
- Platform device creation for SoundWire Manager instances and PDM controller.
- SoundWire DMA driver.
- Interrupt handling for SoundWire manager related interrupts, SoundWire DMA interrupts and ACP error interrupts.
- ACP PCI driver PM ops modification with respect to SoundWire Power modes.

Changes since v3:
- use pdev_config instead of pdev_mask in the code.
- define platform device configuration macros rather than enums
- add comments for MIPI DisCo version
- refactor SoundWire DMA start/stop sequence using single function
- refactor "acp_reset" flag related functionality.

Changes since v2:
- add comments in irq handler.
- remove workqueue for SoundWire DMA interrupts and use thread implementation for DMA interrupt handling.
- add error checks in sdw_amd_scan_controller()
- remove passing "acp_lock" as platform resource for SoundWire DMA driver and PDM driver.
- retrieve "acp_lock" reference from parent driver directly and use the reference in SoundWire DMA driver.
- add handling for acp pci driver probe even when no ACP PDM or SoundWire manager platform devices created.
- Fix indentation for acp_sdw_dma_count structure variables.
- Use macro instead of hard coded values for FIFO offset and PTE offset.
- Change pm_runtime enable sequence in SoundWire DMA driver probe function.
- Refactor system level resume callback in SoundWire DMA

Changes since v1:
- update "soundwire" as "SoundWire" in code.
- add comments for platform device mask and platform device count
- remove unused variables in acp pci driver private data structure
- refactor dma enable register structures in SoundWire DMA driver
- add TODO comments in IRQ handler
- update IRQ mask values using bit macros
- Fix build error reported in Makefile
- rename "sdw_dma_stream_instance" structure name as "acp_sdw_dma_stream"

Vijendar Mukunda (9):
ASoC: amd: ps: create platform devices based on acp config
ASoC: amd: ps: handle SoundWire interrupts in acp pci driver
ASoC: amd: ps: add SoundWire dma driver
ASoC: amd: ps: add SoundWire dma driver dma ops
ASoC: amd: ps: add support for SoundWire DMA interrupts
ASoC: amd: ps: add pm ops support for SoundWire dma driver
ASoC: amd: ps: enable SoundWire dma driver build
ASoC: amd: update comments in Kconfig file
ASoC: amd: ps: add acp_reset flag check in acp pci driver pm ops.

 sound/soc/amd/Kconfig         |   3 +-
 sound/soc/amd/ps/Makefile     |   2 +
 sound/soc/amd/ps/acp63.h      | 172 ++++++++++-
 sound/soc/amd/ps/pci-ps.c     | 419 +++++++++++++++++++++++--
 sound/soc/amd/ps/ps-sdw-dma.c | 555 ++++++++++++++++++++++++++++++++++
 5 files changed, 1115 insertions(+), 36 deletions(-)
 create mode 100644 sound/soc/amd/ps/ps-sdw-dma.c
Signature · 1 line
2.34.1