瀏覽代碼

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

qctecmdr 4 年之前
父節點
當前提交
564e35a030
共有 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;