Merge "post_proc: Add USB device support for bass boost"

This commit is contained in:
qctecmdr 2019-09-12 04:02:24 -07:00 committed by Gerrit - the friendly Code Review server
commit b1e8975f9f
1 changed files with 6 additions and 0 deletions

View File

@ -203,6 +203,9 @@ 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_USB_DEVICE ||
device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
ALOGV("%s: set BB mode, device: %x", __func__, device);
@ -346,6 +349,9 @@ 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_USB_DEVICE ||
device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP ||
device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES) {
if (bass_ctxt->temp_disabled) {