Unverified Commit afde6727 authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown
Browse files

ASoC: amd: acp: Drop superfluous mmap callback



Remove mmap callback as ASoC AMD drivers just call
the standard mmap handler.

Signed-off-by: default avatarVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Reviewed-by: default avatarVijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20220721062043.3016985-2-venkataprasad.potturu@amd.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 93f53881
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -258,13 +258,6 @@ static int acp_dma_new(struct snd_soc_component *component,
	return 0;
}

static int acp_dma_mmap(struct snd_soc_component *component,
			struct snd_pcm_substream *substream,
			struct vm_area_struct *vma)
{
	return snd_pcm_lib_default_mmap(substream, vma);
}

static int acp_dma_close(struct snd_soc_component *component,
			 struct snd_pcm_substream *substream)
{
@@ -288,7 +281,6 @@ static const struct snd_soc_component_driver acp_pcm_component = {
	.close			= acp_dma_close,
	.hw_params		= acp_dma_hw_params,
	.pointer		= acp_dma_pointer,
	.mmap			= acp_dma_mmap,
	.pcm_construct		= acp_dma_new,
	.legacy_dai_naming	= 1,
};