post_proc: disable Bassboost and Virtualizer for certain devices
WFD, Hdmi and usb audio are not intended to be applied with SA+ bassboost and virtualizer, so add into invalid device list. Change-Id: Ifcf9cdffb6657cf82bf903d16d4a3ae8471590f0 CRs-Fixed: 630408
This commit is contained in:
parent
767e35d981
commit
ee2ff9621d
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
|
||||||
* Not a Contribution.
|
* Not a Contribution.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 The Android Open Source Project
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
|
@ -153,7 +153,10 @@ int bassboost_set_device(effect_context_t *context, uint32_t device)
|
||||||
bass_ctxt->device = device;
|
bass_ctxt->device = device;
|
||||||
if((device == AUDIO_DEVICE_OUT_SPEAKER) ||
|
if((device == AUDIO_DEVICE_OUT_SPEAKER) ||
|
||||||
(device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) ||
|
(device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) ||
|
||||||
(device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)) {
|
(device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_PROXY) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_AUX_DIGITAL) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET)) {
|
||||||
if (offload_bassboost_get_enable_flag(&(bass_ctxt->offload_bass))) {
|
if (offload_bassboost_get_enable_flag(&(bass_ctxt->offload_bass))) {
|
||||||
offload_bassboost_set_enable_flag(&(bass_ctxt->offload_bass), false);
|
offload_bassboost_set_enable_flag(&(bass_ctxt->offload_bass), false);
|
||||||
bass_ctxt->temp_disabled = true;
|
bass_ctxt->temp_disabled = true;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
|
||||||
* Not a Contribution.
|
* Not a Contribution.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 The Android Open Source Project
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
|
@ -153,7 +153,10 @@ int virtualizer_set_device(effect_context_t *context, uint32_t device)
|
||||||
virt_ctxt->device = device;
|
virt_ctxt->device = device;
|
||||||
if((device == AUDIO_DEVICE_OUT_SPEAKER) ||
|
if((device == AUDIO_DEVICE_OUT_SPEAKER) ||
|
||||||
(device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) ||
|
(device == AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT) ||
|
||||||
(device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER)) {
|
(device == AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_PROXY) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_AUX_DIGITAL) ||
|
||||||
|
(device == AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET)) {
|
||||||
if (offload_virtualizer_get_enable_flag(&(virt_ctxt->offload_virt))) {
|
if (offload_virtualizer_get_enable_flag(&(virt_ctxt->offload_virt))) {
|
||||||
offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), false);
|
offload_virtualizer_set_enable_flag(&(virt_ctxt->offload_virt), false);
|
||||||
virt_ctxt->temp_disabled = true;
|
virt_ctxt->temp_disabled = true;
|
||||||
|
|
Loading…
Reference in New Issue