From 60eaf5fe50079a65a815e04d08cdd4b2de629b33 Mon Sep 17 00:00:00 2001 From: Manoj Kumar N D Date: Tue, 7 Feb 2023 18:47:55 +0530 Subject: [PATCH] asoc : mark used cal block as stale Mark the used cal block as stale so that it is not reused. Change-Id: I142d21d6d32a1b5ad24c3a2708b1df023d70947e Signed-off-by: Manoj Kumar N D --- asoc/msm-pcm-routing-auto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/asoc/msm-pcm-routing-auto.c b/asoc/msm-pcm-routing-auto.c index 10e94d74f8f9..73960cb46e65 100644 --- a/asoc/msm-pcm-routing-auto.c +++ b/asoc/msm-pcm-routing-auto.c @@ -1818,6 +1818,7 @@ static int msm_routing_find_topology_on_index(int fedai_id, int session_type, in if (cal_block != NULL) { topology = ((struct audio_cal_info_adm_top *) cal_block->cal_info)->topology; + cal_utils_mark_cal_used(cal_block); } mutex_unlock(&cal_data[idx]->lock); return topology;