Prechádzať zdrojové kódy

asoc: lpass-cdc: Disable clk when core vote fails.

During ssr, when powering down audio path and core vote fails, 
it directly exits without disabling clock. After adsp is up, 
it will enable both RX_MCLk and RX_TX_MCLK which causes
glitch on headset output.

Change-Id: I98d3cdbffa0a5ae1ac4064579a52a29b02d4ae3e
Signed-off-by: Deepali Jindal <[email protected]>
Deepali Jindal 3 rokov pred
rodič
commit
a7de3376f2

+ 0 - 1
asoc/codecs/lpass-cdc/lpass-cdc-rx-macro.c

@@ -1418,7 +1418,6 @@ static int lpass_cdc_rx_macro_mclk_enable(
 				dev_err(rx_priv->dev,
 					"%s: rx request core vote failed\n",
 					__func__);
-				goto exit;
 			}
 			lpass_cdc_clk_rsc_request_clock(rx_priv->dev,
 						 rx_priv->default_clk_id,

+ 0 - 1
asoc/codecs/lpass-cdc/lpass-cdc-va-macro.c

@@ -273,7 +273,6 @@ static int lpass_cdc_va_macro_mclk_enable(
 			dev_err(va_priv->dev,
 				"%s: va request core vote failed\n",
 				__func__);
-			goto exit;
 		}
 		lpass_cdc_clk_rsc_request_clock(va_priv->dev,
 					va_priv->default_clk_id,