mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
audio:add 24K sample rate support
Signed-off-by: shipei <shipei@xiaomi.com>
This commit is contained in:
parent
75999d247f
commit
0beba027e7
2 changed files with 13 additions and 10 deletions
|
@ -361,6 +361,7 @@ static int sim_audio_getcaps(struct audio_lowerhalf_s *dev, int type,
|
|||
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;
|
||||
|
|
|
@ -212,18 +212,20 @@
|
|||
#define AUDIO_SAMP_RATE_11K 0x0002
|
||||
#define AUDIO_SAMP_RATE_16K 0x0004
|
||||
#define AUDIO_SAMP_RATE_22K 0x0008
|
||||
#define AUDIO_SAMP_RATE_32K 0x0010
|
||||
#define AUDIO_SAMP_RATE_44K 0x0020
|
||||
#define AUDIO_SAMP_RATE_48K 0x0040
|
||||
#define AUDIO_SAMP_RATE_88K 0x0080
|
||||
#define AUDIO_SAMP_RATE_96K 0x0100
|
||||
#define AUDIO_SAMP_RATE_128K 0x0200
|
||||
#define AUDIO_SAMP_RATE_160K 0x0400
|
||||
#define AUDIO_SAMP_RATE_172K 0x0800
|
||||
#define AUDIO_SAMP_RATE_192K 0x1000
|
||||
#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_32K | AUDIO_SAMP_RATE_44K | \
|
||||
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 )
|
||||
|
|
Loading…
Reference in a new issue