Merge "dsp-kernel: Check pdrcount count along with pd status"

This commit is contained in:
qctecmdr
2024-01-04 12:18:51 -08:00
committed by Gerrit - the friendly Code Review server

View File

@@ -6829,6 +6829,13 @@ static int fastrpc_check_pd_status(struct fastrpc_file *fl, char *sloc_name)
err = fastrpc_get_spd_session(sloc_name, &session, &cid);
if (err || cid != fl->cid)
goto bail;
if ((!strcmp(fl->servloc_name,
AUDIO_PDR_SERVICE_LOCATION_CLIENT_NAME)) &&
(me->channel[cid].spd[session].pdrcount !=
me->channel[cid].spd[session].prevpdrcount)) {
err = -ECONNRESET;
goto bail;
}
#if IS_ENABLED(CONFIG_QCOM_PDR_HELPERS)
if (!strcmp(fl->servloc_name,
AUDIO_PDR_SERVICE_LOCATION_CLIENT_NAME) || !strcmp(fl->servloc_name,