di-edid-decode/displayid: Print Type II Detailed Timings

Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
This commit is contained in:
Sebastian Wick 2023-01-17 23:42:43 +01:00 committed by Sebastian Wick
parent 4f1a7ca5a0
commit 2d48bf1d54

View file

@ -172,6 +172,17 @@ print_displayid_type_i_timing_block(const struct di_displayid_data_block *data_b
print_displayid_type_i_ii_vii_timing(timings[i], 4, "DTD");
}
static void
print_displayid_type_ii_timing_block(const struct di_displayid_data_block *data_block)
{
size_t i;
const struct di_displayid_type_i_ii_vii_timing *const *timings;
timings = di_displayid_data_block_get_type_ii_timings(data_block);
for (i = 0; timings[i] != NULL; i++)
print_displayid_type_i_ii_vii_timing(timings[i], 4, "DTD");
}
static const char *
displayid_tiled_topo_missing_recv_behavior_name(enum di_displayid_tiled_topo_missing_recv_behavior behavior)
{
@ -347,6 +358,9 @@ print_displayid(const struct di_displayid *displayid)
tiled_topo = di_displayid_data_block_get_tiled_topo(data_block);
print_displayid_tiled_topo(tiled_topo);
break;
case DI_DISPLAYID_DATA_BLOCK_TYPE_II_TIMING:
print_displayid_type_ii_timing_block(data_block);
break;
default:
break; /* Ignore */
}