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 ea465608e8
commit 2e7c281b6a

View File

@@ -248,9 +248,11 @@ static void hdmicec_get_port_info(const struct hdmi_cec_device *dev,
ctx->port_info.arc_supported,
ctx->port_info.physical_address);
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)
{