This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b34977fac nuttx/audio: support 32-bits pcm
2b34977fac is described below

commit 2b34977fac27e8813f7f907ab56f1d65fe9c88f0
Author: shizhenghui <[email protected]>
AuthorDate: Mon Jul 17 20:46:50 2023 +0800

    nuttx/audio: support 32-bits pcm
    
    Signed-off-by: shizhenghui <[email protected]>
---
 include/nuttx/audio/audio.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/include/nuttx/audio/audio.h b/include/nuttx/audio/audio.h
index 87b9d004e6..da9c55f1e2 100644
--- a/include/nuttx/audio/audio.h
+++ b/include/nuttx/audio/audio.h
@@ -173,9 +173,13 @@
 #define AUDIO_SUBFMT_PCM_S16_BE     0x09
 #define AUDIO_SUBFMT_PCM_S16_LE     0x0a
 #define AUDIO_SUBFMT_PCM_U16_BE     0x0b
-#define AUDIO_SUBFMT_MIDI_0         0x0c
-#define AUDIO_SUBFMT_MIDI_1         0x0d
-#define AUDIO_SUBFMT_MIDI_2         0x0e
+#define AUDIO_SUBFMT_PCM_U32_LE     0x0c
+#define AUDIO_SUBFMT_PCM_U32_BE     0x0d
+#define AUDIO_SUBFMT_PCM_S32_LE     0x0e
+#define AUDIO_SUBFMT_PCM_S32_BE     0x0f
+#define AUDIO_SUBFMT_MIDI_0         0x10
+#define AUDIO_SUBFMT_MIDI_1         0x11
+#define AUDIO_SUBFMT_MIDI_2         0x12
 
 /* Audio Hardware-Format Types **********************************************/
 

Reply via email to