On Wed, Dec 09, 2020 at 10:30:43AM +0100, Jaroslav Kysela wrote:
Dne 09. 12. 20 v 4:37 Tzung-Bi Shih napsal(a):
RT1015p needs 300ms delay after SDB pulling high for internal calibration during the power on sequence.
Delays 300ms right before data sends out to avoid data truncated.
I think that this codec driver should be redesigned to add this power-up delay the the correct sequence like in rt1015.c - rt1015_amp_drv_event().
Those huge delays in the trigger callbacks looks and are messy.
Right, trigger is supposed to be very fast and this sort of stuff would normally be part of the power up sequence and those are handled through DAPM. set_bias_level() is another option for placing this sort of thing depending on what exactly is being controlled here.