[PATCH] ASoC: amd: Replacing component->name with codec_dai->name

2020-08-06 Thread Ravulapati Vishnu vardhan rao
Replacing string compare with codec_dai->name instead of comparing with codec_dai->component->name in hw_params. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp

RE: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name

2020-08-07 Thread RAVULAPATI, VISHNU VARDHAN RAO
-Original Message- From: Mark Brown Sent: Thursday, August 6, 2020 4:59 PM To: RAVULAPATI, VISHNU VARDHAN RAO Cc: Liam Girdwood ; Jaroslav Kysela ; Takashi Iwai ; Agrawal, Akshu ; Kuninori Morimoto ; YueHaibing ; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM

RE: [PATCH] ASoC: amd: Replacing component->name with codec_dai->name

2020-08-07 Thread RAVULAPATI, VISHNU VARDHAN RAO
On Thu, Aug 06, 2020 at 03:44:12PM +0530, Ravulapati Vishnu vardhan rao wrote: > Replacing string compare with codec_dai->name instead of comparing > with codec_dai->component->name in hw_params. >Why? Here the component name for codec RT1015 is "i2c-10EC1015:00"

[PATCH] ASoC: amd: Replacing component->name with codec_dai->name.

2020-08-07 Thread Ravulapati Vishnu vardhan rao
e. So, strcmp() always compares and fails to set the sysclk,pll,bratio for expected codec-dai="rt1015-aif1". Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp3x-

[PATCH] ASoC: amd:Replacing MSI with Legacy IRQ model

2020-12-22 Thread Ravulapati Vishnu vardhan rao
h issue is resolved. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/pci-acp3x.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sound/soc/amd/raven/pci-acp3x.c b/sound/soc/amd/raven/pci-acp3x.c index 8c138e490f0c..d3536fd6a124 100644 --

[PATCH 1/7] ASoC: amd: No need PCI-MSI interrupts

2019-09-30 Thread Ravulapati Vishnu vardhan rao
ACP-PCI controller driver does not depends msi interrupts. So removed msi related pci functions which have no use and does not impact on existing functionality. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/pci-acp3x.c | 11 +-- 1 file changed, 1 insertion(+), 10

[PATCH 3/7] ASoC: amd: Refactoring of DAI from DMA driver

2019-09-30 Thread Ravulapati Vishnu vardhan rao
Asoc: PCM DMA driver should only have dma ops. So Removed all DAI related functionality. Refactoring the PCM DMA diver code. Added new file containing only DAI ops. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-i2s.c | 289

[PATCH 5/7] ASoC: amd: add ACP3x TDM mode support

2019-09-30 Thread Ravulapati Vishnu vardhan rao
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: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-i2s.c | 36 ++-- 1 file changed, 26 insertions

[PATCH 4/7] ASoC: amd: Enabling I2S instance in DMA and DAI

2019-09-30 Thread Ravulapati Vishnu vardhan rao
This patch adds I2S SP support in ACP PCM DMA and DAI. Added I2S support in DMA and DAI probe,its hw_params handling its open and close functionalities. This enable to open and close on the SP instance for playback and capture. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd

[PATCH 7/7] ASoc: amd: Added ACP3x system resume and runtime pm ops

2019-09-30 Thread Ravulapati Vishnu vardhan rao
for ACP3x PCM platform device. Device will be powered on/off based on device is in use or not. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 160 +++- sound/soc/amd/raven/acp3x.h | 7 ++ sound/soc/amd/raven/pci-acp3x.c

[PATCH 6/7] ASoC: AMD: handle ACP3x i2s-sp watermark interrupt

2019-09-30 Thread Ravulapati Vishnu vardhan rao
Whenever audio data equal to I2S-SP fifo watermark level is produced/consumed, interrupt is generated. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b

[PATCH 2/7] ASoC: amd: Registering device endpoints using MFD framework

2019-09-30 Thread Ravulapati Vishnu vardhan rao
Removed platform based endpoint registering in ACP-PCI driver. Now Registering PCM DMA and multiple I2S instances: SP and BT endpoint devices automatically by using MFD framework. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x.h | 8 +++ sound/soc/amd/raven

[PATCH 1/5] ASoC: amd: Registering device endpoints using MFD framework

