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

Commit ad4beb82 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu Committed by Gerrit - the friendly Code Review server
Browse files

msm: adsprpc: handle audio daemon connection to aDSP



Mark audio pd services up, if the current state is up
during audio pdr registration.

Change-Id: Ic3c148e5b7a547decfc5ca823940db6e0208530c
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent fc8e63be
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3512,8 +3512,16 @@ static int fastrpc_get_service_location_notify(struct notifier_block *nb,
				pdr->domain_list[i].name,
				pdr->domain_list[i].instance_id,
				&spd->pdrnb, &curr_state);
			if (IS_ERR(spd->pdrhandle))
			if (IS_ERR(spd->pdrhandle)) {
				pr_err("ADSPRPC: Unable to register notifier\n");
			} else if (curr_state ==
				SERVREG_NOTIF_SERVICE_STATE_UP_V01) {
				pr_info("ADSPRPC: STATE_UP_V01 received\n");
				spd->ispdup = 1;
			} else if (curr_state ==
				SERVREG_NOTIF_SERVICE_STATE_UNINIT_V01) {
				pr_info("ADSPRPC: STATE_UNINIT_V01 received\n");
			}
			break;
		}
	}