audio-kernel: Synchronize hw vote and unvote requests
HW vote and unvote is currently called from multiple
clients leading to synchronization issues
during SSR/PDR scenarios. Synchronize all the vote requests
by using digital codec resource manager.
Change-Id: I7e63f69ab5d761a3bb4c7ce70bbef2e8bfd76cfb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
diff --git a/dsp/q6_init.c b/dsp/q6_init.c
index fb18741..e990f2a 100644
--- a/dsp/q6_init.c
+++ b/dsp/q6_init.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017, 2019-2020 The Linux Foundation. All rights reserved.
*/
#include <linux/kernel.h>
@@ -24,11 +24,13 @@
avtimer_init();
msm_mdf_init();
voice_mhi_init();
+ digital_cdc_rsc_mgr_init();
return 0;
}
static void __exit audio_q6_exit(void)
{
+ digital_cdc_rsc_mgr_exit();
msm_mdf_exit();
avtimer_exit();
audio_slimslave_exit();