36#ifndef __MODULES_INCLUDE_AUDIO_AUDIO_OUTPUTMIX_API_H
37#define __MODULES_INCLUDE_AUDIO_AUDIO_OUTPUTMIX_API_H
60#include "memutils/message/MsgPacket.h"
66#define AS_FEATURE_OUTPUTMIX_ENABLE
70#define LENGTH_INIT_OUTPUTMIXER 4
74#define LENGTH_INITMPP 5
78#define LENGTH_SUB_SETMPP_COMMON 4
82#define LENGTH_SUB_SETMPP_XLOUD 4
86#define AS_POSTPROC_FILE_PATH_LEN (AS_AUDIO_DSP_PATH_LEN)
88#define PF_COMMAND_PACKET_SIZE_MAX (32)
179 OutputMixDoneCmdTypeNum
211 AsPostprocTypeInvalid = 0xff,
231 uint8_t render_path1_filter_dsp;
262 uint8_t render_path1_filter_pcm;
269 uint8_t render_path1_filter_dsp;
320typedef void (*OutputMixerCallback)(MsgQueId requester_dtq, MsgType msgtype,
AsOutputMixDoneParam *param);
321typedef void (*OutputMixerErrorCallback)(uint8_t handle);
348 OutputMixerCallback cb;
352 OutputMixerErrorCallback error_cb;
388 PcmProcDoneCallback callback;
477 \n Deprecated create API is used. \
478 \n Use \"AS_CreateOutputMixer(AsCreateOutputMixParam_t * \
479 \n AudioAttentionCb)\". \
CXD5602 Audio Common Definitions.
__attribute__((deprecated("\nDeprecated attention callback type is used. \
\nPlease use \"AudioAttentionCb\" as callback type. \
\n"))) int AS_CreateAudioManager(AudioSubSystemIDs ids
Activate AudioSubSystem[Deprecated] This API is to make it compatible with old application....
void(* AudioAttentionCb)(const ErrorAttentionParam *attparam)
Definition: audio_common_defs.h:810
AsOutputMixerHandle
Definition: audio_outputmix_api.h:94
AsOutputMixerType
Definition: audio_outputmix_api.h:123
AsOutputMixDevice
Definition: audio_outputmix_api.h:105
bool AS_InitOutputMixer(uint8_t handle, FAR AsInitOutputMixer *initparam)
Init audio output mixer.
#define AS_POSTPROC_FILE_PATH_LEN
Length of Recognizer dsp file name and path.
Definition: audio_outputmix_api.h:86
bool AS_FrameTermFineControlOutputMixer(uint8_t handle, FAR AsFrameTermFineControl *ftermparam)
Set clock recovery parameters.
AsClkRecoveryDirection
Definition: audio_outputmix_api.h:185
bool AS_DeleteOutputMix(void)
Delete output mixer.
bool AS_SetPostprocOutputMixer(uint8_t handle, FAR AsSetPostProc *setppparam)
Set parameters Postproces DSP.
bool AS_DeactivateOutputMixer(uint8_t handle, FAR AsDeactivateOutputMixer *deactparam)
Deactivate audio output mixer.
bool AS_InitPostprocOutputMixer(uint8_t handle, FAR AsInitPostProc *initppparam)
Init Postproces DSP.
AsPostprocType
Definition: audio_outputmix_api.h:202
bool AS_ActivateOutputMixer(uint8_t handle, FAR AsActivateOutputMixer *actparam)
Activate audio output mixer.
AsOutputMixDoneCmdType
Definition: audio_outputmix_api.h:154
bool AS_CreateOutputMixer(FAR AsCreateOutputMixParam_t *param, AudioAttentionCb attcb)
Create audio output mixer.
bool AS_checkAvailabilityOutputMixer(void)
Check availability of OutputMixer.
AsOutputMixerPostFilter
Definition: audio_outputmix_api.h:142
bool AS_SendDataOutputMixer(FAR AsSendDataOutputMixer *sendparam)
Send audio data via outputmixer.
@ OutputMixer0
OutputMixer No.0.
Definition: audio_outputmix_api.h:97
@ OutputMixer1
OutputMixer No.1.
Definition: audio_outputmix_api.h:101
@ MainSoundEffectMix
Main & SoundEffet.
Definition: audio_outputmix_api.h:134
@ MainOnly
Main.
Definition: audio_outputmix_api.h:126
@ SoundEffectOnly
SoundEffet.
Definition: audio_outputmix_api.h:130
@ A2dpSrcOutputDevice
A2DP out.
Definition: audio_outputmix_api.h:116
@ I2SOutputDevice
I2S out.
Definition: audio_outputmix_api.h:112
@ HPOutputDevice
Speaker out.
Definition: audio_outputmix_api.h:108
@ OutputMixNoAdjust
No adjust.
Definition: audio_outputmix_api.h:192
@ OutputMixAdvance
Adjust to the + direction.
Definition: audio_outputmix_api.h:188
@ OutputMixDelay
Adjust to the - direction.
Definition: audio_outputmix_api.h:196
@ AsPostprocTypeThrough
Definition: audio_outputmix_api.h:205
@ AsPostprocTypeUserCustom
Definition: audio_outputmix_api.h:209
@ OutputMixSetPostDone
Set Postproc command done.
Definition: audio_outputmix_api.h:177
@ OutputMixInitPostDone
Init Postproc command done.
Definition: audio_outputmix_api.h:173
@ OutputMixDeactDone
Deactivation done.
Definition: audio_outputmix_api.h:165
@ OutputMixInitDone
Init done.
Definition: audio_outputmix_api.h:161
@ OutputMixSetClkRcvDone
Set Clock recovery done.
Definition: audio_outputmix_api.h:169
@ OutputMixActDone
Activation done.
Definition: audio_outputmix_api.h:157
@ PostFilterDisable
Definition: audio_outputmix_api.h:145
@ PostFilterEnable
Definition: audio_outputmix_api.h:149
Definition: audio_outputmix_api.h:324
uint8_t output_device
[in] Output device type
Definition: audio_outputmix_api.h:330
uint8_t post_enable
[in] Enable postfilter
Definition: audio_outputmix_api.h:344
uint8_t mixer_type
[in] Mixer typ
Definition: audio_outputmix_api.h:337
Definition: audio_outputmix_api.h:276
AsOutputMixMsgQueId_t msgq_id
[in] ID for sending messages to each function
Definition: audio_outputmix_api.h:279
AsOutputMixPoolId_old_t pool_id
[in] ID of memory pool for processing data
Definition: audio_outputmix_api.h:283
Definition: audio_outputmix_api.h:288
AsOutputMixMsgQueId_t msgq_id
[in] ID for sending messages to each function
Definition: audio_outputmix_api.h:291
AsOutputMixPoolId_t pool_id
[in] ID of memory pool for processing data
Definition: audio_outputmix_api.h:295
Definition: audio_outputmix_api.h:373
Definition: audio_outputmix_api.h:399
int8_t direction
[in] Recovery direction (advance or delay)
Definition: audio_outputmix_api.h:402
uint32_t times
[in] Recovery term
Definition: audio_outputmix_api.h:406
Definition: audio_outputmix_api.h:359
uint8_t postproc_type
[in] Set postproc type. Use AsPostprocType enum type
Definition: audio_outputmix_api.h:362
Definition: audio_outputmix_api.h:413
uint8_t cmd_type
Definition: audio_outputmix_api.h:416
uint8_t * addr
Definition: audio_outputmix_api.h:420
uint32_t size
Definition: audio_outputmix_api.h:424
Definition: audio_outputmix_api.h:302
int handle
Definition: audio_outputmix_api.h:305
bool result
Definition: audio_outputmix_api.h:313
uint32_t ecode
Definition: audio_outputmix_api.h:317
AsOutputMixDoneCmdType done_type
Definition: audio_outputmix_api.h:309
Definition: audio_outputmix_api.h:217
uint8_t mng
[in] Message queue id of audio_manager
Definition: audio_outputmix_api.h:224
uint8_t mixer
[in] Message queue id of output mixer
Definition: audio_outputmix_api.h:220
uint8_t render_path0_filter_dsp
[in] Message queue id of dsp Effective only when use postfilter
Definition: audio_outputmix_api.h:230
Definition: audio_outputmix_api.h:256
uint8_t render_path0_filter_pcm
[in] Memory pool id of pcm data Effective only when use postfilter
Definition: audio_outputmix_api.h:261
uint8_t render_path0_filter_dsp
[in] Memory pool id of dsp command data Effective only when use postfilter
Definition: audio_outputmix_api.h:268
Definition: audio_outputmix_api.h:238
MemMgrLite::PoolId render_path0_filter_pcm
[in] Memory pool id of pcm data Effective only when use postfilter
Definition: audio_outputmix_api.h:243
MemMgrLite::PoolId render_path0_filter_dsp
[in] Memory pool id of dsp command data Effective only when use postfilter
Definition: audio_outputmix_api.h:250
Definition: audio_common_defs.h:703
Definition: audio_outputmix_api.h:381
uint8_t handle
[in] Handle of OutputMixer
Definition: audio_outputmix_api.h:384
AsPcmDataParam pcm
[in] PCM data parameter
Definition: audio_outputmix_api.h:392
Definition: MemMgrTypes.h:88
Definition: audio_outputmix_api.h:433