ソースを参照

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)