diff --git a/cec/hdmi_cec.c b/cec/hdmi_cec.c index 23ddcd3..bb9a1ba 100644 --- a/cec/hdmi_cec.c +++ b/cec/hdmi_cec.c @@ -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)