audio: add 12K sample rate support

Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
This commit is contained in:
jinxiuxu 2023-11-24 20:24:23 +08:00 committed by Alan Carvalho de Assis
parent fe642f1cfd
commit 7355629d19

View File

@ -212,26 +212,27 @@
#define AUDIO_SAMP_RATE_8K 0x0001
#define AUDIO_SAMP_RATE_11K 0x0002
#define AUDIO_SAMP_RATE_16K 0x0004
#define AUDIO_SAMP_RATE_22K 0x0008
#define AUDIO_SAMP_RATE_24K 0x0010
#define AUDIO_SAMP_RATE_32K 0x0020
#define AUDIO_SAMP_RATE_44K 0x0040
#define AUDIO_SAMP_RATE_48K 0x0080
#define AUDIO_SAMP_RATE_88K 0x0100
#define AUDIO_SAMP_RATE_96K 0x0200
#define AUDIO_SAMP_RATE_128K 0x0400
#define AUDIO_SAMP_RATE_160K 0x0800
#define AUDIO_SAMP_RATE_172K 0x1000
#define AUDIO_SAMP_RATE_192K 0x2000
#define AUDIO_SAMP_RATE_DEF_ALL (AUDIO_SAMP_RATE_8K | AUDIO_SAMP_RATE_11K | \
AUDIO_SAMP_RATE_16K | AUDIO_SAMP_RATE_22K | \
AUDIO_SAMP_RATE_24K | AUDIO_SAMP_RATE_32K | \
AUDIO_SAMP_RATE_44K | AUDIO_SAMP_RATE_48K | \
AUDIO_SAMP_RATE_88K | AUDIO_SAMP_RATE_96K | \
AUDIO_SAMP_RATE_128K | AUDIO_SAMP_RATE_160K | \
AUDIO_SAMP_RATE_172K | AUDIO_SAMP_RATE_192K )
#define AUDIO_SAMP_RATE_12K 0x0004
#define AUDIO_SAMP_RATE_16K 0x0008
#define AUDIO_SAMP_RATE_22K 0x0010
#define AUDIO_SAMP_RATE_24K 0x0020
#define AUDIO_SAMP_RATE_32K 0x0040
#define AUDIO_SAMP_RATE_44K 0x0080
#define AUDIO_SAMP_RATE_48K 0x0100
#define AUDIO_SAMP_RATE_88K 0x0200
#define AUDIO_SAMP_RATE_96K 0x0400
#define AUDIO_SAMP_RATE_128K 0x0800
#define AUDIO_SAMP_RATE_160K 0x1000
#define AUDIO_SAMP_RATE_172K 0x2000
#define AUDIO_SAMP_RATE_192K 0x4000
#define AUDIO_SAMP_RATE_DEF_ALL (AUDIO_SAMP_RATE_8K | AUDIO_SAMP_RATE_11K | \
AUDIO_SAMP_RATE_12K | AUDIO_SAMP_RATE_16K | \
AUDIO_SAMP_RATE_22K | AUDIO_SAMP_RATE_24K | \
AUDIO_SAMP_RATE_32K | AUDIO_SAMP_RATE_44K | \
AUDIO_SAMP_RATE_48K | AUDIO_SAMP_RATE_88K | \
AUDIO_SAMP_RATE_96K | AUDIO_SAMP_RATE_128K | \
AUDIO_SAMP_RATE_160K | AUDIO_SAMP_RATE_172K | \
AUDIO_SAMP_RATE_192K)
/* Audio Sub-sampling Ratios ***********************************************/
#define AUDIO_SUBSAMPLE_NONE 0