Skip to content

Commit d70ce6d

Browse files
committed
ASoC: mt8365: Remove unused DMIC IIR coefficient configuration
Nothing ever calls mt8365_dai_load_dmic_iirc_coeff_table() so the compiler warns about an unused static function. While it seems likely that something should be calling the function I don't know what and this is breaking -Werror builds like allmodconfig so let's just remove it. It can be added again along with the user. Reported-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Nathan Chancellor <nathan@kernel.org> # build Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-6-7ad0bac20161@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 067d832 commit d70ce6d

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

sound/soc/mediatek/mt8365/mt8365-dai-dmic.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -108,36 +108,6 @@ static void mt8365_dai_disable_dmic(struct mtk_base_afe *afe,
108108
regmap_update_bits(afe->regmap, reg, mask, 0);
109109
}
110110

111-
static const struct reg_sequence mt8365_dmic_iir_coeff[] = {
112-
{ AFE_DMIC0_IIR_COEF_02_01, 0x00000000 },
113-
{ AFE_DMIC0_IIR_COEF_04_03, 0x00003FB8 },
114-
{ AFE_DMIC0_IIR_COEF_06_05, 0x3FB80000 },
115-
{ AFE_DMIC0_IIR_COEF_08_07, 0x3FB80000 },
116-
{ AFE_DMIC0_IIR_COEF_10_09, 0x0000C048 },
117-
{ AFE_DMIC1_IIR_COEF_02_01, 0x00000000 },
118-
{ AFE_DMIC1_IIR_COEF_04_03, 0x00003FB8 },
119-
{ AFE_DMIC1_IIR_COEF_06_05, 0x3FB80000 },
120-
{ AFE_DMIC1_IIR_COEF_08_07, 0x3FB80000 },
121-
{ AFE_DMIC1_IIR_COEF_10_09, 0x0000C048 },
122-
{ AFE_DMIC2_IIR_COEF_02_01, 0x00000000 },
123-
{ AFE_DMIC2_IIR_COEF_04_03, 0x00003FB8 },
124-
{ AFE_DMIC2_IIR_COEF_06_05, 0x3FB80000 },
125-
{ AFE_DMIC2_IIR_COEF_08_07, 0x3FB80000 },
126-
{ AFE_DMIC2_IIR_COEF_10_09, 0x0000C048 },
127-
{ AFE_DMIC3_IIR_COEF_02_01, 0x00000000 },
128-
{ AFE_DMIC3_IIR_COEF_04_03, 0x00003FB8 },
129-
{ AFE_DMIC3_IIR_COEF_06_05, 0x3FB80000 },
130-
{ AFE_DMIC3_IIR_COEF_08_07, 0x3FB80000 },
131-
{ AFE_DMIC3_IIR_COEF_10_09, 0x0000C048 },
132-
};
133-
134-
static int mt8365_dai_load_dmic_iir_coeff_table(struct mtk_base_afe *afe)
135-
{
136-
return regmap_multi_reg_write(afe->regmap,
137-
mt8365_dmic_iir_coeff,
138-
ARRAY_SIZE(mt8365_dmic_iir_coeff));
139-
}
140-
141111
static int mt8365_dai_configure_dmic(struct mtk_base_afe *afe,
142112
struct snd_pcm_substream *substream,
143113
struct snd_soc_dai *dai)

0 commit comments

Comments
 (0)