Quellcode durchsuchen

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 vor 5 Jahren
Ursprung
Commit
319590242d
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  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;