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 <apranawat@codeaurora.org>
This commit is contained in:
Preetam Singh Ranawat
2020-04-22 16:57:02 +05:30
کامیت شده توسط Gerrit - the friendly Code Review server
والد 1b0ebc41e0
کامیت 319590242d

مشاهده پرونده

@@ -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;