On Wed, Mar 05, 2025 at 06:18:41PM +0100, AngeloGioacchino Del Regno wrote: > Get to that mt6359-accdet.h header and: > #if IS_ENABLED(CONFIG_SND_SOC_MT6359_ACCDET) > function signatures > #else > static .... { return -EINVAL; (or whatever else) } > #endif > It should probably be return 0 for the registration/unregistration functions so the caller doesn't fail if it checks the return code when the accessory detection is configured out.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- From: Nícolas F. R. A. Prado
- Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- References:
- [PATCH v2 0/3] Allow retrieving accessory detection reference on MT8188
- From: Nícolas F. R. A. Prado
- [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- From: Nícolas F. R. A. Prado
- Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- From: AngeloGioacchino Del Regno
- [PATCH v2 0/3] Allow retrieving accessory detection reference on MT8188
- Prev by Date: Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- Next by Date: [syzbot] [sound?] KCSAN: data-race in snd_seq_poll / snd_seq_pool_init
- Previous by thread: Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- Next by thread: Re: [PATCH v2 3/3] ASoC: mediatek: mt8188-mt6359: Add accdet headset jack detect support
- Index(es):
![]() |