blob: f82544c8ab88881fa9b252d58d5f620fa8fccb61 [file] [log] [blame]
Steve Muckle0a9c0872022-02-16 05:58:07 +00001/*******************************************************************************
2* Copyright (C) 2018 Cadence Design Systems, Inc.
3*
4* Permission is hereby granted, free of charge, to any person obtaining
5* a copy of this software and associated documentation files (the
6* "Software"), to use this Software with Cadence processor cores only and
7* not with any other processors and platforms, subject to
8* the following conditions:
9*
10* The above copyright notice and this permission notice shall be included
11* in all copies or substantial portions of the Software.
12*
13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
17* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21******************************************************************************/
22
23#ifndef __XA_ADEC_API_H__
24#define __XA_ADEC_API_H__
25
26/* ...generic audio-decoder configuration parameters */
27enum xa_config_param_codec {
28 XA_CODEC_CONFIG_PARAM_CHANNELS = 0x10000 + 0,
29 XA_CODEC_CONFIG_PARAM_SAMPLE_RATE = 0x10000 + 1,
30 XA_CODEC_CONFIG_PARAM_PCM_WIDTH = 0x10000 + 2,
31 XA_CODEC_CONFIG_PARAM_PRODUCED = 0x10000 + 3
32};
33
34/* ...ports indices */
35enum xa_codec_ports {
36 XA_CODEC_INPUT_PORT = 0,
37 XA_CODEC_OUTPUT_PORT = 1
38};
39
40/* ...non-fatal execution errors */
41enum
42{
43 XA_CODEC_EXEC_NO_DATA = XA_ERROR_CODE(xa_severity_nonfatal, xa_class_execute, XA_CODEC_GENERIC, 0)
44};
45
46#endif