mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
asoc: bolero: Fix slow playback on HPH
After switching from native to non-native clip, observe slowness in clip playback content heard on headphones. Update mclk_mux for enable sequence based on native flag and for disable sequence use the same setting done during enable. CRs-Fixed: 2322232 Change-Id: I795e0620e0239b53cdfdadaf2d57acfb570c4c3b Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
parent
ea24d6da52
commit
7b9cdb66e6
1 changed files with 3 additions and 2 deletions
|
|
@ -970,11 +970,11 @@ static int rx_macro_mclk_enable(struct rx_macro_priv *rx_priv,
|
|||
dev_dbg(rx_priv->dev, "%s: mclk_enable = %u, dapm = %d clk_users= %d\n",
|
||||
__func__, mclk_enable, dapm, rx_priv->rx_mclk_users);
|
||||
|
||||
if (rx_priv->is_native_on)
|
||||
mclk_mux = MCLK_MUX1;
|
||||
mutex_lock(&rx_priv->mclk_lock);
|
||||
if (mclk_enable) {
|
||||
if (rx_priv->rx_mclk_users == 0) {
|
||||
if (rx_priv->is_native_on)
|
||||
mclk_mux = MCLK_MUX1;
|
||||
ret = bolero_request_clock(rx_priv->dev,
|
||||
RX_MACRO, mclk_mux, true);
|
||||
if (ret < 0) {
|
||||
|
|
@ -1014,6 +1014,7 @@ static int rx_macro_mclk_enable(struct rx_macro_priv *rx_priv,
|
|||
regmap_update_bits(regmap,
|
||||
BOLERO_CDC_RX_CLK_RST_CTRL_MCLK_CONTROL,
|
||||
0x01, 0x00);
|
||||
mclk_mux = rx_priv->mclk_mux;
|
||||
bolero_request_clock(rx_priv->dev,
|
||||
RX_MACRO, mclk_mux, false);
|
||||
rx_priv->mclk_mux = MCLK_MUX0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue