From 10d0cb9c1a24e6bfd65816c3e524b7b1ed15ad7e Mon Sep 17 00:00:00 2001 From: Aniket Kumar Lata Date: Wed, 4 Sep 2019 15:08:19 -0700 Subject: [PATCH] post_proc: Add USB device support for bass boost Add USB device support for offloaded bass boost effect. Change-Id: I148b503ad14aec313180d5fb3d724e0c279abf25 --- post_proc/bass_boost.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/post_proc/bass_boost.c b/post_proc/bass_boost.c index 1ce1c215..250a06a1 100644 --- a/post_proc/bass_boost.c +++ b/post_proc/bass_boost.c @@ -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) {