ASOC: APR: Add separate notifier nodes for adsp/modem notifications
APR registers for subsys_notification via audio_notifier for both adsp & modem services, with the same notifier node. This causes intermixing of the audio notifier lists of modem and adsp as the same apr notifier node is added to both adsp & modem list.Make separate notifier nodes for apr adsp & modem notifications to avoid this issue. Change-Id: I4a9146fbe340d02e8af0082d5342e5ac8009e0c4 Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
parent
3d82d66409
commit
3589a465d7
1 changed files with 8 additions and 3 deletions
|
@ -906,7 +906,12 @@ done:
|
||||||
return NOTIFY_OK;
|
return NOTIFY_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct notifier_block service_nb = {
|
static struct notifier_block adsp_service_nb = {
|
||||||
|
.notifier_call = apr_notifier_service_cb,
|
||||||
|
.priority = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct notifier_block modem_service_nb = {
|
||||||
.notifier_call = apr_notifier_service_cb,
|
.notifier_call = apr_notifier_service_cb,
|
||||||
.priority = 0,
|
.priority = 0,
|
||||||
};
|
};
|
||||||
|
@ -936,9 +941,9 @@ static int __init apr_init(void)
|
||||||
|
|
||||||
is_initial_boot = true;
|
is_initial_boot = true;
|
||||||
subsys_notif_register("apr_adsp", AUDIO_NOTIFIER_ADSP_DOMAIN,
|
subsys_notif_register("apr_adsp", AUDIO_NOTIFIER_ADSP_DOMAIN,
|
||||||
&service_nb);
|
&adsp_service_nb);
|
||||||
subsys_notif_register("apr_modem", AUDIO_NOTIFIER_MODEM_DOMAIN,
|
subsys_notif_register("apr_modem", AUDIO_NOTIFIER_MODEM_DOMAIN,
|
||||||
&service_nb);
|
&modem_service_nb);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue