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

Commit 0fc208d2 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio: fix mistake in AudioDevice enum

commit e6653b5d failed to include devices (IN|OUT)_USB_HEADSET
in (IN|OUT)_ALL and (IN|OUT)_ALL_USB masks

Test: audio playback and capture regression tests on marlin
Change-Id: I218b0c3ff868f3e1434e93a9e2fb07b3e16a2df8
parent 4e07c744
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -565,6 +565,7 @@ enum AudioDevice : uint32_t {
            OUT_IP |
            OUT_BUS |
            OUT_PROXY |
            OUT_USB_HEADSET |
            OUT_DEFAULT),
    OUT_ALL_A2DP = (OUT_BLUETOOTH_A2DP |
            OUT_BLUETOOTH_A2DP_HEADPHONES |
@@ -572,7 +573,7 @@ enum AudioDevice : uint32_t {
    OUT_ALL_SCO  = (OUT_BLUETOOTH_SCO |
            OUT_BLUETOOTH_SCO_HEADSET |
            OUT_BLUETOOTH_SCO_CARKIT),
    OUT_ALL_USB  = (OUT_USB_ACCESSORY | OUT_USB_DEVICE),
    OUT_ALL_USB  = (OUT_USB_ACCESSORY | OUT_USB_DEVICE | OUT_USB_HEADSET),
    /* input devices */
    IN_COMMUNICATION         = BIT_IN | 0x1,
    IN_AMBIENT               = BIT_IN | 0x2,
@@ -629,9 +630,10 @@ enum AudioDevice : uint32_t {
            IN_IP |
            IN_BUS |
            IN_PROXY |
            IN_USB_HEADSET |
            IN_DEFAULT),
    IN_ALL_SCO = IN_BLUETOOTH_SCO_HEADSET,
    IN_ALL_USB  = (IN_USB_ACCESSORY | IN_USB_DEVICE),
    IN_ALL_USB  = (IN_USB_ACCESSORY | IN_USB_DEVICE | IN_USB_HEADSET),
};

/*