ASoC: wcd937x: Fix playback stop issue after SSR/PDR on special hs

If we start playback on special hs after record is done and perform
SSR/PDR then playback gets paused. This happens because ANA_TX_DIV2_CLK
which needs to be enabled for special hs gets disabled after record
is stopped. Maintain a count for ANA_DIV2_CLK to enable/disable it
as required.

Change-Id: Ic73475c83cb16e3c014f35b8d46ee22d2e7a2efd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha
2019-02-13 12:55:30 +05:30
committed by Meng Wang
parent 256a85678f
commit 13faf538b3
2 changed files with 33 additions and 1 deletions

View File

@@ -83,6 +83,8 @@ struct wcd937x_priv {
struct snd_info_entry *entry;
struct snd_info_entry *version_entry;
int ear_rx_path;
int ana_clk_count;
struct mutex ana_tx_clk_lock;
};
struct wcd937x_micbias_setting {