2019-09-26 Thread Ravulapati Vishnu vardhan rao
Removed platform based endpoint registering. Now Registering DMA and multiple I2S BT playback endpoint devices automatically by using MFD framework. Signed-off-by: Ravulapati Vishnu vardhan rao Reviewed-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x.h | 54 --- sound/soc

[PATCH 2/5] ASoC: amd: Refactoring of DAI from DMA driver

2019-09-26 Thread Ravulapati Vishnu vardhan rao
DMA driver should have only dma ops.Removed all DAI related. Refactoring the code added new file contianing only DAI ops. Signed-off-by: Ravulapati Vishnu vardhan rao Reviewed-by: Vijendar Mukunda --- sound/soc/amd/raven/Makefile| 2 + sound/soc/amd/raven/acp3x-i2s.c | 289

[PATCH 5/5] ASoC: amd: ACP powergating should be done by controller

2019-09-26 Thread Ravulapati Vishnu vardhan rao
ACP power gating should be handled by ACP-PCI driver. This patch moves the power gating logic into ACP-PCI driver. This Power gating helps ACP to enter into D3 when there is no activity on I2S. Signed-off-by: Ravulapati Vishnu vardhan rao Signed-off-by: Vijendar Mukunda --- sound/soc/amd

[PATCH 4/5] ASoC: amd: added pmops for pci driver

2019-09-26 Thread Ravulapati Vishnu vardhan rao
Runtime powermanagement is added for PCI driver. When there is no activity for at least 10 secs driver suspends automatically.Runtime- Suspend and resume Stub functions are added. Signed-off-by: Ravulapati Vishnu vardhan rao Reviewed-by: Vijendar Mukunda --- sound/soc/amd/raven/pci-acp3x.c

[PATCH 3/5] ASoC: amd: Enabling two I2S instances

2019-09-26 Thread Ravulapati Vishnu vardhan rao
RAVEN has multiple I2S instances:BT and SP.But only BT is enabled. Now I2S SP instance also gets enabled with this patch. Signed-off-by: Ravulapati Vishnu vardhan rao Reviewed-by: Vijendar Mukunda --- sound/soc/amd/raven/acp3x-i2s.c | 216 +--- sound/soc/amd/raven

[PATCH] ASoC: amd: Missing Initialization of IRQFLAGS

2019-09-26 Thread Ravulapati Vishnu vardhan rao
Fix for missing initialization of IRQFLAGS in ACP-PCI driver and Missing Macro of ACP3x_DEVS. Follow up to IDb33df346 Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/pci-acp3x.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd

[PATCH 1/7] ASoC: amd: Create multiple I2S platform device endpoints.

2019-10-18 Thread Ravulapati Vishnu vardhan rao
Creates Platform Device endpoints for multiple I2S instances: SP and BT endpoints device. Pass PCI resources like MMIO, irq to the platform devices. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x.h | 5 +++ sound/soc/amd/raven/pci-acp3x.c | 83

[PATCH 2/7] ASoC: amd: Refactoring of DAI from DMA driver

2019-10-18 Thread Ravulapati Vishnu vardhan rao
Asoc: PCM DMA driver should only have dma ops. So Removed all DAI related functionality. Refactoring the PCM DMA diver code. Added new file containing only DAI ops. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/Makefile| 2 + sound/soc/amd/raven/acp3x-i2s.c

[PATCH 3/7] ASoC: amd: Enabling I2S instance in DMA and DAI

2019-10-18 Thread Ravulapati Vishnu vardhan rao
This patch adds I2S SP support in ACP PCM DMA and DAI. Added I2S support in DMA and DAI probe,its hw_params handling its open and close functionalities. This enable to open and close on the SP instance for playback and capture. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd

[PATCH 4/7] ASoC: amd: add ACP3x TDM mode support

2019-10-18 Thread Ravulapati Vishnu vardhan rao
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: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-i2s.c | 51 + sound/soc/amd/raven

[PATCH 7/7] ASoC: amd: Added ACP3x system resume and runtime pm ops

2019-10-18 Thread Ravulapati Vishnu vardhan rao
enter into D3 state when there is no activity on audio I2S lines. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/pci-acp3x.c | 48 - 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/sound/soc/amd/raven/pci-acp3x.c b/sound

[PATCH 6/7] ASoC: amd: ACP powergating should be done by controller

