summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-08-24 16:48:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-24 16:48:56 +0000
commit710ff10b00d1a6afaa9d03206ad65b29b09a0108 (patch)
tree609a6bf026f8a0c8bff079ef60ec0ac832b7298d
parent28ddc6fe0a0411d37391798114623cc1f8fa8cc4 (diff)
parent4c1b10d3b67414b7931ffcbdbd6de2776d251ef2 (diff)
downloadhardware_qcom_audio-710ff10b00d1a6afaa9d03206ad65b29b09a0108.tar.gz
hardware_qcom_audio-710ff10b00d1a6afaa9d03206ad65b29b09a0108.tar.bz2
hardware_qcom_audio-710ff10b00d1a6afaa9d03206ad65b29b09a0108.zip
am 4c1b10d3: hal: MBDRC: send MBDRC step level only for speaker device
* commit '4c1b10d3b67414b7931ffcbdbd6de2776d251ef2': hal: MBDRC: send MBDRC step level only for speaker device
-rw-r--r--post_proc/volume_listener.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/post_proc/volume_listener.c b/post_proc/volume_listener.c
index e0193dde..2759bea6 100644
--- a/post_proc/volume_listener.c
+++ b/post_proc/volume_listener.c
@@ -420,7 +420,7 @@ static int vol_effect_command(effect_handle_t self,
// After changing the state and if device is speaker
// recalculate gain dep cal level
- if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) {
+ if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) {
check_and_set_gain_dep_cal();
}
@@ -447,7 +447,7 @@ static int vol_effect_command(effect_handle_t self,
// After changing the state and if device is speaker
// recalculate gain dep cal level
- if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) {
+ if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) {
check_and_set_gain_dep_cal();
}
@@ -478,8 +478,8 @@ static int vol_effect_command(effect_handle_t self,
__func__, context->dev_id, new_device);
// check if old or new device is speaker
- if ((context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) ||
- (new_device & AUDIO_DEVICE_OUT_SPEAKER)) {
+ if ((context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) ||
+ (new_device == AUDIO_DEVICE_OUT_SPEAKER)) {
recompute_gain_dep_cal_Level = true;
}
@@ -504,7 +504,7 @@ static int vol_effect_command(effect_handle_t self,
goto exit;
}
- if (context->dev_id & AUDIO_DEVICE_OUT_SPEAKER) {
+ if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) {
recompute_gain_dep_cal_Level = true;
}
@@ -682,7 +682,7 @@ static int vol_prc_lib_release(effect_handle_t handle)
ALOGV("--- Found something to remove ---");
list_remove(&context->effect_list_node);
PRINT_STREAM_TYPE(context->stream_type);
- if (context->dev_id && AUDIO_DEVICE_OUT_SPEAKER) {
+ if (context->dev_id == AUDIO_DEVICE_OUT_SPEAKER) {
recompute_flag = true;
}
free(context);