mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
nuttx/audio: Add AUDIO_CHANNELS_RANGE macro
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
This commit is contained in:
@@ -355,6 +355,10 @@
|
|||||||
#define AUDIO_APB_DEQUEUED (1 << 2)
|
#define AUDIO_APB_DEQUEUED (1 << 2)
|
||||||
#define AUDIO_APB_FINAL (1 << 3) /* Last buffer in the stream */
|
#define AUDIO_APB_FINAL (1 << 3) /* Last buffer in the stream */
|
||||||
|
|
||||||
|
/* Audio channels range wrapper macro */
|
||||||
|
|
||||||
|
#define AUDIO_CHANNELS_RANGE(min, max) ((uint8_t)(((min) << 4) | ((max) & 0xf)))
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Types
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user