File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ static void cs42l42_resume(struct sub_codec *cs42l42)
888
888
889
889
/* Initialize CS42L42 companion codec */
890
890
cs8409_i2c_bulk_write (cs42l42 , cs42l42 -> init_seq , cs42l42 -> init_seq_num );
891
- usleep_range ( 30000 , 35000 );
891
+ msleep ( CS42L42_INIT_TIMEOUT_MS );
892
892
893
893
/* Clear interrupts, by reading interrupt status registers */
894
894
cs8409_i2c_bulk_read (cs42l42 , irq_regs , ARRAY_SIZE (irq_regs ));
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ enum cs8409_coefficient_index_registers {
229
229
#define CS42L42_I2C_SLEEP_US (2000)
230
230
#define CS42L42_PDN_TIMEOUT_US (250000)
231
231
#define CS42L42_PDN_SLEEP_US (2000)
232
+ #define CS42L42_INIT_TIMEOUT_MS (45)
232
233
#define CS42L42_FULL_SCALE_VOL_MASK (2)
233
234
#define CS42L42_FULL_SCALE_VOL_0DB (1)
234
235
#define CS42L42_FULL_SCALE_VOL_MINUS6DB (0)
You can’t perform that action at this time.
0 commit comments