瀏覽代碼

dsp-kernel: add session id for SSR notifications

Currently driver is passing session id as zero when SSR notification
is queued. This will cause issues in case of multisession, only
default session will get the notification. Add a change to pass
proper session ID to make sure all the sessions are getting notified.

Change-Id: I1f3bb7169ff9c7b725e3a69dc098c56197e4cbaf
Signed-off-by: ANANDU KRISHNAN E <[email protected]>
quic_anane 1 年之前
父節點
當前提交
c5d0af46d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dsp/adsprpc.c

+ 1 - 1
dsp/adsprpc.c

@@ -2331,7 +2331,7 @@ static void fastrpc_notify_drivers(struct fastrpc_apps *me, int cid)
 	spin_lock_irqsave(&me->hlock, irq_flags);
 	hlist_for_each_entry_safe(fl, n, &me->drivers, hn) {
 		if (fl->cid == cid) {
-			fastrpc_queue_pd_status(fl, cid, FASTRPC_DSP_SSR, 0);
+			fastrpc_queue_pd_status(fl, cid, FASTRPC_DSP_SSR, fl->sessionid);
 			fastrpc_notify_users(fl);
 		}
 	}