Skip to content

Commit a7663c8

Browse files
yujiaxinffbroonie
authored andcommitted
ASoC: mediatek: mt6358: add missing EXPORT_SYMBOLs
Fixes the following build errors when mt6358 is configured as module: >> ERROR: modpost: "mt6358_set_mtkaif_protocol" >> [sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.ko] undefined! >> ERROR: modpost: "mt6358_set_mtkaif_protocol" >> [sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.ko] undefined! Fixes: 6a8d419 ("ASoC: mediatek: mt6358: add codec driver") Signed-off-by: Jiaxin Yu <jiaxin.yu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220319120325.11882-1-jiaxin.yu@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 49a24e9 commit a7663c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sound/soc/codecs/mt6358.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ int mt6358_set_mtkaif_protocol(struct snd_soc_component *cmpnt,
107107
priv->mtkaif_protocol = mtkaif_protocol;
108108
return 0;
109109
}
110+
EXPORT_SYMBOL_GPL(mt6358_set_mtkaif_protocol);
110111

111112
static void playback_gpio_set(struct mt6358_priv *priv)
112113
{
@@ -273,6 +274,7 @@ int mt6358_mtkaif_calibration_enable(struct snd_soc_component *cmpnt)
273274
1 << RG_AUD_PAD_TOP_DAT_MISO_LOOPBACK_SFT);
274275
return 0;
275276
}
277+
EXPORT_SYMBOL_GPL(mt6358_mtkaif_calibration_enable);
276278

277279
int mt6358_mtkaif_calibration_disable(struct snd_soc_component *cmpnt)
278280
{
@@ -296,6 +298,7 @@ int mt6358_mtkaif_calibration_disable(struct snd_soc_component *cmpnt)
296298
capture_gpio_reset(priv);
297299
return 0;
298300
}
301+
EXPORT_SYMBOL_GPL(mt6358_mtkaif_calibration_disable);
299302

300303
int mt6358_set_mtkaif_calibration_phase(struct snd_soc_component *cmpnt,
301304
int phase_1, int phase_2)
@@ -310,6 +313,7 @@ int mt6358_set_mtkaif_calibration_phase(struct snd_soc_component *cmpnt,
310313
phase_2 << RG_AUD_PAD_TOP_PHASE_MODE2_SFT);
311314
return 0;
312315
}
316+
EXPORT_SYMBOL_GPL(mt6358_set_mtkaif_calibration_phase);
313317

314318
/* dl pga gain */
315319
enum {

0 commit comments

Comments
 (0)