Skip to contentSkip to conversation

ASoC: AMD: add AMD ASoC ACP-I2S driver

PATCH New Alex Deucher 1 participant 1 message Aug 20, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 ASoC: AMD: add AMD ASoC ACP-I2S driver

From: Maruthi Srinivas Bayyavarapu <[email protected]>

ACP IP block consists of dedicated DMA and I2S blocks. The PCM driver provides the DMA and CPU DAI components to ALSA core.

---

v2:
- squash in Kconfig fix
v3:
- squash in the following patches:
ASoC: AMD: add suspend/resume for ACP PCM driver
ASoC: AMD: add ACP PCM driver runtime PM
- Keep the Makefile sorted
- Fix the Kconfig whitespace
- drop RT286 changes to rework it using ACPI as a separate patch. The gpio stuff we need to handle this with ACPI was not added to the kernel until 4.2. This patch was originally developed much earlier.
- put headers in include
- remove static structure initialization
- fix component name
- remove casts from void
- fix handling of combinations of play_intr and capture_intr
- fix coding style with {}
- switch to dev_ prints
- remove substream checks handled by subsystem
- fix whitespace in comments
- pass return code directly on error from acp_dev->dma_start
- drop references to designware
- fix codeing style (STATUS_SUCCESS)
- drop left over debugging messages
- drop stuff that is already set in the dai_link
- convert from using the amd_gnb_bus to an mfd cell
v4:
- change MODULE_ALIAS to platform:acp-i2s-audio
v5:
- failed attempt at a patch revision changelog
v6:
- respin the patch with a proper patch change log

The module licensing follows the model used in the drm drivers. AMD prefers to contribute code under an MIT/X11 license. IANAL, but "GPL and additional rights" as the MODULE_LICENSE seems to be compatible with that and is exactly what most of the drm drivers do.

 sound/soc/Kconfig           |   1 +
 sound/soc/Makefile          |   1 +
 sound/soc/amd/Kconfig       |   5 +
 sound/soc/amd/Makefile      |   3 +
 sound/soc/amd/acp-pcm-dma.c | 676 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 686 insertions(+)
 create mode 100644 sound/soc/amd/Kconfig
 create mode 100644 sound/soc/amd/Makefile
 create mode 100644 sound/soc/amd/acp-pcm-dma.c
sound/soc/Kconfig +1 -0
index 2ae9619..1b9ce31 100644
@@ -32,6 +32,7 @@ config SND_SOC_GENERIC_DMAENGINE_PCM
 
 # All the supported SoCs
 source "sound/soc/adi/Kconfig"
+source "sound/soc/amd/Kconfig"
 source "sound/soc/atmel/Kconfig"
 source "sound/soc/au1x/Kconfig"
 source "sound/soc/bcm/Kconfig"
sound/soc/Makefile +1 -0
index e189903..a6cbb99 100644
@@ -14,6 +14,7 @@ obj-$(CONFIG_SND_SOC)	+= snd-soc-core.o
 obj-$(CONFIG_SND_SOC)	+= codecs/
 obj-$(CONFIG_SND_SOC)	+= generic/
 obj-$(CONFIG_SND_SOC)	+= adi/
+obj-$(CONFIG_SND_SOC)	+= amd/
 obj-$(CONFIG_SND_SOC)	+= atmel/
 obj-$(CONFIG_SND_SOC)	+= au1x/
 obj-$(CONFIG_SND_SOC)	+= bcm/
sound/soc/amd/Kconfig new file +5 -0
new file mode 100644
index 0000000..ce39979
@@ -0,0 +1,5 @@
+config SND_SOC_AMD_ACP
+	tristate "AMD Audio Coprocessor support"
+	depends on MFD_CORE
+	help
+	 This option enables ACP support (DMA,I2S) on AMD platforms.
sound/soc/amd/Makefile new file +3 -0
new file mode 100644
index 0000000..1a66ec0
@@ -0,0 +1,3 @@
+snd-soc-acp-pcm-objs	:= acp-pcm-dma.o
+
+obj-$(CONFIG_SND_SOC_AMD_ACP) += snd-soc-acp-pcm.o
sound/soc/amd/acp-pcm-dma.c new file +676 -0

676 lines not on this page · raw message

Signature · 6 lines
1.8.3.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel