[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1aed24a7-ab2a-4c2b-a3bc-2b907e091624@sirena.org.uk>
Date: Mon, 20 May 2024 15:35:38 +0100
From: Mark Brown <broonie@...nel.org>
To: Artur Weber <aweber.kernel@...il.com>
Cc: Sylwester Nawrocki <s.nawrocki@...sung.com>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>, Rob Herring <robh@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Alim Akhtar <alim.akhtar@...sung.com>, alsa-devel@...a-project.org,
linux-sound@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht
Subject: Re: [PATCH v3 3/8] ASoC: samsung: midas_wm1811: Add headset mic bias
supply support
On Sun, May 19, 2024 at 10:17:49AM +0200, Artur Weber wrote:
> +static int midas_headset_mic_bias(struct snd_soc_dapm_widget *w,
> + struct snd_kcontrol *kcontrol, int event)
> +{
> + struct snd_soc_card *card = w->dapm->card;
> + struct midas_priv *priv = snd_soc_card_get_drvdata(card);
> +
> + if (!priv->reg_headset_mic_bias)
> + return 0;
> +
> + switch (event) {
> + case SND_SOC_DAPM_PRE_PMU:
> + return regulator_enable(priv->reg_headset_mic_bias);
> + case SND_SOC_DAPM_POST_PMD:
> + return regulator_disable(priv->reg_headset_mic_bias);
> + }
We have SND_SOC_DAPM_REGULATOR_SUPPLY?
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists