mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
nuttx/audio: add AUDIOIOC_GETSTATE ioctl
support get lower driver state Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
#define AUDIOIOC_FLUSH _AUDIOIOC(20)
|
||||
#define AUDIOIOC_GETPOSITION _AUDIOIOC(21)
|
||||
#define AUDIOIOC_GETAUDIOINFO _AUDIOIOC(22)
|
||||
#define AUDIOIOC_GETSTATE _AUDIOIOC(23)
|
||||
|
||||
/* Audio Device Types *******************************************************/
|
||||
|
||||
@@ -376,6 +377,15 @@
|
||||
|
||||
#define AUDIO_CHANNELS_RANGE(min, max) ((uint8_t)(((min) << 4) | ((max) & 0xf)))
|
||||
|
||||
/* State of appl and lower driver, higher value = higher priority */
|
||||
|
||||
#define AUDIO_STATE_OPEN 0
|
||||
#define AUDIO_STATE_PREPARED 1
|
||||
#define AUDIO_STATE_PAUSED 2
|
||||
#define AUDIO_STATE_XRUN 3
|
||||
#define AUDIO_STATE_DRAINING 4
|
||||
#define AUDIO_STATE_RUNNING 5
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user