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:
@@ -248,8 +248,10 @@ static void hdmicec_get_port_info(const struct hdmi_cec_device *dev,
|
|||||||
ctx->port_info.arc_supported,
|
ctx->port_info.arc_supported,
|
||||||
ctx->port_info.physical_address);
|
ctx->port_info.physical_address);
|
||||||
|
|
||||||
*list = &ctx->port_info;
|
if (ctx->port_info.physical_address != CEC_PHYS_ADDR_INVALID) {
|
||||||
*total = 1;
|
*list = &ctx->port_info;
|
||||||
|
*total = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hdmicec_set_option(const struct hdmi_cec_device *dev, int flag, int value)
|
static void hdmicec_set_option(const struct hdmi_cec_device *dev, int flag, int value)
|
||||||
|
Reference in New Issue
Block a user