Browse Source

Merge "soc: swr-mstr-ctrl: reset PCM_DP_OUT/IN count when SSR"

qctecmdr 2 years ago
parent
commit
04f7220eea
1 changed files with 2 additions and 0 deletions
  1. 2 0
      soc/swr-mstr-ctrl.c

+ 2 - 0
soc/swr-mstr-ctrl.c

@@ -1700,6 +1700,8 @@ static int swrm_slvdev_datapath_control(struct swr_master *master, bool enable)
 		}
 		clear_bit(DISABLE_PENDING, &swrm->port_req_pending);
 		swrm_cleanup_disabled_port_reqs(master);
+		/* reset enable_count to 0 in SSR if master is already down */
+		swrm->pcm_enable_count = 0;
 		if (!swrm_is_port_en(master)) {
 			dev_dbg(&master->dev, "%s: pm_runtime auto suspend triggered\n",
 				__func__);