[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yx76gpaq0wbuek72@sirena.org.uk>
Date: Mon, 12 Sep 2022 10:23:14 +0100
From: Mark Brown <broonie@...nel.org>
To: Mengchen Li <mengchenli64@...il.com>
Cc: lgirdwood@...il.com, perex@...ex.cz, tiwai@...e.com,
ckeepax@...nsource.cirrus.com, steve@....org,
patches@...nsource.cirrus.com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: wm8978: Support the recording function of codec
On Mon, Sep 12, 2022 at 04:23:05PM +0800, Mengchen Li wrote:
> @@ -822,7 +822,9 @@ static int wm8978_hw_params(struct snd_pcm_substream *substream,
>
> snd_soc_component_write(component, WM8978_AUDIO_INTERFACE, iface_ctl);
> snd_soc_component_write(component, WM8978_ADDITIONAL_CONTROL, add_ctl);
> -
> + /* Enable MICBEN */
> + snd_soc_component_write(component, WM8978_POWER_MANAGEMENT_1,
> + snd_soc_component_read(component, WM8978_POWER_MANAGEMENT_1) | 0x10);
This should be done by creating a supply widget for the MICBIAS
which will be connected by the machine driver to the microphone
widget. This will mean that the MICBIAS is only enabled when
it's actively being used which saves power. Look for MICBIAS
widgets in other CODEC drivers for examples.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists