[PATCH v2] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver

2021-04-08 Thread Vijendar Mukunda
Add ALC1015p codec support for acp3x machine driver. Signed-off-by: Vijendar Mukunda --- v1 -> v2: update ACPI HID as "10021015" for AMD platform with RT1015p support sound/soc/amd/Kconfig| 1 + sound/soc/amd/acp3x-rt5682-max9836.c | 46 ++

[PATCH] ASoC: amd: Add support for ALC1015P codec in acp3x machine driver

2021-03-30 Thread Vijendar Mukunda
Add ALC1015p codec support for acp3x machine driver. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig| 1 + sound/soc/amd/acp3x-rt5682-max9836.c | 46 +++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd

[PATCH 2/2] ASoC: amd: fix acpi dependency kernel warning

2021-03-26 Thread Vijendar Mukunda
-by: Stephen Rothwell Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index 43f5d29..256c192 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -11,7 +11,7

[PATCH RESEND 1/2] ASoC: amd: update spdx license for acp machine driver

2021-03-26 Thread Vijendar Mukunda
update SPDX license for acp machine driver. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219-max98357a.c | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c

[PATCH v1 2/2] ASoC: amd: update spdx license for acp machine driver

2021-03-18 Thread Vijendar Mukunda
update SPDX license for acp machine driver. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219-max98357a.c | 29 + 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c

[PATCH v5 1/2] ASoC: amd: Add support for RT5682 codec in machine driver

2021-03-18 Thread Vijendar Mukunda
Add support for RT5682 codec in machine driver. Signed-off-by: Vijendar Mukunda --- v4->v5:add checks for clk_set_rate() API return value fixed multiple definition error for acp_soc_is_rltk_max() API v3->v4: fixed clk_prepare_enable() for wclk instead of bclk v2->v3: updated SPDX licen

[PATCH v1 2/2] ASoC: amd: fix multiple definition error

