Bypass Live if there is no HW FE nor SW FE. am: aeaabf3c1f

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2926211

Change-Id: Ib6af8a30193c6dc3fdf9e94292ca78dd7a0d0b93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ray Chin
2024-01-26 07:54:16 +00:00
committed by Automerger Merge Worker

View File

@@ -731,9 +731,20 @@ inline void determineLive() {
if (videoFilterIds.empty() || audioFilterIds.empty() || frontendMap.empty()) {
return;
}
if (hasSwFe && !hasHwFe && dvrMap.empty()) {
ALOGD("Cannot configure Live. Only software frontends and no dvr connections");
return;
if (!hasHwFe) {
if (hasSwFe) {
if (dvrMap.empty()) {
ALOGD("Cannot configure Live. Only software frontends and no dvr connections.");
return;
}
// Live is available if there is SW FE and some DVR is attached.
} else {
// We will arrive here because frontendMap won't be empty since
// there will be at least a default frontend declared. But the
// default frontend doesn't count as "hasSwFe".
ALOGD("Cannot configure Live. No frontend declared at all.");
return;
}
}
ALOGD("Can support live");
live.hasFrontendConnection = true;