On Tue, Feb 18, 2025 at 06:35:54PM +1000, James Calligeros wrote: > Multiple amps can be connected to the same SDZ GPIO. Using raw GPIOs for > this breaks, as there is no concept of refcounting/sharing. In order to > model these platforms, introduce support for an SDZ "regulator". This > allows us to represent the SDZ GPIO as a simple regulator-fixed, and > then the regulator core takes care of refcounting so that all codecs are > only powered down once all the driver instances are in the suspend > state. I get that the reference counting that the regulator API does is useful here but this isn't a regulator so shouldn't be exposed as such, particularly since this winds up being visible in the DT ABI. I could've sworn that someone did some helpers for this case but now I go looking I can't find them, we certainly don't use any in the regulator core. > @@ -210,7 +220,7 @@ static const struct snd_soc_dapm_widget tas2764_dapm_widgets[] = { > SND_SOC_DAPM_DAC("DAC", NULL, SND_SOC_NOPM, 0, 0), > SND_SOC_DAPM_OUTPUT("OUT"), > SND_SOC_DAPM_SIGGEN("VMON"), > - SND_SOC_DAPM_SIGGEN("IMON") > + SND_SOC_DAPM_SIGGEN("IMON"), > }; > Spurious unrelated change.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH v2 20/29] ASoC: tas2764: Add SDZ regulator
- From: James Calligeros
- Re: [PATCH v2 20/29] ASoC: tas2764: Add SDZ regulator
- References:
- [PATCH v2 00/29] ASoC: tas27{64,70}: improve support for Apple codec variants
- From: James Calligeros
- [PATCH v2 20/29] ASoC: tas2764: Add SDZ regulator
- From: James Calligeros
- [PATCH v2 00/29] ASoC: tas27{64,70}: improve support for Apple codec variants
- Prev by Date: Re: [PATCH 0/7] Adjust all AMD audio drivers to use AMD_NODE
- Next by Date: Re: [PATCH v2 21/29] ASoC: tas2764: Add reg defaults for TAS2764_INT_CLK_CFG
- Previous by thread: [PATCH v2 20/29] ASoC: tas2764: Add SDZ regulator
- Next by thread: Re: [PATCH v2 20/29] ASoC: tas2764: Add SDZ regulator
- Index(es):
![]() |