00001 #ifndef __ALSAD_DEFS_H
00002 #define __ALSAD_DEFS_H
00003
00004
00005
00006 #ifndef ALSA_PCM_NEW_HW_PARAMS_API
00007 #define ALSA_PCM_NEW_HW_PARAMS_API
00008 #endif
00009
00010 #define ALSAD_PAYLOAD_SOCK_TIMEOUT 10
00011 #define ALSAD_GENERIC_SOCK_TIMEOUT 10
00012 #define ALSAD_MAX_TRANS_SIZE 100000
00013 #define ALSAD_MAX_ERR_SIZE 80
00014
00015
00016 #define ALSAD_SEND_HW_PARAMS 0x00000001
00017 #define ALSAD_RECV_HW_PARAMS 0x00000002
00018 #define ALSAD_SEND_SW_PARAMS 0x00000004
00019 #define ALSAD_RECV_SW_PARAMS 0x00000008
00020 #define ALSAD_RECV_AUDIO_BUF 0x00000010
00021 #define ALSAD_SEND_AUDIO_BUF 0x00000020
00022 #define ALSAD_RECV_STREAM_PROPS 0x00000040
00023 #define ALSAD_SEND_STREAM_PROPS 0x00000080
00024 #define ALSAD_RECV_CONN_ADDR 0x00000100
00025 #define ALSAD_SEND_CONN_ADDR 0x00000200
00026 #define ALSAD_RECV_DATA_PIPE 0x00000400
00027 #define ALSAD_SEND_DATA_PIPE 0x00000800
00028
00029 #define ALSAD_RECV_LOCAL_STREAM 0x00001000
00030 #define ALSAD_SEND_LOCAL_STREAM 0x00002000
00031 #define ALSAD_RECV_RMTE_STREAM 0x00004000
00032 #define ALSAD_SEND_RMTE_STREAM 0x00008000
00033 #define ALSAD_RECV_LOCAL_PIPE 0x00010000
00034 #define ALSAD_SEND_LOCAL_PIPE 0x00020000
00035 #define ALSAD_RECV_RMTE_PIPE 0x00040000
00036 #define ALSAD_SEND_RMTE_PIPE 0x00080000
00037
00038
00039 #define ALSAD_RQST_ADD_STREAM 0x00010000
00040 #define ALSAD_RQST_DEL_STREAM 0x00020000
00041 #define ALSAD_RQST_ADD_SRC 0x00040000
00042 #define ALSAD_RQST_DEL_SRC 0x00080000
00043 #define ALSAD_RQST_ADD_SINK 0x00100000
00044 #define ALSAD_RQST_DEL_SINK 0x00200000
00045 #define ALSAD_RQST_LIST_STREAM 0x00400000
00046 #define ALSAD_RQST_LIST_PIPE 0x00800000
00047
00048 #define ALSAD_PATH_HW_IFACE 0x01000000
00049 #define ALSAD_PATH_RMTE_SOCK 0x02000000
00050 #define ALSAD_PATH_CUR_SOCK 0x04000000
00051
00052 #define ALSAD_SRC_CALC_RATE 0x01000000
00053 #define ALSAD_SRC_SINK_RATE 0x02000000
00054
00055
00056 #define ALSAD_MSG_KEEP_ALIVE 0x10000000
00057 #define ALSAD_MSG_CLOSE_CONN 0x20000000
00058 #define ALSAD_MSG_RQST_OK 0x40000000
00059 #define ALSAD_MSG_RQST_ERR 0x80000000
00060
00061
00062
00063 enum alsad_error {
00064 ALSAD_ERR_MAX_PIPES,
00065 ALSAD_ERR_INSUF_INFO,
00066 ALSAD_ERR_STREAM_FIND,
00067 ALSAD_ERR_STREAM_REM,
00068 ALSAD_ERR_STREAM_INS,
00069 ALSAD_ERR_INVLD_FRMT,
00070 ALSAD_ERR_INTERNAL,
00071 ALSAD_ERR_NO_PATH,
00072 ALSAD_ERR_PIPE_INS,
00073 ALSAD_ERR_PIPE_REM,
00074 ALSAD_ERR_PIPE_FIND,
00075 ALSAD_ERR_LOCAL_ADDR,
00076 ALSAD_ERR_RMTE_HOST,
00077 ALSAD_ERR_IFACE_CFG,
00078 ALSAD_ERR_RECV_CTRL,
00079 ALSAD_ERR_INVLD_CTRL,
00080 ALSAD_ERR_RECV_AUDIOHD,
00081 ALSAD_ERR_RECV_AUDIO,
00082 ALSAD_ERR_MAX_TRANS,
00083 ALSAD_ERR_FRAME_DIV,
00084 ALSAD_ERR_PIPE_CLOSE,
00085 ALSAD_ERR_STREAM_CLOSE,
00086 ALSAD_ERR_SHUTDOWN,
00087 ALSAD_ERR_SRC_PERM
00088
00089 };
00090
00091 typedef enum alsad_error alsad_error_t;
00092
00093
00094
00095
00096
00097 #endif