2019-10-18 Thread Ravulapati Vishnu vardhan rao
ACP power gating should be done by ACP-PCI.previous it was handled in DMA driver which is not authorised to do.Moving it to ACP-PCI. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 141 +-- sound/soc/amd/raven/acp3x.h

[PATCH 5/7] ASoC: amd: handle ACP3x i2s-sp watermark interrupt.

2019-10-18 Thread Ravulapati Vishnu vardhan rao
whenever audio data equal to I2S-SP fifo watermark level is produced/consumed, interrupt is generated. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b

[PATCH 1/3] ASoC: amd: use DMA addr rather than CPU pa for audio buffer

2019-07-29 Thread Ravulapati Vishnu vardhan rao
7;s most likely different from CPU physical address when AMD IOMMU is not in passthrough mode. Signed-off-by: Vijendar Mukunda Tested-by: RAVULAPATI VISHNU VARDHAN RAO --- sound/soc/amd/raven/acp3x-pcm-dma.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git

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

2019-07-29 Thread Ravulapati Vishnu vardhan rao
device doesn't have it set. Signed-off-by: Vijendar Mukunda Tested-by: Ravulapati, Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm

[PATCH 3/3] ASoC : amd: reduced period size

2019-07-29 Thread Ravulapati Vishnu vardhan rao
Reduced period size and offsets. Signed-off-by:Ravulapati, Vishnu vardhan rao --- sound/soc/amd/raven/acp3x.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/amd/raven/acp3x.h b/sound/soc/amd/raven/acp3x.h index 4f2cadd..033e2a9 100644 --- a/sound/soc/

[PATCH] ASoC: amd: Removing unnecessary instance initialization

2020-05-28 Thread Ravulapati Vishnu vardhan rao
In DMA pointer the initialzation of instance is of no use. In fact it will reinitialize the instance variable which is already opened and functional. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 8 1 file changed, 8 deletions(-) diff --git a

[PATCH] ASoC: amd: Rectifying Unbalanced pm_runtime_enable! issue

2020-06-30 Thread Ravulapati Vishnu vardhan rao
When snd_pci_acp3x driver loads we see: WARNING kernel:snd_pci_acp3x :04:00.5: Unbalanced pm_runtime_enable! at boot time. same can be observed in /var/log/messages/. Modifying pm runtime sequence for fixing unbalanced pm issue. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc

RE: [PATCH] ASoC: amd :High hw_level while simultaneous capture

2020-05-05 Thread RAVULAPATI, VISHNU VARDHAN RAO
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: Mark Brown Sent: Tuesday, May 5, 2020 5:21 PM To: Agrawal, Akshu Cc: RAVULAPATI, VISHNU VARDHAN RAO ; Liam Girdwood ; Jaroslav Kysela ; Takashi Iwai ; Mukunda, Vijendar ; Colin Ian King ; Kuninori

[PATCH 1/6] ASoC: amd: Renaming snd-soc-card structure and fields.

2020-07-27 Thread Ravulapati Vishnu vardhan rao
As in future our machine driver supports multiple codecs So changing naming convention of snd_soc_card struct and its fields. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions

[PATCH 6/6] ASoC: amd: Added hw_params support for ALC1015

2020-07-27 Thread Ravulapati Vishnu vardhan rao
Adding rt1015 hw_params which set Bit-clock ratio PLL and appropriate sys clk specific with RTK1015. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 39 1 file changed, 39 insertions(+) diff --git a/sound/soc/amd/acp3x

[PATCH 5/6] ASoC: amd: Adding DAI LINK for rt1015 codec

2020-07-27 Thread Ravulapati Vishnu vardhan rao
DAI link support for RTK 1015 and providing the codec details depending on the snd_soc_card selected by ACPI ID. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 35 1 file changed, 30 insertions(+), 5 deletions(-) diff --git

[PATCH 4/6] ASoC: amd: Adding support for ALC1015 codec in machine driver

2020-07-27 Thread Ravulapati Vishnu vardhan rao
Adding support for ALC1015 RTK codec in machine driver. Passing specific card structure based on its ACPI ID. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/Kconfig| 1 + sound/soc/amd/acp3x-rt5682-max9836.c | 63 ++-- 2 files changed

[PATCH 2/6] ASoC: amd: Passing card structure based on codec

