[PATCH] ASoC: amd: added error checks in dma driver

2017-11-23 Thread Vijendar Mukunda
added error checks in acp dma driver Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> Signed-off-by: Guenter Roeck <gro...@chromium.org> --- sound/soc/amd/acp-pcm-dma.c | 45 +++

[PATCH] ALSA: hda: Add Raven PCI ID

2017-11-22 Thread Vijendar Mukunda
This commit adds PCI ID for Raven platform Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/pci/hda/hda_intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 01eb1dc..9c7d479 100644 --- a/sound/p

[PATCH] ALSA: hda: Add Raven PCI ID

2017-11-23 Thread Vijendar Mukunda
This commit adds PCI ID for Raven platform v2: Comment added for Raven Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/pci/hda/hda_intel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 01eb1dc..4

[PATCH] ASoC: amd: added error checks in dma driver

2017-11-27 Thread Vijendar Mukunda
added additional error checks in acp dma driver Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/a

[PATCH] ASoC: amd: added error checks in dma driver

2017-12-04 Thread Vijendar Mukunda
added additional error checks in acp dma driver v2: printed error codes for acp init & acp deinit failure cases. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 35 ++- 1 file changed, 30 insertions(+), 5

[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 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 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 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 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 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 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 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 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 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 01/11] ASoC: amd: rename audio_substream_data variable

2018-04-26 Thread Vijendar Mukunda
In order to make audio_substream_data structure variable consistent throughout the code, changed the name from audio_config to rtd wherever applicable. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 18 +- 1 file changed, 9 inse

[PATCH 02/11] ASoC: amd: dma config parameters changes

2018-04-26 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters intialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.

[PATCH 05/11] ASoC: amd: pte offset related dma driver changes

2018-04-26 Thread Vijendar Mukunda
Added pte offset variable in audio_substream_data structure. Added Stoney related PTE offset macros in acp header file. Modified hw_params callback to assign the pte offset value based on asic_type. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.

[PATCH 04/11] ASoC: amd: removed separate byte count variables for playback and capture

2018-04-26 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 19 +-- sound/soc/amd/acp.h | 3 +-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/sound/s

[PATCH 03/11] ASoC: amd: added byte count register offset variables to rtd

2018-04-26 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> --- sound/soc/amd/acp-pcm-dma.c | 36 +++- sound/soc/amd/acp.h | 2 ++ 2 files c

[PATCH 07/11] ASoC: amd: memory freeing for rtd structure

2018-04-26 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/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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 2/3] ASoC: amd: dma driver changes for BT I2S instance

2018-04-18 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 1/3] ASoC: dwc: I2S Controller instance param added

2018-04-18 Thread Vijendar Mukunda
When multiple I2S controller instances created, i2s_instance parameter refers to i2s controller instance value. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- v1->v2: removed acp dma driver specific macros from dwc header file include/sound/designware_i2s.h | 4

[PATCH v2 3/3] ASoC: amd: enabling bt i2s config after acp reset

2018-04-18 Thread Vijendar Mukunda
-by: Vijendar Mukunda <vijendar.muku...@amd.com> Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> --- v1->v2: fixed kbuild errors sound/soc/amd/acp-da7219-max98357a.c | 2 ++ sound/soc/amd/acp-pcm-dma.c | 9 + sound/soc/amd/acp.h | 1 + 3 files changed

[PATCH V2 4/4] ASoC: amd: enabling bt i2s config after acp reset

2018-04-17 Thread Vijendar Mukunda
-by: Vijendar Mukunda <vijendar.muku...@amd.com> Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> v1->v2: fixed kbuild errors --- sound/soc/amd/acp-da7219-max98357a.c | 2 ++ sound/soc/amd/acp-pcm-dma.c | 9 + sound/soc/amd/acp.h | 1 + 3 files changed

[PATCH v3 3/3] ASoC: amd: dma driver changes for bt i2s instance

2018-04-23 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> Sign

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

2018-04-23 Thread Vijendar Mukunda
; Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 54 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index b205c

[PATCH 1/3] ASoC: amd: acp dma driver code cleanup

