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

Commit 61def04b authored by BeYkeRYkt's avatar BeYkeRYkt
Browse files

post_proc: include USB headset for BassBoost effect

* Since 2017, some devices have lost the 3.5 jack and only have a
  USB_HEADSET input for headphones. Add USB headset as supported device for
  BassBoost effect.

Change-Id: I21345253817371581cb51beae27d0bbbff02ea19
parent 5dcabd27
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -203,6 +203,7 @@ int bass_set_device(effect_context_t *context, uint32_t device)
        ALOGV("%s: set PBE mode, device: %x", __func__, device);
    } else if (device == AUDIO_DEVICE_OUT_WIRED_HEADSET ||
        device == AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
        device == AUDIO_DEVICE_OUT_USB_HEADSET ||
        device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
        device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
        ALOGV("%s: set BB mode, device: %x", __func__, device);
@@ -346,6 +347,7 @@ int bassboost_set_device(effect_context_t *context, uint32_t device)
    bass_ctxt->device = device;
    if (device == AUDIO_DEVICE_OUT_WIRED_HEADSET ||
        device == AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
        device == AUDIO_DEVICE_OUT_USB_HEADSET ||
        device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
        device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
        if (bass_ctxt->temp_disabled) {