浏览代码

Revert "asoc: codecs: wsa884x: Remove pre ssr handling"

This reverts commit 89d62fdc0fe56b621c99123fa8a7511df4bec01d.

Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <[email protected]>
V S Ganga VaraPrasad (VARA) Adabala 1 年之前
父节点
当前提交
519865f2f0
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      asoc/codecs/wsa884x/wsa884x.c

+ 6 - 2
asoc/codecs/wsa884x/wsa884x.c

@@ -1847,10 +1847,14 @@ static int wsa884x_event_notify(struct notifier_block *nb,
 		return -EINVAL;
 		return -EINVAL;
 
 
 	switch (event) {
 	switch (event) {
-	case BOLERO_SLV_EVT_SSR_UP:
+	case BOLERO_SLV_EVT_PA_OFF_PRE_SSR:
+		if (test_bit(SPKR_STATUS, &wsa884x->status_mask))
+			snd_soc_component_update_bits(wsa884x->component,
+				REG_FIELD_VALUE(PA_FSM_EN, GLOBAL_PA_EN, 0x00));
 		wsa884x_swr_down(wsa884x);
 		wsa884x_swr_down(wsa884x);
-		usleep_range(500, 510);
+		break;
 
 
+	case BOLERO_SLV_EVT_SSR_UP:
 		wsa884x_swr_up(wsa884x);
 		wsa884x_swr_up(wsa884x);
 		/* Add delay to allow enumerate */
 		/* Add delay to allow enumerate */
 		usleep_range(20000, 20010);
 		usleep_range(20000, 20010);