mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
asoc: codecs: bolero: Do not process ssr disable if already down
If codec receives ssr disable notification when already in disabled state do not have to process it. This makes sure codec register access are not done when not necessary. Change-Id: Iafc2b03d7c707c46c69ca995d36119929c34c222 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
parent
3adccae508
commit
91850713f5
1 changed files with 6 additions and 0 deletions
|
|
@ -717,6 +717,12 @@ static void bolero_ssr_disable(struct device *dev, void *data)
|
|||
struct bolero_priv *priv = data;
|
||||
int macro_idx;
|
||||
|
||||
if (!priv->dev_up) {
|
||||
dev_err_ratelimited(priv->dev,
|
||||
"%s: already disabled\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
bolero_cdc_notifier_call(priv, BOLERO_WCD_EVT_PA_OFF_PRE_SSR);
|
||||
regcache_cache_only(priv->regmap, true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue