[PATCH v2 2/2] ASoC: rt1015p: delay 300ms after SDB pulling high for calibration

Tzung-Bi Shih tzungbi at google.com
Thu Dec 10 17:47:47 CET 2020


On Thu, Dec 10, 2020 at 11:42 PM Mark Brown <broonie at kernel.org> wrote:
>
> On Thu, Dec 10, 2020 at 11:36:17AM +0800, Tzung-Bi Shih wrote:
>
> > +             if (!rt1015p->calib_done) {
> > +                     msleep(300);
> > +                     rt1015p->calib_done = true;
> > +             }
>
> Might we need to reset calib_done over suspend?  If the device looses
> power I guess it forgets the calibration.

In our environment, the power VBAT and AVDD are still on even if the
system suspends.  In more low power mode, AVDD could probably lose.

But agree with you, in general, suppose the device needs to calibrate
again after suspend/resume is better.


More information about the Alsa-devel mailing list