History

ASoC: cs42l42: Remove redundant delays in suspend().

This patch will remove redundant delay and minimise total suspend() function call time.

Vitaly Rodionov committed 2 years ago

Commit 3b4ec341 parent e480c092 files · +2 −4Browse files

Unified · Split

2 files
  1. include/sound/cs42l42.h +2 −3
  2. sound/soc/codecs/cs42l42.c +0 −1
include/sound/cs42l42.h+2−3
@@ -809,8 +809,7 @@ · 808 unmodified lines
809809 #define CS42L42_PLL_LOCK_TIMEOUT_US 1250
810810 #define CS42L42_HP_ADC_EN_TIME_US 20000
811811 #define CS42L42_PDN_DONE_POLL_US 1000
812−#define CS42L42_PDN_DONE_TIMEOUT_US 200000
813−#define CS42L42_PDN_DONE_TIME_MS 100
814−#define CS42L42_FILT_DISCHARGE_TIME_MS 46
812+#define CS42L42_PDN_DONE_TIMEOUT_US 235000
813+#define CS42L42_PDN_DONE_TIME_MS 65
815814
816815 #endif /* __CS42L42_H */
sound/soc/codecs/cs42l42.c+0−1
@@ -2195,7 +2195,6 @@ int cs42l42_suspend(struct device *dev) · 2194 unmodified lines
21952195 /* Discharge FILT+ */
21962196 regmap_update_bits(cs42l42->regmap, CS42L42_PWR_CTL2,
21972197 CS42L42_DISCHARGE_FILT_MASK, CS42L42_DISCHARGE_FILT_MASK);
2198− msleep(CS42L42_FILT_DISCHARGE_TIME_MS);
21992198
22002199 regcache_cache_only(cs42l42->regmap, true);
22012200 gpiod_set_value_cansleep(cs42l42->reset_gpio, 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t