|
@@ -62,6 +62,19 @@ static unsigned int cec_log_addr2dev(const struct cec_adapter *adap, u8 log_addr
|
|
|
return adap->log_addrs.primary_device_type[i < 0 ? 0 : i];
|
|
return adap->log_addrs.primary_device_type[i < 0 ? 0 : i];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+u16 cec_get_edid_phys_addr(const u8 *edid, unsigned int size,
|
|
|
|
|
+ unsigned int *offset)
|
|
|
|
|
+{
|
|
|
|
|
+ unsigned int loc = cec_get_edid_spa_location(edid, size);
|
|
|
|
|
+
|
|
|
|
|
+ if (offset)
|
|
|
|
|
+ *offset = loc;
|
|
|
|
|
+ if (loc == 0)
|
|
|
|
|
+ return CEC_PHYS_ADDR_INVALID;
|
|
|
|
|
+ return (edid[loc] << 8) | edid[loc + 1];
|
|
|
|
|
+}
|
|
|
|
|
+EXPORT_SYMBOL_GPL(cec_get_edid_phys_addr);
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* Queue a new event for this filehandle. If ts == 0, then set it
|
|
* Queue a new event for this filehandle. If ts == 0, then set it
|
|
|
* to the current time.
|
|
* to the current time.
|