2018-04-23 Thread Vijendar Mukunda
. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 241 ++-- sound/soc/amd/acp.h | 35 +-- 2 files changed, 126 insertions(+), 150 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/a

[PATCH 1/4] ASoC: dwc: I2S Controller instance param added

2018-04-16 Thread Vijendar Mukunda
When multiple I2S controller instances created, i2s_instance parameter refers to i2s controller instance value. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> Reviewed-by: Alex Deucher <alexander.deuc...@amd.com> --- include/sound/designware_i2s.h | 6 ++ sound/soc/d

[PATCH 2/4] ASoC: amd: fixed checkpatch pl warnings

2018-04-16 Thread Vijendar Mukunda
fixed checkpatch pl warnings. Signed-off-by: Vijendar Mukunda <vijendar.muku...@amd.com> --- sound/soc/amd/acp-pcm-dma.c | 259 sound/soc/amd/acp.h | 22 ++-- 2 files changed, 153 insertions(+), 128 deletions(-) diff --git a/sound/s

[PATCH 3/4] ASoC: amd: dma driver changes for BT I2S instance

2018-04-16 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 4/4] ASoC: amd: enabling bt i2s config after acp reset

2018-04-16 Thread Vijendar Mukunda
-by: Vijendar Mukunda <vijendar.muku...@amd.com> Signed-off-by: Akshu Agrawal <akshu.agra...@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 2 ++ sound/soc/amd/acp-pcm-dma.c | 9 + sound/soc/amd/acp.h | 1 + 3 files changed, 12 insertions(+) diff --git a/s

[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 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 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 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 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 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 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 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 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 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 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 01/11] ASoC: amd: rename audio_substream_data variable

2018-04-26 Thread Vijendar Mukunda
In order to make audio_substream_data structure variable consistent throughout the code, changed the name from audio_config to rtd wherever applicable. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[PATCH 02/11] ASoC: amd: dma config parameters changes

2018-04-26 Thread Vijendar Mukunda
Added dma configuration parameters to rtd structure. Moved dma configuration parameters intialization to hw_params callback. Removed hard coding in prepare and trigger callbacks. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 97

[PATCH 03/11] ASoC: amd: added byte count register offset variables to rtd

2018-04-26 Thread Vijendar Mukunda
Added byte count register offset variables to audio_substream_data structure. Modified dma pointer callback. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 36 +++- sound/soc/amd/acp.h | 2 ++ 2 files changed, 17 insertions(+), 21

[PATCH 05/11] ASoC: amd: pte offset related dma driver changes

2018-04-26 Thread Vijendar Mukunda
Added pte offset variable in audio_substream_data structure. Added Stoney related PTE offset macros in acp header file. Modified hw_params callback to assign the pte offset value based on asic_type. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 26

[PATCH 04/11] ASoC: amd: removed separate byte count variables for playback and capture

2018-04-26 Thread Vijendar Mukunda
Removed separate byte count variables for playback and capture. Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 19 +-- sound/soc/amd/acp.h | 3 +-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc

[PATCH 07/11] ASoC: amd: memory freeing for rtd structure

2018-04-26 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 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

[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 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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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] ASoC: amd: added error checks in dma driver

2017-11-27 Thread Vijendar Mukunda
added additional error checks in acp dma driver Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-pcm-dma.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/sound/soc/amd/acp-pcm-dma.c b/sound/soc/amd/acp-pcm-dma.c index fb09578

[PATCH 1/4] ASoC: dwc: I2S Controller instance param added

2018-04-16 Thread Vijendar Mukunda
When multiple I2S controller instances created, i2s_instance parameter refers to i2s controller instance value. Signed-off-by: Vijendar Mukunda Reviewed-by: Alex Deucher --- include/sound/designware_i2s.h | 6 ++ sound/soc/dwc/dwc-i2s.c| 1 + sound/soc/dwc/local.h | 1 + 3

[PATCH 3/4] ASoC: amd: dma driver changes for BT I2S instance

2018-04-16 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 --- sound/soc/amd/Kconfig

  1   2   >