dsp: support mdf memory share cmd
Add support for MultiDSP framework (MDF) memory share command in q6core driver. Change-Id: Iff0da10fe835f1fce50d2725960ded5c96237955 Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
这个提交包含在:
44
include/dsp/msm_mdf.h
普通文件
44
include/dsp/msm_mdf.h
普通文件
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef _LINUX_MSM_MDF_H
|
||||
#define _LINUX_MSM_MDF_H
|
||||
|
||||
#ifdef CONFIG_MSM_MDF
|
||||
|
||||
/**
|
||||
* msm_mdf_mem_init - allocate and map memory to ADSP be shared
|
||||
* across multiple remote DSPs.
|
||||
*/
|
||||
int msm_mdf_mem_init(void);
|
||||
|
||||
/**
|
||||
* msm_mdf_mem_init - unmap and free memory to ADSP.
|
||||
*/
|
||||
int msm_mdf_mem_deinit(void);
|
||||
|
||||
#else
|
||||
|
||||
static inline int msm_mdf_mem_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int msm_mdf_mem_deinit(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MSM_MDF */
|
||||
|
||||
#endif /* _LINUX_MSM_MDF_H */
|
在新工单中引用
屏蔽一个用户