Merge "audio: add defines for audio HW sync source" into lmp-dev
This commit is contained in:
commit
fb2343da60
1 changed files with 11 additions and 2 deletions
|
|
@ -110,7 +110,8 @@ enum {
|
||||||
AUDIO_FLAG_AUDIBILITY_ENFORCED = 0x1,
|
AUDIO_FLAG_AUDIBILITY_ENFORCED = 0x1,
|
||||||
AUDIO_FLAG_SECURE = 0x2,
|
AUDIO_FLAG_SECURE = 0x2,
|
||||||
AUDIO_FLAG_SCO = 0x4,
|
AUDIO_FLAG_SCO = 0x4,
|
||||||
AUDIO_FLAG_BEACON = 0x8
|
AUDIO_FLAG_BEACON = 0x8,
|
||||||
|
AUDIO_FLAG_HW_AV_SYNC = 0x10
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Do not change these values without updating their counterparts
|
/* Do not change these values without updating their counterparts
|
||||||
|
|
@ -696,7 +697,8 @@ typedef enum {
|
||||||
AUDIO_OUTPUT_FLAG_DEEP_BUFFER = 0x8, // use deep audio buffers
|
AUDIO_OUTPUT_FLAG_DEEP_BUFFER = 0x8, // use deep audio buffers
|
||||||
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD = 0x10, // offload playback of compressed
|
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD = 0x10, // offload playback of compressed
|
||||||
// streams to hardware codec
|
// streams to hardware codec
|
||||||
AUDIO_OUTPUT_FLAG_NON_BLOCKING = 0x20 // use non-blocking write
|
AUDIO_OUTPUT_FLAG_NON_BLOCKING = 0x20, // use non-blocking write
|
||||||
|
AUDIO_OUTPUT_FLAG_HW_AV_SYNC = 0x40 // output uses a hardware A/V synchronization source
|
||||||
} audio_output_flags_t;
|
} audio_output_flags_t;
|
||||||
|
|
||||||
/* The audio input flags are analogous to audio output flags.
|
/* The audio input flags are analogous to audio output flags.
|
||||||
|
|
@ -997,6 +999,13 @@ struct audio_patch {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* a HW synchronization source returned by the audio HAL */
|
||||||
|
typedef uint32_t audio_hw_sync_t;
|
||||||
|
|
||||||
|
/* an invalid HW synchronization source indicating an error */
|
||||||
|
#define AUDIO_HW_SYNC_INVALID 0
|
||||||
|
|
||||||
static inline bool audio_is_output_device(audio_devices_t device)
|
static inline bool audio_is_output_device(audio_devices_t device)
|
||||||
{
|
{
|
||||||
if (((device & AUDIO_DEVICE_BIT_IN) == 0) &&
|
if (((device & AUDIO_DEVICE_BIT_IN) == 0) &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue