dsp: redefine audio_notifier_init to silence PDR error
CONFIG_MSM_QDSP6_PDR is not enabled on Auto targets.
Change-Id: If7ac374bbe88635eeb328593b4d3a9f01a716c5c
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
diff --git a/dsp/audio_notifier.c b/dsp/audio_notifier.c
index 56cfa31..7a8249d 100644
--- a/dsp/audio_notifier.c
+++ b/dsp/audio_notifier.c
@@ -606,6 +606,7 @@
return 0;
}
+#ifdef CONFIG_MSM_QDSP6_PDR
static int __init audio_notifier_init(void)
{
int ret;
@@ -624,6 +625,17 @@
return 0;
}
+#else
+static int __init audio_notifier_init(void)
+{
+ audio_notifier_subsys_init();
+ audio_notifier_disable_service(AUDIO_NOTIFIER_PDR_SERVICE);
+
+ audio_notifier_late_init();
+
+ return 0;
+}
+#endif
module_init(audio_notifier_init);
static void __exit audio_notifier_exit(void)