Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: mediatek: Remove unused mtk_memif_set_rate

mtk_memif_set_rate() has been unused since it was added in the 2019
commit 9cdf85a19b3a ("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>

authored by

Dr. David Alan Gilbert and committed by
Mark Brown
c9e9aa80 2014c95a

-22
-20
sound/soc/mediatek/common/mtk-afe-fe-dai.c
··· 500 500 return 0; 501 501 } 502 502 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 - 523 503 int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream, 524 504 int id, unsigned int rate) 525 505 {
-2
sound/soc/mediatek/common/mtk-afe-fe-dai.h
··· 42 42 size_t dma_bytes); 43 43 int mtk_memif_set_channel(struct mtk_base_afe *afe, 44 44 int id, unsigned int channel); 45 - int mtk_memif_set_rate(struct mtk_base_afe *afe, 46 - int id, unsigned int rate); 47 45 int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream, 48 46 int id, unsigned int rate); 49 47 int mtk_memif_set_format(struct mtk_base_afe *afe,