diff options
author | Laxminath Kasam <lkasam@codeaurora.org> | 2017-08-01 22:02:15 +0530 |
---|---|---|
committer | Martin Fick <mfick@codeaurora.org> | 2017-08-18 16:56:12 -0600 |
commit | 605b42f92c7892864eb0a4ad42c043f656281d76 (patch) | |
tree | f7fe7d07b49c75268d62daf41ff18cae4b7e6d36 /asoc/codecs/wcd_cmi_api.h | |
parent | 84f7f7314410065b7fb0cd4100e1073b6e2ca1a0 (diff) | |
download | msm-extra-605b42f92c7892864eb0a4ad42c043f656281d76.tar.gz |
audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders.
asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)
Restructure drivers to above folder format.
Include directories also follow above format.
Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Diffstat (limited to 'asoc/codecs/wcd_cmi_api.h')
-rw-r--r-- | asoc/codecs/wcd_cmi_api.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/asoc/codecs/wcd_cmi_api.h b/asoc/codecs/wcd_cmi_api.h new file mode 100644 index 00000000..39be6417 --- /dev/null +++ b/asoc/codecs/wcd_cmi_api.h @@ -0,0 +1,43 @@ +/* Copyright (c) 2014, 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 __CMI_API__ +#define __CMI_API__ + +enum cmi_api_result { + CMI_API_FAILED = 1, + CMI_API_BUSY, + CMI_API_NO_MEMORY, + CMI_API_NOT_READY, +}; + +enum cmi_api_event { + CMI_API_MSG = 1, + CMI_API_OFFLINE, + CMI_API_ONLINE, + CMI_API_DEINITIALIZED, +}; + +struct cmi_api_notification { + enum cmi_api_event event; + enum cmi_api_result result; + void *message; +}; + +void *cmi_register( + void notification_callback + (const struct cmi_api_notification *parameter), + u32 service); +enum cmi_api_result cmi_deregister(void *reg_handle); +enum cmi_api_result cmi_send_msg(void *message); + +#endif /*__CMI_API__*/ |