소스 검색

asoc: bolero: restore all codec registers after SSR

Some bolero codec registers are not correctly restored after
SSR and causes DMICs on bolero don't work. Add this change to
restore all bolero codec registers after SSR.

Change-Id: I3666a77f802f62452a0e0de4859f48a0f9e5cbb1
Signed-off-by: Meng Wang <[email protected]>
Meng Wang 5 년 전
부모
커밋
930d9751a1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      asoc/codecs/bolero/bolero-cdc.c

+ 2 - 0
asoc/codecs/bolero/bolero-cdc.c

@@ -623,6 +623,8 @@ static int bolero_ssr_enable(struct device *dev, void *data)
 	mutex_lock(&priv->clk_lock);
 	priv->dev_up = true;
 	mutex_unlock(&priv->clk_lock);
+	regcache_mark_dirty(priv->regmap);
+	regcache_sync(priv->regmap);
 	/* call ssr event for supported macros */
 	for (macro_idx = START_MACRO; macro_idx < MAX_MACRO; macro_idx++) {
 		if (!priv->macro_params[macro_idx].event_handler)