Browse Source

soc: swr-mstr-ctrl: update sampleinterval low only when disconnect swr port

Register SWRM_DP_PORT_CTRL_BANK only has sample interval low.
When disconnecting swr port, only update sampleinterval low for
active port.

Change-Id: I79e52a54c5ff1d08cf320835a8401041a10b8181
Signed-off-by: Meng Wang <[email protected]>
Meng Wang 4 years ago
parent
commit
c33716c930
1 changed files with 1 additions and 1 deletions
  1. 1 1
      soc/swr-mstr-ctrl.c

+ 1 - 1
soc/swr-mstr-ctrl.c

@@ -1284,7 +1284,7 @@ static void swrm_disable_ports(struct swr_master *master,
 					<< SWRM_DP_PORT_CTRL_OFFSET2_SHFT);
 		value |= ((mport->offset1)
 				<< SWRM_DP_PORT_CTRL_OFFSET1_SHFT);
-		value |= mport->sinterval;
+		value |= (mport->sinterval & 0xFF);
 
 		swr_master_write(swrm,
 				SWRM_DP_PORT_CTRL_BANK((i + 1), bank),