On Sun, Mar 17, 2024 at 07:27:14PM +0300, Jan Dakinevich wrote: > Both mic bias and ADC's input mode depends on schematics and should be > configurable. What is the better way to give access to these parameters? > Device tree? Yes. > >> + SOC_SINGLE("ADC Mic Bias Switch", LINEIN_CFG, MICBIAS_EN, 1, 0), > >> + SOC_ENUM("ADC Mic Bias Level", a1_adc_mic_bias_level), > > Why would micbias be user controlled rather than a DAPM widget as > > normal? > Yes, I could use SND_SOC_DAPM_SUPPLY, but it supports only raw values, > and doesn't supports enums. Here, I want to use enum to restrict > possible values, because only these values mentioned in the > documentation that I have. A supply is an on/off switch not an enum. Users should not be selecting values at all.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- From: Jan Dakinevich
- Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- References:
- [PATCH 00/25] Introduce support of audio for Amlogic A1 SoC family
- From: Jan Dakinevich
- [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- From: Jan Dakinevich
- Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- From: Mark Brown
- Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- From: Jan Dakinevich
- [PATCH 00/25] Introduce support of audio for Amlogic A1 SoC family
- Prev by Date: Re: [PATCH 09/25] ASoC: meson: g12a-toacodec: add support for A1 SoC family
- Next by Date: Re: [GIT PULL] sound fixes for 6.9-rc1
- Previous by thread: Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- Next by thread: Re: [PATCH 12/25] ASoC: meson: t9015: add support for A1 SoC family
- Index(es):