cec: don't add port info if physical address is invalid

* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/37.
This commit is contained in:
Konsta
2023-11-26 20:11:11 +02:00
parent f5db2884d7
commit 77d8091ba1

View File

@@ -248,8 +248,10 @@ static void hdmicec_get_port_info(const struct hdmi_cec_device *dev,
ctx->port_info.arc_supported,
ctx->port_info.physical_address);
*list = &ctx->port_info;
*total = 1;
if (ctx->port_info.physical_address != CEC_PHYS_ADDR_INVALID) {
*list = &ctx->port_info;
*total = 1;
}
}
static void hdmicec_set_option(const struct hdmi_cec_device *dev, int flag, int value)