audio-hal: enable low latency support for playback and record usecase with voice comm usage
Enable low latency support for phone bus playback and record usecase
with voice comm usage for 8, 16, 24, 32 and 48KHz sample rates
Change-Id: I11c85989176dd6db71f56399f0f17acef99ebca8
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 8d36847..0e221e2 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -494,6 +494,7 @@
[USECASE_AUDIO_PLAYBACK_SYS_NOTIFICATION] = "sys-notification-playback",
[USECASE_AUDIO_PLAYBACK_NAV_GUIDANCE] = "nav-guidance-playback",
[USECASE_AUDIO_PLAYBACK_PHONE] = "phone-playback",
+ [USECASE_AUDIO_PLAYBACK_PHONE_LL] = "phone-playback-ll",
[USECASE_AUDIO_PLAYBACK_ALERTS] = "alerts-playback",
[USECASE_AUDIO_PLAYBACK_FRONT_PASSENGER] = "front-passenger-playback",
[USECASE_AUDIO_PLAYBACK_REAR_SEAT] = "rear-seat-playback",
@@ -8892,8 +8893,8 @@
out->hal_op_format, out->sample_rate,
out->bit_width, out->channel_mask, out->profile,
&out->app_type_cfg);
- if ((out->usecase == (audio_usecase_t)(GET_USECASE_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary))) ||
- (flags & AUDIO_OUTPUT_FLAG_PRIMARY)) {
+ if (((out->usecase == (audio_usecase_t)(GET_USECASE_AUDIO_PLAYBACK_PRIMARY(use_db_as_primary))) ||
+ (flags & AUDIO_OUTPUT_FLAG_PRIMARY)) && (!compare_device_type(&out->device_list, AUDIO_DEVICE_OUT_BUS))) {
/* Ensure the default output is not selected twice */
if(adev->primary_output == NULL)
adev->primary_output = out;