|
@@ -1,6 +1,6 @@
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
|
|
*/
|
|
*/
|
|
|
|
|
|
#ifndef __Q6CORE_H__
|
|
#ifndef __Q6CORE_H__
|
|
@@ -17,7 +17,14 @@
|
|
|
|
|
|
bool q6core_is_adsp_ready(void);
|
|
bool q6core_is_adsp_ready(void);
|
|
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_MSM_AVTIMER)
|
|
int avcs_core_query_timer_offset(int64_t *av_offset, int32_t clock_id);
|
|
int avcs_core_query_timer_offset(int64_t *av_offset, int32_t clock_id);
|
|
|
|
+#else
|
|
|
|
+static inline int avcs_core_query_timer_offset(int64_t *av_offset,
|
|
|
|
+ int32_t clock_id) {
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+#endif
|
|
int q6core_get_service_version(uint32_t service_id,
|
|
int q6core_get_service_version(uint32_t service_id,
|
|
struct avcs_fwk_ver_info *ver_info,
|
|
struct avcs_fwk_ver_info *ver_info,
|
|
size_t size);
|
|
size_t size);
|