[alsa-devel] [PATCH] ASoC: add RT5677 CODEC driver
Oder Chiou
oder_chiou at realtek.com
Mon Jun 9 07:22:57 CEST 2014
> > +static int rt5677_set_micbias1_event(struct snd_soc_dapm_widget *w,
> > + struct snd_kcontrol *kcontrol, int event) {
> > + struct snd_soc_codec *codec = w->codec;
> > + struct rt5677_priv *rt5677 = snd_soc_codec_get_drvdata(codec);
> > +
> > + switch (event) {
> > + case SND_SOC_DAPM_POST_PMU:
> > + regmap_update_bits(rt5677->regmap, RT5677_PWR_ANLG2,
> > + RT5677_PWR_CLK_MB1 | RT5677_PWR_PP_MB1 |
> > + RT5677_PWR_CLK_MB, RT5677_PWR_CLK_MB1 |
> > + RT5677_PWR_PP_MB1 | RT5677_PWR_CLK_MB);
>
> What does this do - I note we never undo this?
>
We will add a PMD case for this event, thanks.
More information about the Alsa-devel
mailing list