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

Commit 227342aa authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Add missing SPEAKER_SAFE device in DEVICE_CATEGORY_SPEAKER

Explicitly list AUDIO_DEVICE_OUT_SPEAKER_SAFE in getDeviceCategory
  function, so it's not relying on default case.

Test: build
Change-Id: If465311694c405a35aa8a5d36bfe16948a3b56b4
parent c5fee0a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@ public:
        case AUDIO_DEVICE_OUT_USB_DEVICE:
            return DEVICE_CATEGORY_EXT_MEDIA;
        case AUDIO_DEVICE_OUT_SPEAKER:
        case AUDIO_DEVICE_OUT_SPEAKER_SAFE:
        case AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT:
        case AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER:
        case AUDIO_DEVICE_OUT_USB_ACCESSORY: