Skip to content

Commit

Permalink
Fix logic inversion on cras_stream_apm_notify_dsp_input_effects_blocked
Browse files Browse the repository at this point in the history
BUG=b:308663428
TEST=cras_test_client -C /dev/zero --client_type=4 --effects=0x11
     with aloop out + internal mic
     observe "echo_canceller: { enabled: 1" from webrtc-apm output

Change-Id: Ibd5b8f26f3c8e4e9c66fd6b3e9b4ed9a5aa4f1a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5015991
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
  • Loading branch information
afq984 committed Nov 10, 2023
1 parent 61af33c commit b4cb276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cras/src/server/cras_stream_apm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ void cras_stream_apm_notify_vad_target_changed(

void cras_stream_apm_notify_dsp_input_effects_blocked(bool blocked) {
int rc = send_apm_message_explicit(APM_DSP_INPUT_EFFECTS_BLOCKED,
blocked ? NULL : (void*)1);
blocked ? (void*)1 : NULL);
if (rc < 0) {
syslog(LOG_ERR, "Error sending APM_AEC_ON_DSP_DISALLOWED message: %d", rc);
}
Expand Down

0 comments on commit b4cb276

Please sign in to comment.