summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-08 23:06:38 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-08 23:06:38 +0000
commit6bfe35f7090b6f6560cdc15a5cc6aad2c0be795f (patch)
tree22c052ee9c11ad9875d2f4e03dc776d670e88e91
parent385eee769370340354a11caf21bf0571e9fdb3cd (diff)
parent16240d402be8ad6c76c97e464677ba2bc1975c36 (diff)
downloadaudio-6bfe35f7090b6f6560cdc15a5cc6aad2c0be795f.tar.gz
Snap for 6820514 from 16240d402be8ad6c76c97e464677ba2bc1975c36 to rvc-qpr1-release
Change-Id: Id393fb437f7819393dbe19ab7bb22a84fb9dd752
-rw-r--r--hal/audio_hw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 0f9dcf0..b62da23 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1212,6 +1212,12 @@ static void check_and_route_playback_usecases(struct audio_device *adev,
usecase = node_to_item(node, struct audio_usecase, list);
if (switch_device[usecase->id] ) {
enable_audio_route(adev, usecase);
+ if (usecase->stream.out && usecase->id == USECASE_AUDIO_PLAYBACK_VOIP) {
+ struct stream_out *out = usecase->stream.out;
+ audio_extn_utils_send_app_type_gain(out->dev,
+ out->app_type_cfg.app_type,
+ &out->app_type_cfg.gain[0]);
+ }
}
}
}