mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "ASoC: sdm845: fix clock refcount for MI2S/AUXPCM shutdown"
This commit is contained in:
commit
44c7f62e5f
1 changed files with 1 additions and 4 deletions
|
|
@ -4153,7 +4153,6 @@ static void msm_aux_pcm_snd_shutdown(struct snd_pcm_substream *substream)
|
|||
dev_err(rtd->card->dev,
|
||||
"%s lpaif_tert_muxsel_virt_addr is NULL\n",
|
||||
__func__);
|
||||
auxpcm_intf_conf[index].ref_cnt++;
|
||||
}
|
||||
}
|
||||
mutex_unlock(&auxpcm_intf_conf[index].lock);
|
||||
|
|
@ -4715,11 +4714,9 @@ static void msm_mi2s_snd_shutdown(struct snd_pcm_substream *substream)
|
|||
mutex_lock(&mi2s_intf_conf[index].lock);
|
||||
if (--mi2s_intf_conf[index].ref_cnt == 0) {
|
||||
ret = msm_mi2s_set_sclk(substream, false);
|
||||
if (ret < 0) {
|
||||
if (ret < 0)
|
||||
pr_err("%s:clock disable failed for MI2S (%d); ret=%d\n",
|
||||
__func__, index, ret);
|
||||
mi2s_intf_conf[index].ref_cnt++;
|
||||
}
|
||||
}
|
||||
mutex_unlock(&mi2s_intf_conf[index].lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue