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 ++
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
-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
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
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
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
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
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
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
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 |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
-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
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
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
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
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
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
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
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
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
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/
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 |
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.
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
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
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
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
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.
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
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
;
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
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
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
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
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 ++---
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
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
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
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 +--
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
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
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
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
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
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
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
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>
---
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
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.
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
;
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
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
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
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
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
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
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:
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/
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 +--
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
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
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
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
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
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>
---
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
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
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
;
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
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.
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
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
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
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 - 100 of 144 matches
Mail list logo