Repository navigation
Expand file tree
/
Copy pathmodules.h
More file actions
45 lines (40 loc) · 2.23 KB
/
Copy pathmodules.h
File metadata and controls
45 lines (40 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2019 Intel Corporation. All rights reserved.
*
* Author: Jaroslaw Stelter <jaroslaw.stelter@intel.com>
*/
#ifndef __SOF_AUDIO_MODULES__
#define __SOF_AUDIO_MODULES__
#include <sof/audio/module_adapter/module/generic.h>
/* Intel module adapter is an extension to SOF module adapter component that allows to integrate
* modules developed under IADK (Intel Audio Development Kit)
* and LMDK (Loadable Modules Dev Kit) Framework. Modules uses uniform
* set of interfaces and are linked into separate library. These modules are loaded in runtime
* through library_manager and then after registration into SOF component infrastructure are
* interfaced through module adapter API.
* Since IADK modules uses ProcessingModuleInterface to control/data transfer and AdspSystemService
* to use base FW services from internal module code, there is a communication shim layer defined
* in intel directory.
*
* Since ProcessingModuleInterface consists of virtual functions, there are C++ -> C wrappers
* defined to access the interface calls from SOF code.
*
* The main assumption here was to load IADK Modules without any code modifications. Therefore C++
* function, structures and variables definition are here kept with original form from
* IADK Framework. This provides binary compatibility for already developed 3rd party modules.
*
* There are three entities in intel module adapter package:
* - System Agent - A mediator to allow the custom module to interact with the base SOF FW.
* It calls IADK module entry point and provides all necessary information to
* connect both sides of ProcessingModuleInterface and System Service.
* - System Service - exposes of SOF base FW services to the module.
* - Processing Module Adapter - SOF base FW side of ProcessingModuleInterface API
*
* Using the same philosofy loadable modules are using module adapter to interact with SOF FW.
* Module recognision is done by checking module API version defined in module/module/api_ver.h
* with version read from elf file.
*/
/* Processing Module Adapter API */
extern const struct module_interface processing_module_adapter_interface;
#endif /* __SOF_AUDIO_MODULES__ */