mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
ASoC: mediatek: Remove unused mtk_memif_set_rate
mtk_memif_set_rate() has been unused since it was added in the 2019
commit 9cdf85a19b ("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>
This commit is contained in:
parent
2014c95afe
commit
c9e9aa8002
|
|
@ -500,26 +500,6 @@ static int mtk_memif_set_rate_fs(struct mtk_base_afe *afe,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int mtk_memif_set_rate(struct mtk_base_afe *afe,
|
||||
int id, unsigned int rate)
|
||||
{
|
||||
int fs = 0;
|
||||
|
||||
if (!afe->get_dai_fs) {
|
||||
dev_err(afe->dev, "%s(), error, afe->get_dai_fs == NULL\n",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
fs = afe->get_dai_fs(afe, id, rate);
|
||||
|
||||
if (fs < 0)
|
||||
return -EINVAL;
|
||||
|
||||
return mtk_memif_set_rate_fs(afe, id, fs);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mtk_memif_set_rate);
|
||||
|
||||
int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
|
||||
int id, unsigned int rate)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -42,8 +42,6 @@ int mtk_memif_set_addr(struct mtk_base_afe *afe, int id,
|
|||
size_t dma_bytes);
|
||||
int mtk_memif_set_channel(struct mtk_base_afe *afe,
|
||||
int id, unsigned int channel);
|
||||
int mtk_memif_set_rate(struct mtk_base_afe *afe,
|
||||
int id, unsigned int rate);
|
||||
int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
|
||||
int id, unsigned int rate);
|
||||
int mtk_memif_set_format(struct mtk_base_afe *afe,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user