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:

committed by
Gerrit - the friendly Code Review server

orang tua
1b0ebc41e0
melakukan
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;
|
||||
|
Reference in New Issue
Block a user