36#ifndef __AUDIOLITE_INCLUDE_ALWORKER_COMM_H
37#define __AUDIOLITE_INCLUDE_ALWORKER_COMM_H
48#ifndef BUILD_TGT_ASMPWORKER
57#define AL_COMM_MESSAGE_NONE (0)
58#define AL_COMM_MESSAGE_SYS (1)
59#define AL_COMM_MESSAGE_FMEM (2)
60#define AL_COMM_MESSAGE_OMEM (3)
61#define AL_COMM_MESSAGE_INST (4)
62#define AL_COMM_MESSAGE_USER (5)
64#define AL_COMM_MSGTYPE_NONE (0)
65#define AL_COMM_MSGTYPE_ASYNC (1)
66#define AL_COMM_MSGTYPE_SYNC (2)
67#define AL_COMM_MSGTYPE_RESP (3)
69#define AL_COMM_MSGCODESYS_NONE (0)
70#define AL_COMM_MSGCODESYS_STOP (1)
71#define AL_COMM_MSGCODESYS_PAUSE (2)
72#define AL_COMM_MSGCODESYS_PLAY (3)
73#define AL_COMM_MSGCODESYS_BOOT (4)
74#define AL_COMM_MSGCODESYS_TERM (5)
75#define AL_COMM_MSGCODESYS_PARAM (6)
76#define AL_COMM_MSGCODESYS_ERR (7)
77#define AL_COMM_MSGCODESYS_DBG (8)
79#define AL_COMM_MSGCODEINST_NONE (0)
80#define AL_COMM_MSGCODEINST_START (1)
81#define AL_COMM_MSGCODEINST_STOP (2)
82#define AL_COMM_MSGCODEINST_DONE (3)
83#define AL_COMM_MSGCODEINST_GAIN (4)
84#define AL_COMM_MSGCODEINST_INFO (5)
86#define AL_COMM_MSGCODEMEM_NONE (0)
87#define AL_COMM_MSGCODEMEM_INJECT (1)
88#define AL_COMM_MSGCODEMEM_RELEASE (2)
90#define AL_COMM_MSGCODEERR_OK (0)
91#define AL_COMM_MSGCODEERR_TOOSHORT (1)
92#define AL_COMM_MSGCODEERR_ILLIGALFRAME (2)
93#define AL_COMM_MSGCODEERR_NOFRAME (3)
94#define AL_COMM_MSGCODEERR_UNKNOWN (4)
95#define AL_COMM_MSGCODEERR_INVALIDADDR (5)
96#define AL_COMM_MSGCODEERR_OVFLOW (6)
97#define AL_COMM_MSGCODEERR_INVALIDINST (7)
98#define AL_COMM_MSGCODEERR_MULTIFRAME (8)
99#define AL_COMM_MSGCODEERR_UNSUPFRAME (9)
100#define AL_COMM_MSGCODEERR_INVALIDSTATE (10)
102#define AL_COMM_ERR_SUCCESS (0)
103#define AL_COMM_ERR_WORKERINIT (-1)
104#define AL_COMM_ERR_WORKERASSIGN (-2)
105#define AL_COMM_ERR_SENDMQCREATE (-3)
106#define AL_COMM_ERR_SENDMQBIND (-4)
107#define AL_COMM_ERR_RECVMQCREATE (-5)
108#define AL_COMM_ERR_EXECWORKER (-6)
110#define AL_WORKER_TYPE_MP3DEC (1)
112#define AL_WORKER_VERSION_0 (0)
113#define AL_WORKER_VERSION_1 (1)
114#define AL_WORKER_VERSION_2 (2)
116#define AL_MP3DECWORKER_VERSION AL_WORKER_VERSION_2
118#define AL_COMM_NO_MSG (0xffffffff)
120#define AL_MSGBUF_DEPTH_POW (4)
121#define AL_MSGBUF_DEPTH (1 << AL_MSGBUF_DEPTH_POW)
123#define AL_COMM_MSGGRP(h) ((h)->grp)
124#define AL_COMM_MSGTYPE(h) ((h)->type)
125#define AL_COMM_MSGCODE(h) ((h)->code)
126#define AL_COMM_MSGOPT(h) ((h)->opt)
153 unsigned char body[4096];
187#ifndef BUILD_TGT_ASMPWORKER
192 struct al_msg_s msg[AL_MSGBUF_DEPTH];
206void *alworker_addr_convert(
void *a);
207int initialize_alworker(
al_wtask_t *inst,
const char *dspfname,
bool is_spk);
Definition: alworker_comm.h:176
Definition: alworker_comm.h:183
Definition: alworker_comm.h:133
Definition: alworker_comm.h:146