Browse Source

Merge "asoc: wcd938x: move 500ms after dev_up sets to true"

qctecmdr 4 years ago
parent
commit
ddba57b58c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      asoc/codecs/wcd938x/wcd938x.c

+ 2 - 2
asoc/codecs/wcd938x/wcd938x.c

@@ -2184,8 +2184,6 @@ static int wcd938x_event_notify(struct notifier_block *block,
 				__func__);
 		} else {
 			wcd938x_mbhc_hs_detect(component, mbhc->mbhc_cfg);
-			if (wcd938x->usbc_hs_status)
-				mdelay(500);
 		}
 		wcd938x->mbhc->wcd_mbhc.deinit_in_progress = false;
 		wcd938x->dev_up = true;
@@ -2193,6 +2191,8 @@ static int wcd938x_event_notify(struct notifier_block *block,
 			blocking_notifier_call_chain(&wcd938x->notifier,
 						     WCD938X_EVT_SSR_UP,
 						     NULL);
+		if (wcd938x->usbc_hs_status)
+			mdelay(500);
 		break;
 	case BOLERO_SLV_EVT_CLK_NOTIFY:
 		snd_soc_component_update_bits(component,