Skip to content

Commit

Permalink
sidetone: Use IGNORE_UI_GAINS effect
Browse files Browse the repository at this point in the history
BUG=b:371505214
TEST=Adjust UI gain, make sure sidetone volume is not changed

Change-Id: I0cbb16cf6576e023c0b1e790533046143c5ea8da
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5906968
Reviewed-by: Li-Yu Yu <aaronyu@google.com>
Commit-Queue: Norman Bintang <normanbt@chromium.org>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
  • Loading branch information
Norman Bintang authored and Chromeos LUCI committed Oct 4, 2024
1 parent 1b84ec6 commit 8648c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cras/src/server/sidetone.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ static bool need_echo_cancellation(enum CRAS_NODE_TYPE output_node_type) {

bool enable_sidetone(struct stream_list* stream_list,
enum CRAS_NODE_TYPE output_node_type) {
int effects = 0;
int effects = IGNORE_UI_GAINS;
int block_size = DEFAULT_SERVER_STREAM_BLOCK_SIZE;
if (need_echo_cancellation(output_node_type)) {
// Set higher block size so it has higher latency and prevent the audio
// being cancelled by the echo cancellation.
effects = APM_ECHO_CANCELLATION;
effects |= APM_ECHO_CANCELLATION;
block_size = 8192;
}

Expand Down

0 comments on commit 8648c35

Please sign in to comment.