lkml.org 
[lkml]   [2024]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2024-05-20 16:35    [W:0.044 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site