[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 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 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 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 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 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 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 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 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 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 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 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 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 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 Signed-off-by: Akshu Agrawal --- v1

[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 2/3] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown

2018-04-23 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 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/3] ASoC: amd: acp dma driver code cleanup

2018-04-23 Thread Vijendar Mukunda
. Signed-off-by: Vijendar Mukunda --- 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/acp-pcm-dma.c index 5ffe2ef

[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 3/3] ASoC: amd: enabling bt i2s config after acp reset

2018-04-18 Thread Vijendar Mukunda
-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- 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, 12 insertions(+) diff --git a/sound/soc/amd/acp-da7219-max98357

[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 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 --- v1->v2: defined i2s insta

[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 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 --- v1->v2: removed acp dma driver specific macros from dwc header file include/sound/designware_i2s.h | 4 sound/soc/dwc/dwc-i2s.c

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

2018-04-17 Thread Vijendar Mukunda
-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal 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, 12 insertions(+) diff --git a/sound/soc/amd/acp-da7219-max98357

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

2018-04-16 Thread Vijendar Mukunda
-by: Vijendar Mukunda Signed-off-by: Akshu Agrawal --- 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/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219

[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 2/4] ASoC: amd: fixed checkpatch pl warnings

2018-04-16 Thread Vijendar Mukunda
fixed checkpatch pl warnings. Signed-off-by: Vijendar Mukunda --- 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/soc/amd/acp-pcm-dma.c b/sound/soc

[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 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

[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 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] 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] 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 --- sound/soc/amd/acp-pcm-dma.c | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/sound/soc

[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-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] 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] 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 Signed-off-by: Akshu Agrawal Signed-off-by: Guenter Roeck --- sound/soc/amd/acp-pcm-dma.c | 45 - 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/sound/soc/amd/acp

[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] 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 --- 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..44babe5 100644 --- a/sound/pci/hda

[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-22 Thread Vijendar Mukunda
This commit adds PCI ID for Raven platform Signed-off-by: Vijendar Mukunda --- 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/pci/hda/hda_intel.c +++ b/sound/pci/hda

<    1   2