hal: refine audio type comparison for FLAG_INTERACTIVE
AUDIO_OUTPUT_FLAG_INTERACTIVE value is out of range
in audio output type definition. This would always
return false when comparing FLAG_INTERACTIVE.
Fix by using right logical operator.
CRs-Fixed: 2115618
Change-Id: I8cd1ace54039ce68c6706256e2692114070749e5
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index a236ccd..8545d3a 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -986,7 +986,7 @@
if (s_info->flags.out_flags == AUDIO_OUTPUT_FLAG_DIRECT)
direct_app_type = s_info->app_type_cfg.app_type;
}
- if (usecase->stream.out->flags == AUDIO_OUTPUT_FLAG_INTERACTIVE)
+ if (usecase->stream.out->flags & AUDIO_OUTPUT_FLAG_INTERACTIVE)
app_type = direct_app_type;
else
app_type = usecase->stream.out->app_type_cfg.app_type;