From c61527fb8f10714690b2cb01738b6df1cc8d8baf Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Fri, 5 Aug 2022 13:32:35 +0530 Subject: [PATCH] ASoC: tegra: remove superflous code This is inspired from following upstream commit: ------------------------------------------------------------------------ commit 189364872fba07291db7f68fe0161f97e5b61bb1 Author: Takashi Iwai Date: Mon Aug 2 09:28:09 2021 +0200 ASoC: tegra: Use managed buffer allocation As the standard buffer allocation helper supports WC pages now, we can convert imx-pcm-rpmsg driver to use that. This allows us to remove lots of superfluous code. Acked-by: Mark Brown Link: https://lore.kernel.org/r/20210802072815.13551-10-tiwai@suse.de Signed-off-by: Takashi Iwai ------------------------------------------------------------------------ Above is required to avoid build errors related to non existent callbacks in 'snd_soc_component_driver' structure. Bug 3583581 Change-Id: Id1a930db0e41a51be35813aed67183974d1eec57 Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2774431 Reviewed-by: Mohan Kumar D Reviewed-by: Sharad Gupta GVS: Gerrit_Virtual_Submit --- sound/soc/tegra/tegra210_admaif.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/tegra/tegra210_admaif.c b/sound/soc/tegra/tegra210_admaif.c index e8f85960..44984e09 100644 --- a/sound/soc/tegra/tegra210_admaif.c +++ b/sound/soc/tegra/tegra210_admaif.c @@ -1163,12 +1163,9 @@ static const struct snd_soc_component_driver tegra210_admaif_cmpnt = { .controls = tegra210_admaif_controls, .num_controls = ARRAY_SIZE(tegra210_admaif_controls), .pcm_construct = tegra_pcm_construct, - .pcm_destruct = tegra_pcm_destruct, .open = tegra_pcm_open, .close = tegra_pcm_close, .hw_params = tegra_pcm_hw_params, - .hw_free = tegra_pcm_hw_free, - .mmap = tegra_pcm_mmap, .pointer = tegra_pcm_pointer, }; @@ -1180,12 +1177,9 @@ static const struct snd_soc_component_driver tegra186_admaif_cmpnt = { .controls = tegra186_admaif_controls, .num_controls = ARRAY_SIZE(tegra186_admaif_controls), .pcm_construct = tegra_pcm_construct, - .pcm_destruct = tegra_pcm_destruct, .open = tegra_pcm_open, .close = tegra_pcm_close, .hw_params = tegra_pcm_hw_params, - .hw_free = tegra_pcm_hw_free, - .mmap = tegra_pcm_mmap, .pointer = tegra_pcm_pointer, };