nuttx/audio: Add AUDIO_CHANNELS_RANGE macro
Signed-off-by: renjianguang <renjianguang@xiaomi.com>
This commit is contained in:
parent
bcfb4decb0
commit
86ae87b1ec
@ -355,6 +355,10 @@
|
||||
#define AUDIO_APB_DEQUEUED (1 << 2)
|
||||
#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
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user