2021-03-17 Thread Vijendar Mukunda
make W=1 ARCH=x86_64 error: acp3x-rt5682-max9836.c:(.text+0x840): multiple definition of `soc_is_rltk_max'; sound/soc/amd/acp-da7219-max98357a.o:acp-da7219-max98357a.c: (.text+0xd00):first defined here Reported-by: kernel test robot Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219

[PATCH v4 1/2] ASoC: amd: Add support for RT5682 codec in machine driver

2021-03-17 Thread Vijendar Mukunda
Add support for RT5682 codec in machine driver. Signed-off-by: Vijendar Mukunda --- v3->v4: fixed clk_prepare_enable() for wclk instead of bclk v2->v3: updated SPDX license v1->v2: updated kconfig, spdx license, removed unnecessary initialization and updated comment sound/soc/am

[PATCH v3] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-15 Thread Vijendar Mukunda
Add support for RT5682 codec in machine driver. Signed-off-by: Vijendar Mukunda --- v2->v3: updated SPDX license v1->v2: updated kconfig, spdx license, removed unnecessary initialization and updated comment sound/soc/amd/Kconfig| 5 +- sound/soc/amd/acp-da7219-max98

[PATCH v2] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-12 Thread Vijendar Mukunda
Add support for RT5682 codec in machine driver. Signed-off-by: Vijendar Mukunda --- v1->v2 : updated kconfig, spdx license, removed unnecessary initialization and updated comment sound/soc/amd/Kconfig| 5 +- sound/soc/amd/acp-da7219-max98357a.c |

[PATCH] ASoC: amd: add support for rt5682 codec in machine driver

2021-03-09 Thread Vijendar Mukunda
Add support for RT5682 codec in machine driver. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig| 5 +- sound/soc/amd/acp-da7219-max98357a.c | 353 +-- 2 files changed, 339 insertions(+), 19 deletions(-) diff --git a/sound/soc/amd

[PATCH] ASoC: amd: support other audio modes for raven

2020-10-23 Thread Vijendar Mukunda
ACP supports different audio configurations other than I2S. This patch will fix acp driver probe failure for other audio configurations. Tested-by: Prike Liang Reviewed-by: Prike Liang Acked-by: Alex Deucher Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/pci-acp3x.c | 4 +--- 1 file

[PATCH] ASoC: amd: fixed kernel warnings

2020-07-07 Thread Vijendar Mukunda
This patch will fix unused variables kernel warnings when CONFIG_ACPI is disabled. Reported-by: Randy Dunlap Signed-off-by: Vijendar Mukunda --- sound/soc/amd/renoir/rn-pci-acp3x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir

[PATCH] ASoC: amd: add ACPI dependency check

2020-07-07 Thread Vijendar Mukunda
Add ACPI dependency for evaluating DMIC hardware runtime. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/renoir/rn-pci-acp3x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c index d1faea5..165c93f 100644

[RESEND PATCH V3] ASoC: amd: add logic to check dmic hardware runtime

2020-07-02 Thread Vijendar Mukunda
Add logic to check DMIC hardware exists or not on the platform at runtime. Add module param for overriding DMIC hardware check at runtime. Signed-off-by: Vijendar Mukunda --- v3: changed dmic_acpi_check module param as bint v2: changed module param usage -1 as default, 0 - skip, 1 - force

[PATCH 2/2] ASoC: amd: acp3x: use dma address for acp3x dma driver

2019-08-02 Thread Vijendar Mukunda
different from CPU physical address when AMD IOMMU is not in passthrough mode. This patch fixes page faults when IOMMU is enabled. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sound/soc/amd

[PATCH 1/2] ASoC: amd: acp3x: use dma_ops of parent device for acp3x dma driver

2019-08-02 Thread Vijendar Mukunda
to non passthrough mode. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index a4ade6b..905ed2f 100644 --- a/sound/soc/amd/raven

[PATCH] ASoC: amd: Reporting accurate hw_ptr for acp3x dma

2019-05-09 Thread Vijendar Mukunda
From: Ravulapati Vishnu vardhan rao acp3x dma pointer callback has issues in reporting hw_ptr. Modified logic to use linear position registers to retrieve accurate hw_ptr. Signed-off-by: Ravulapati Vishnu vardhan rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c

[PATCH 2/2] ASoC: amd: Switch to SPDX identifier

2018-11-15 Thread Vijendar Mukunda
Adopt the SPDX license identifier headers to ease license compliance management. Reviewed-by: Alex Deucher Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/Makefile | 2 ++ sound/soc/amd/raven/acp3x-pcm-dma.c| 19 +-- sound/soc/amd/raven/acp3x.h

[PATCH 2/2] ASoC: amd: Switch to SPDX identifier

2018-11-15 Thread Vijendar Mukunda
Adopt the SPDX license identifier headers to ease license compliance management. Reviewed-by: Alex Deucher Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/Makefile | 2 ++ sound/soc/amd/raven/acp3x-pcm-dma.c| 19 +-- sound/soc/amd/raven/acp3x.h

[PATCH 1/2] ASoC: amd: Fixed build errors

2018-11-15 Thread Vijendar Mukunda
Fixed build errors. - Implicit declaration of pci_enable_msi() & pci_disable_msi() api's for openrisc architecture. - type defaults to 'int' in declaration of 'module_pci_driver' Enabled build for x86 architecture. Reviewed-by: Alex Deucher Signed-off-by: Vijendar Mukunda Tested-by: Ravula

[PATCH 1/2] ASoC: amd: Fixed build errors

2018-11-15 Thread Vijendar Mukunda
Fixed build errors. - Implicit declaration of pci_enable_msi() & pci_disable_msi() api's for openrisc architecture. - type defaults to 'int' in declaration of 'module_pci_driver' Enabled build for x86 architecture. Reviewed-by: Alex Deucher Signed-off-by: Vijendar Mukunda Tested-by: Ravula

[PATCH 09/11] ASoC: amd: add acp3x runtime pm ops

2018-11-11 Thread Vijendar Mukunda
Added runtime PM operations for ACP3x PCM platform device. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 39 + 1 file changed, 39 insertions(+) diff

[PATCH 09/11] ASoC: amd: add acp3x runtime pm ops

2018-11-11 Thread Vijendar Mukunda
Added runtime PM operations for ACP3x PCM platform device. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 39 + 1 file changed, 39 insertions(+) diff

[PATCH 11/11] ASoC: amd: enable acp3x drivers build

2018-11-11 Thread Vijendar Mukunda
ACP3x drivers can be built by selecting necessary kernel config option. The patch enables build support of the same. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig| 5 + sound/soc/amd/Makefile

[PATCH 11/11] ASoC: amd: enable acp3x drivers build

2018-11-11 Thread Vijendar Mukunda
ACP3x drivers can be built by selecting necessary kernel config option. The patch enables build support of the same. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/Kconfig| 5 + sound/soc/amd/Makefile

[PATCH 10/11] ASoC: amd: add acp3x system resume pm op

2018-11-11 Thread Vijendar Mukunda
When system wide suspend happens, ACP will be powered off. When system resumes, all the runtime configuration data for ACP needs to be programmed again. Added 'resume'pm call back to ACP pm ops. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar

[PATCH 08/11] ASoC: amd: add acp3x tdm mode support

2018-11-11 Thread Vijendar Mukunda
ACP3x I2S (CPU DAI) can act in normal I2S and TDM modes. Added support for TDM mode. Desired mode can be selected from ASoC machine driver. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 62

[PATCH 05/11] ASoC: amd: Interrupt handler changes for ACP3x DMA driver

2018-11-11 Thread Vijendar Mukunda
Whenever audio data equal to the I2S FIFO watermark level are produced/consumed, interrupt is generated. Acknowledge the interrupt. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 46

[PATCH 07/11] ASoC: amd: add acp3x i2s ops

2018-11-11 Thread Vijendar Mukunda
ACP3x has a i2s controller block for playback and capture. This patch adds ACP3x i2s DAI operations. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 89

[PATCH 10/11] ASoC: amd: add acp3x system resume pm op

2018-11-11 Thread Vijendar Mukunda
When system wide suspend happens, ACP will be powered off. When system resumes, all the runtime configuration data for ACP needs to be programmed again. Added 'resume'pm call back to ACP pm ops. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar

[PATCH 08/11] ASoC: amd: add acp3x tdm mode support

2018-11-11 Thread Vijendar Mukunda
ACP3x I2S (CPU DAI) can act in normal I2S and TDM modes. Added support for TDM mode. Desired mode can be selected from ASoC machine driver. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 62

[PATCH 05/11] ASoC: amd: Interrupt handler changes for ACP3x DMA driver

2018-11-11 Thread Vijendar Mukunda
Whenever audio data equal to the I2S FIFO watermark level are produced/consumed, interrupt is generated. Acknowledge the interrupt. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 46

[PATCH 07/11] ASoC: amd: add acp3x i2s ops

2018-11-11 Thread Vijendar Mukunda
ACP3x has a i2s controller block for playback and capture. This patch adds ACP3x i2s DAI operations. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm-dma.c | 89

[PATCH 06/11] ASoC: amd: add acp3x pcm driver dma ops

2018-11-11 Thread Vijendar Mukunda
ACP3x has a DMA controller to access system memory. This controller transfers data from/to system memory to/from the ACP internal FIFO. The patch adds PCM driver DMA operations. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda

[PATCH 06/11] ASoC: amd: add acp3x pcm driver dma ops

2018-11-11 Thread Vijendar Mukunda
ACP3x has a DMA controller to access system memory. This controller transfers data from/to system memory to/from the ACP internal FIFO. The patch adds PCM driver DMA operations. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda

[PATCH 03/11] ASoC: amd: create ACP3x PCM platform device

2018-11-11 Thread Vijendar Mukunda
-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x.h | 4 +++ sound/soc/amd/raven/pci-acp3x.c | 70 - 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h index e9b4df0..83b1ed8 100644

[PATCH 03/11] ASoC: amd: create ACP3x PCM platform device

2018-11-11 Thread Vijendar Mukunda
-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x.h | 4 +++ sound/soc/amd/raven/pci-acp3x.c | 70 - 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h index e9b4df0..83b1ed8 100644

[PATCH 04/11] ASoC: amd: add ACP3x PCM platform driver

2018-11-11 Thread Vijendar Mukunda
PCM platform driver binds to the platform device created by ACP3x PCI device. PCM driver registers ALSA DMA and CPU DAI components with ASoC framework. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm

[PATCH 04/11] ASoC: amd: add ACP3x PCM platform driver

2018-11-11 Thread Vijendar Mukunda
PCM platform driver binds to the platform device created by ACP3x PCI device. PCM driver registers ALSA DMA and CPU DAI components with ASoC framework. Signed-off-by: Maruthi Bayyavarapu Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-pcm

[PATCH 02/11] ASoC: AMD: add ACP3.0 PCI driver

2018-11-11 Thread Vijendar Mukunda
From: Maruthi Srinivas Bayyavarapu ACP 3.0 is a PCI audio device. This patch adds PCI driver to bind to this device and get PCI resources. Signed-off-by: Maruthi Bayyavarapu Signed-off-by: Sanju R Mehta Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc

[PATCH 02/11] ASoC: AMD: add ACP3.0 PCI driver

2018-11-11 Thread Vijendar Mukunda
From: Maruthi Srinivas Bayyavarapu ACP 3.0 is a PCI audio device. This patch adds PCI driver to bind to this device and get PCI resources. Signed-off-by: Maruthi Bayyavarapu Signed-off-by: Sanju R Mehta Tested-by: Ravulapati Vishnu vardhan Rao Signed-off-by: Vijendar Mukunda --- sound/soc

[PATCH 01/11] ASoC: AMD: add ACP 3.x IP register header

2018-11-11 Thread Vijendar Mukunda
From: Maruthi Srinivas Bayyavarapu ACP 3.x is a new audio block in raven. Added register header of the same. Signed-off-by: Maruthi Bayyavarapu Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/chip_offset_byte.h | 655 + 1 file changed, 655 insertions

[PATCH 01/11] ASoC: AMD: add ACP 3.x IP register header

2018-11-11 Thread Vijendar Mukunda
From: Maruthi Srinivas Bayyavarapu ACP 3.x is a new audio block in raven. Added register header of the same. Signed-off-by: Maruthi Bayyavarapu Signed-off-by: Vijendar Mukunda --- sound/soc/amd/raven/chip_offset_byte.h | 655 + 1 file changed, 655 insertions

[PATCH V3] ASoC: amd: modified dma pointer callback implementation

2018-05-15 Thread Vijendar Mukunda
channel for both controller instances. Invoked snd_pcm_period_elapsed() call when IOC is reported for System memory to ACP SRAM DMA channel. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> --- v1->v2: removed hard coded va

[PATCH V3] ASoC: amd: modified dma pointer callback implementation

2018-05-15 Thread Vijendar Mukunda
channel for both controller instances. Invoked snd_pcm_period_elapsed() call when IOC is reported for System memory to ACP SRAM DMA channel. Signed-off-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- v1->v2: removed hard coded values in acp dma pointer callback declared dma varaib

[PATCH V2] ASoC: amd: modified dma pointer callback implementation

2018-05-14 Thread Vijendar Mukunda
to System Memory Dma channel. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- v1->v2: removed hard coded values in acp dma pointer callback declared dma varaibles in rtd structure sound/soc/amd/acp-pcm-dma.c | 66 +++-- sound/soc/

[PATCH V2] ASoC: amd: modified dma pointer callback implementation

2018-05-14 Thread Vijendar Mukunda
to System Memory Dma channel. Signed-off-by: Vijendar Mukunda --- v1->v2: removed hard coded values in acp dma pointer callback declared dma varaibles in rtd structure sound/soc/amd/acp-pcm-dma.c | 66 +++-- sound/soc/amd/acp.h |

[PATCH] ASoC: amd: modified dma pointer callback implementation

2018-05-10 Thread Vijendar Mukunda
to System Memory Dma channel. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- This patch is dependent on [V4,10/10] ASoC: amd: dma driver changes for bt i2s instance https://patchwork.kernel.org/patch/10385381/ sound/soc/amd/acp-pcm-dma.

[PATCH] ASoC: amd: modified dma pointer callback implementation

2018-05-10 Thread Vijendar Mukunda
to System Memory Dma channel. Signed-off-by: Vijendar Mukunda --- This patch is dependent on [V4,10/10] ASoC: amd: dma driver changes for bt i2s instance https://patchwork.kernel.org/patch/10385381/ sound/soc/amd/acp-pcm-dma.c | 94 ++--- sound/soc/amd/acp.h

[PATCH V4 10/10] ASoC: amd: dma driver changes for bt i2s instance

2018-05-07 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Re

[PATCH V4 10/10] ASoC: amd: dma driver changes for bt i2s instance

2018-05-07 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1

[PATCH 09/10] ASoC: AMD: Add const to snd_soc_ops instances

2018-05-07 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- sound/soc/amd/acp-da7219-m

[PATCH 08/10] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-05-07 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.

[PATCH 09/10] ASoC: AMD: Add const to snd_soc_ops instances

2018-05-07 Thread Vijendar Mukunda
From: Akshu Agrawal Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp-da7219

[PATCH 08/10] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-05-07 Thread Vijendar Mukunda
From: Akshu Agrawal System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 5

[PATCH 07/10] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-05-07 Thread Vijendar Mukunda
; Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- sound/soc/amd/acp-da7219-max98357a.c | 49 +--- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357

[PATCH 07/10] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-05-07 Thread Vijendar Mukunda
From: Akshu Agrawal hw_param can be called multiple times and thus we can have more clk enable. The clk may not get diabled due to refcounting. startup/shutdown ensures single clk enable/disable call. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz

[PATCH 06/10] ASoC: amd: memory release for rtd structure

2018-05-07 Thread Vijendar Mukunda
rtd structure freed early may result in kernel panic in dma close call back. moved releasing memory for rtd structure to the end of dma close callback. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- sound/soc/amd/acp-p

[PATCH 06/10] ASoC: amd: memory release for rtd structure

2018-05-07 Thread Vijendar Mukunda
rtd structure freed early may result in kernel panic in dma close call back. moved releasing memory for rtd structure to the end of dma close callback. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-pcm-dma.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 05/10] ASoC: amd: sram bank update changes

2018-05-07 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++---

[PATCH 05/10] ASoC: amd: sram bank update changes

2018-05-07 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git

[PATCH V2 04/10] ASoC: amd: pte offset related dma driver changes

2018-05-07 Thread Vijendar Mukunda
for audio buffer. Depending upon allocated audio buffer size, PTE offset values will change. Compared to CZ, Stoney has SRAM memory limitation i.e 48k It is required to define separate PTE Offset macros for Stoney. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel

[PATCH V2 04/10] ASoC: amd: pte offset related dma driver changes

2018-05-07 Thread Vijendar Mukunda
for audio buffer. Depending upon allocated audio buffer size, PTE offset values will change. Compared to CZ, Stoney has SRAM memory limitation i.e 48k It is required to define separate PTE Offset macros for Stoney. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Modif

[PATCH V2 03/10] ASoC: amd: removed separate byte count variables for playback and capture

2018-05-07 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- v1->v2: Fixed review comment in acp_dma_pointer callback sound/soc/amd/acp-pcm-dma.c | 19 +--

[PATCH V2 03/10] ASoC: amd: removed separate byte count variables for playback and capture

2018-05-07 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Fixed review comment in acp_dma_pointer callback sound/soc/amd/acp-pcm-dma.c | 19 +-- sound/soc/amd/acp.h | 3 +-- 2 files changed

[PATCH V2 02/10] ASoC: amd: added byte count register offset variables to rtd

2018-05-07 Thread Vijendar Mukunda
Added byte count register offset variables to audio_substream_data structure. Modified dma pointer callback. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- v1->v2: Fixed Indentation issues sound/soc/amd/acp

[PATCH V2 02/10] ASoC: amd: added byte count register offset variables to rtd

2018-05-07 Thread Vijendar Mukunda
Added byte count register offset variables to audio_substream_data structure. Modified dma pointer callback. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Fixed Indentation issues sound/soc/amd/acp-pcm-dma.c | 36 +++- sound/soc/amd/ac

[PATCH V2 01/10] ASoC: amd: dma config parameters changes

2018-05-07 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters initialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.or

[PATCH V2 01/10] ASoC: amd: dma config parameters changes

2018-05-07 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters initialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2 : Fixed capture stream wrong chan

[PATCH 09/10] ASoC: AMD: Add const to snd_soc_ops instances

2018-05-01 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- sound/soc/amd/acp-da7219-m

[PATCH 09/10] ASoC: AMD: Add const to snd_soc_ops instances

2018-05-01 Thread Vijendar Mukunda
From: Akshu Agrawal Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp-da7219

[PATCH V3 10/10] ASoC: amd: dma driver changes for bt i2s instance

2018-05-01 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> ---

[PATCH V3 10/10] ASoC: amd: dma driver changes for bt i2s instance

2018-05-01 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda --- v1->v2: defined i2s insta

[PATCH 08/10] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-05-01 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.

[PATCH 08/10] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-05-01 Thread Vijendar Mukunda
From: Akshu Agrawal System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 5

[PATCH 07/10] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-05-01 Thread Vijendar Mukunda
; Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 49 +--- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 215b0

[PATCH 07/10] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-05-01 Thread Vijendar Mukunda
From: Akshu Agrawal hw_param can be called multiple times and thus we can have more clk enable. The clk may not get diabled due to refcounting. startup/shutdown ensures single clk enable/disable call. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219

[PATCH 06/10] ASoC: amd: memory release for rtd structure

2018-05-01 Thread Vijendar Mukunda
rtd structure freed early may result in kernel panic in dma close call back. moved releasing memory for rtd structure to the end of dma close callback. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 del

[PATCH 06/10] ASoC: amd: memory release for rtd structure

2018-05-01 Thread Vijendar Mukunda
rtd structure freed early may result in kernel panic in dma close call back. moved releasing memory for rtd structure to the end of dma close callback. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound

[PATCH 05/10] ASoC: amd: sram bank update changes

2018-05-01 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff

[PATCH 05/10] ASoC: amd: sram bank update changes

2018-05-01 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/sound/soc/amd/acp-pcm

[PATCH V2 04/10] ASoC: amd: pte offset related dma driver changes

2018-05-01 Thread Vijendar Mukunda
for audio buffer. Depending upon allocated audio buffer size, PTE offset values will change. Compared to CZ, Stoney has SRAM memory limitation i.e 48k It is required to define separate PTE Offset macros for Stoney. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- v1->v2:

[PATCH V2 04/10] ASoC: amd: pte offset related dma driver changes

2018-05-01 Thread Vijendar Mukunda
for audio buffer. Depending upon allocated audio buffer size, PTE offset values will change. Compared to CZ, Stoney has SRAM memory limitation i.e 48k It is required to define separate PTE Offset macros for Stoney. Signed-off-by: Vijendar Mukunda --- v1->v2: Modified commit message sound/soc/

[PATCH V2 03/10] ASoC: amd: removed separate byte count variables for playback and capture

2018-05-01 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- v1->v2: Fixed review comment in acp_dma_pointer callback sound/soc/amd/acp-pcm-dma.c | 19 +--

[PATCH V2 03/10] ASoC: amd: removed separate byte count variables for playback and capture

2018-05-01 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Fixed review comment in acp_dma_pointer callback sound/soc/amd/acp-pcm-dma.c | 19 +-- sound/soc/amd/acp.h | 3 +-- 2 files changed

[PATCH V2 02/10] ASoC: amd: added byte count register offset variables to rtd

2018-05-01 Thread Vijendar Mukunda
Added byte count register offset variables to audio_substream_data structure. Modified dma pointer callback. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Daniel Kurtz <djku...@chromium.org> --- v1->v2: Fixed Indentation issues sound/soc/amd/acp

[PATCH V2 02/10] ASoC: amd: added byte count register offset variables to rtd

2018-05-01 Thread Vijendar Mukunda
Added byte count register offset variables to audio_substream_data structure. Modified dma pointer callback. Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- v1->v2: Fixed Indentation issues sound/soc/amd/acp-pcm-dma.c | 36 +++- sound/soc/amd/ac

[PATCH V2 01/10] ASoC: amd: dma config parameters changes

2018-05-01 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters initialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- v1->v2 : Fixed capture stream wrong channel a

[PATCH V2 01/10] ASoC: amd: dma config parameters changes

2018-05-01 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters initialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda --- v1->v2 : Fixed capture stream wrong channel assignment added comme

[PATCH v2 11/11] ASoC: amd: dma driver changes for bt i2s instance

2018-04-26 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> ---

[PATCH v2 11/11] ASoC: amd: dma driver changes for bt i2s instance

2018-04-26 Thread Vijendar Mukunda
With in ACP, There are three I2S controllers can be configured/enabled ( I2S SP, I2S MICSP, I2S BT). Default enabled I2S controller instance is I2S SP. This patch provides required changes to support I2S BT controller Instance. Signed-off-by: Vijendar Mukunda --- v1->v2: defined i2s insta

[PATCH 10/11] ASoC: AMD: Add const to snd_soc_ops instances

2018-04-26 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- 1 file changed, 3 insertio

[PATCH 10/11] ASoC: AMD: Add const to snd_soc_ops instances

2018-04-26 Thread Vijendar Mukunda
From: Akshu Agrawal Marking snd_soc_ops instances const Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219-max98357a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp

[PATCH 08/11] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-04-26 Thread Vijendar Mukunda
; Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 49 +--- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 215b0

[PATCH 09/11] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-04-26 Thread Vijendar Mukunda
From: Akshu Agrawal <akshu.agra...@amd.com> System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Vijendar Mukunda <vijendar.

[PATCH 08/11] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-04-26 Thread Vijendar Mukunda
From: Akshu Agrawal hw_param can be called multiple times and thus we can have more clk enable. The clk may not get diabled due to refcounting. startup/shutdown ensures single clk enable/disable call. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219

[PATCH 09/11] ASoC: AMD: Fix clocks in CZ DA7219 machine driver

2018-04-26 Thread Vijendar Mukunda
From: Akshu Agrawal System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219-max98357a.c | 5 ++--- 1 file changed, 2

[PATCH 06/11] ASoC: amd: sram bank update changes

2018-04-26 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff

[PATCH 06/11] ASoC: amd: sram bank update changes

2018-04-26 Thread Vijendar Mukunda
Added sram bank variable to audio_substream_data structure. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 20 +--- sound/soc/amd/acp.h | 20 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/sound/soc/amd/acp-pcm

  1   2   >