Skip to content

Commit 0116a7d

Browse files
nfrapradobroonie
authored andcommitted
ASoC: mediatek: mt6359: Add stub for mt6359_accdet_enable_jack_detect
Add a stub for mt6359_accdet_enable_jack_detect() to prevent linker failures in the machine sound drivers calling it when CONFIG_SND_SOC_MT6359_ACCDET is not enabled. Suggested-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Nícolas F. R. A. Prado <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent cf536e2 commit 0116a7d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sound/soc/codecs/mt6359-accdet.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ struct mt6359_accdet {
123123
struct workqueue_struct *jd_workqueue;
124124
};
125125

126+
#if IS_ENABLED(CONFIG_SND_SOC_MT6359_ACCDET)
126127
int mt6359_accdet_enable_jack_detect(struct snd_soc_component *component,
127128
struct snd_soc_jack *jack);
129+
#else
130+
static inline int
131+
mt6359_accdet_enable_jack_detect(struct snd_soc_component *component,
132+
struct snd_soc_jack *jack)
133+
{
134+
return -EOPNOTSUPP;
135+
}
136+
#endif
128137
#endif

0 commit comments

Comments
 (0)