Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07e147f6 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

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
parent 9bd2e1bb
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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,