Skip to content

Commit c9e9aa8

Browse files
Dr. David Alan Gilbertbroonie
authored andcommitted
ASoC: mediatek: Remove unused mtk_memif_set_rate
mtk_memif_set_rate() has been unused since it was added in the 2019 commit 9cdf85a ("ASoC: mediatek: common: add some helpers to control mtk_memif") Remove it. (The _substream version is used, and is left in) Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Link: https://patch.msgid.link/20250201005021.447726-1-linux@treblig.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 2014c95 commit c9e9aa8

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

sound/soc/mediatek/common/mtk-afe-fe-dai.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -500,26 +500,6 @@ static int mtk_memif_set_rate_fs(struct mtk_base_afe *afe,
500500
return 0;
501501
}
502502

503-
int mtk_memif_set_rate(struct mtk_base_afe *afe,
504-
int id, unsigned int rate)
505-
{
506-
int fs = 0;
507-
508-
if (!afe->get_dai_fs) {
509-
dev_err(afe->dev, "%s(), error, afe->get_dai_fs == NULL\n",
510-
__func__);
511-
return -EINVAL;
512-
}
513-
514-
fs = afe->get_dai_fs(afe, id, rate);
515-
516-
if (fs < 0)
517-
return -EINVAL;
518-
519-
return mtk_memif_set_rate_fs(afe, id, fs);
520-
}
521-
EXPORT_SYMBOL_GPL(mtk_memif_set_rate);
522-
523503
int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
524504
int id, unsigned int rate)
525505
{

sound/soc/mediatek/common/mtk-afe-fe-dai.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ int mtk_memif_set_addr(struct mtk_base_afe *afe, int id,
4242
size_t dma_bytes);
4343
int mtk_memif_set_channel(struct mtk_base_afe *afe,
4444
int id, unsigned int channel);
45-
int mtk_memif_set_rate(struct mtk_base_afe *afe,
46-
int id, unsigned int rate);
4745
int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
4846
int id, unsigned int rate);
4947
int mtk_memif_set_format(struct mtk_base_afe *afe,

0 commit comments

Comments
 (0)