summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeremy Wu <jrwu@google.com> 2024-04-08 08:30:16 +0000
committer Jeremy Wu <jrwu@google.com> 2024-05-08 05:32:02 +0000
commit07e147f66725350043003fb07e43c0423f1b28bf (patch)
tree7a7bc8907996d766bff4362479b1e118a9bea180
parent9bd2e1bbcdae6cccfab58ffaefb3be1c1d146aef (diff)
Floss: fix |audio_devices_t| for |audio_linux.h|
The device types are not differentiated at the moment so we only use the default values. Bug: 317682584 Test: m Bluetooth Flag: EXEMPT floss only changes Change-Id: I54d0365c5e32295d6c616d85810ef9f4e8657314
-rw-r--r--system/audio_hal_interface/audio_linux.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/audio_hal_interface/audio_linux.h b/system/audio_hal_interface/audio_linux.h
index 87537ba660..7f98eee026 100644
--- a/system/audio_hal_interface/audio_linux.h
+++ b/system/audio_hal_interface/audio_linux.h
@@ -78,8 +78,16 @@ typedef enum {
AUDIO_USAGE_ANNOUNCEMENT = 1003,
} audio_usage_t;
+// Flags that never appear on their own.
+enum {
+ AUDIO_DEVICE_BIT_IN = 0x80000000u,
+ AUDIO_DEVICE_BIT_DEFAULT = 0x40000000u,
+};
+
+// The exact device types are not of interest at the moment.
typedef enum {
- AUDIO_DEVICE_DEFAULT = 0,
+ AUDIO_DEVICE_OUT_DEFAULT = AUDIO_DEVICE_BIT_DEFAULT,
+ AUDIO_DEVICE_IN_DEFAULT = AUDIO_DEVICE_BIT_IN | AUDIO_DEVICE_BIT_DEFAULT,
} audio_devices_t;
// The "channel mask" enum is comprised of discrete channels,