2020-07-27 Thread Ravulapati Vishnu vardhan rao
Passing specific snd_soc_card structure depending on the ACPI ID. In future we can add other IDs in the ACPI table and pass the structure. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 24 +++- 1 file changed, 19 insertions(+), 5

[PATCH 3/6] ASoC: amd: SND_SOC_RT5682_I2C does not build rt5682

2020-07-27 Thread Ravulapati Vishnu vardhan rao
-by: Ravulapati Vishnu vardhan rao --- 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 e37cf72f2bab..77ffdb41bee5 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -29,7 +29,7 @@ config

RE: [PATCH 3/6] ASoC: amd: SND_SOC_RT5682_I2C does not build rt5682

2020-07-28 Thread RAVULAPATI, VISHNU VARDHAN RAO
flag and I expect to use SND_SOC_RT5682 as it is still available. Thanks, Vishnu -Original Message- From: Mark Brown Sent: Monday, July 27, 2020 9:40 PM To: Pierre-Louis Bossart Cc: RAVULAPATI, VISHNU VARDHAN RAO ; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM

RE: [PATCH 3/6] ASoC: amd: SND_SOC_RT5682_I2C does not build rt5682

2020-07-28 Thread RAVULAPATI, VISHNU VARDHAN RAO
[AMD Official Use Only - Internal Distribution Only] -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, July 28, 2020 5:48 PM To: Mark Brown ; RAVULAPATI, VISHNU VARDHAN RAO Cc: moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... ; Arnd Bergmann ; Liam Girdwood

RE: [PATCH 3/6] ASoC: amd: SND_SOC_RT5682_I2C does not build rt5682

2020-07-28 Thread RAVULAPATI, VISHNU VARDHAN RAO
I will drop this patch series and will send new series. Thanks, -Original Message- From: Mark Brown Sent: Tuesday, July 28, 2020 9:06 PM To: RAVULAPATI, VISHNU VARDHAN RAO Cc: Pierre-Louis Bossart ; moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM... ; Arnd Bergmann

[PATCH v2 1/5] ASoC: amd: Renaming snd-soc-card structure and fields

2020-07-28 Thread Ravulapati Vishnu vardhan rao
As in future our machine driver supports multiple codecs So changing naming convention of snd_soc_card struct and its fields. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions

[PATCH v2 4/5] ASoC: amd: Adding DAI LINK for rt1015 codec

2020-07-28 Thread Ravulapati Vishnu vardhan rao
DAI link support for RTK 1015 and providing the codec details depending on the snd_soc_card selected by ACPI ID. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 35 1 file changed, 30 insertions(+), 5 deletions(-) diff --git

[PATCH v2 2/5] ASoC: amd: Passing card structure based on codec

2020-07-28 Thread Ravulapati Vishnu vardhan rao
Passing specific snd_soc_card structure depending on the ACPI ID. In future we can add other IDs in the ACPI table and pass the structure. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 25 - 1 file changed, 20 insertions(+), 5

[PATCH v2 3/5] ASoC: amd: Adding support for ALC1015 codec in machine driver

2020-07-28 Thread Ravulapati Vishnu vardhan rao
Adding support for ALC1015 RTK codec in machine driver. Passing specific card structure based on its ACPI ID. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/Kconfig| 1 + sound/soc/amd/acp3x-rt5682-max9836.c | 63 ++-- 2 files changed

[PATCH v2 5/5] ASoC: amd: Added hw_params support for ALC1015

2020-07-28 Thread Ravulapati Vishnu vardhan rao
Adding rt1015 hw_params which set Bit-clock ratio, PLL and appropriate sys clk specific with RTK1015. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/acp3x-rt5682-max9836.c | 29 1 file changed, 29 insertions(+) diff --git a/sound/soc/amd/acp3x

[PATCH 1/2] ASoC: amd: Removing unnecessary instance initialization

2020-06-18 Thread Ravulapati Vishnu vardhan rao
In trigger we already get the selected instance details from runtime->private_data.So, removing the local initialization which may corrupt the instance selected details and this leads to corrupt data. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-i2s.c

[PATCH 2/2] ASoC: amd: closing specific instance.

2020-06-18 Thread Ravulapati Vishnu vardhan rao
rectifies the issue reported. Signed-off-by: Ravulapati Vishnu vardhan rao --- sound/soc/amd/raven/acp3x-pcm-dma.c | 30 ++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index