[PATCH] ASoC: Fix vaud18 power leakage of mt6359

2020-11-05 Thread Shane Chien
From: "Shane.Chien" vaud18 is power of mt6359 audio path. It should only enable when audio is used, instead of in boot up stage. Once mt6359 audio path is enabled or disabled, vaud18 is controlled by using regulator in supply widget "LDO_VAUD18". Due to vaud18 is controlled by regulator instead o

Re: [PATCH] ASoC: Fix vaud18 power leakage of mt6359

2020-11-06 Thread Mark Brown
On Fri, Nov 06, 2020 at 02:18:37PM +0800, Shane Chien wrote: > +static int mt_vaud18_event(struct snd_soc_dapm_widget *w, > +struct snd_kcontrol *kcontrol, > +int event) > +{ > + struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm