mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
ASoC: tegra-alt: adsp: callback func ptr for adma
There is a function exported from adsp os code, nvadsp_set_adma_dump_reg, to set the function pointer for adma regdump callback. This patch uses the above exported api and sets the callback to tegra_adma_dump_ch_reg, which is implemented by adma driver. This is done during tegra210_adsp_init. Bug 200289390 Change-Id: If1c2826928d5e5d51a805ed0a2211c20a1ecf6f8 Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: http://git-master/r/1484830 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -368,6 +368,11 @@ static void tegra210_adsp_deallocate_dma_buffer(struct snd_dma_buffer *buf)
|
||||
buf->addr = 0;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_TEGRA210_ADMA)
|
||||
/* implemented in adma driver */
|
||||
void tegra_adma_dump_ch_reg(void);
|
||||
#endif
|
||||
|
||||
/* ADSP OS boot and init API */
|
||||
static int tegra210_adsp_init(struct tegra210_adsp *adsp)
|
||||
{
|
||||
@@ -396,6 +401,11 @@ static int tegra210_adsp_init(struct tegra210_adsp *adsp)
|
||||
}
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_TEGRA210_ADMA)
|
||||
/* set callback function for adsp to dump adma registers for debug */
|
||||
nvadsp_set_adma_dump_reg(&tegra_adma_dump_ch_reg);
|
||||
#endif
|
||||
|
||||
/* Suspend OS for now. Resume will happen via runtime pm calls */
|
||||
ret = nvadsp_os_suspend();
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user