浏览代码

asoc: msm-compress: Reset channel map flag during close.

For some of the clips improper channel map is applied when not
set from userspace.
Reset channel map flag to apply default channel map.

Change-Id: Ic128b835ecea632c99fba5b14471fc76e767b80e
Signed-off-by: Preetam Singh Ranawat <[email protected]>
Preetam Singh Ranawat 5 年之前
父节点
当前提交
319590242d
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      asoc/msm-compress-q6-v2.c

+ 3 - 0
asoc/msm-compress-q6-v2.c

@@ -1978,6 +1978,9 @@ static int msm_compr_playback_free(struct snd_compr_stream *cstream)
 		kfree(pdata->dec_params[soc_prtd->dai_link->id]);
 		pdata->dec_params[soc_prtd->dai_link->id] = NULL;
 	}
+	if (pdata->ch_map[soc_prtd->dai_link->id]) {
+		pdata->ch_map[soc_prtd->dai_link->id]->set_ch_map = false;
+	}
 	pdata->is_in_use[soc_prtd->dai_link->id] = false;
 	kfree(prtd);
 	runtime->private_data = NULL;