Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31959024 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPreetam Singh Ranawat <apranawat@codeaurora.org>
parent 1b0ebc41
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;