Added debug messages so we know which output we are dealing with
parent
cc471a361f
commit
c4e944182d
|
@ -141,6 +141,7 @@ void drm_crtc_probe_output_modes(struct drm_device *dev, int maxX, int maxY)
|
||||||
output->status = (*output->funcs->detect)(output);
|
output->status = (*output->funcs->detect)(output);
|
||||||
|
|
||||||
if (output->status == output_status_disconnected) {
|
if (output->status == output_status_disconnected) {
|
||||||
|
DRM_DEBUG("%s is disconnected\n", output->name);
|
||||||
/* TODO set EDID to NULL */
|
/* TODO set EDID to NULL */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -164,8 +165,10 @@ void drm_crtc_probe_output_modes(struct drm_device *dev, int maxX, int maxY)
|
||||||
|
|
||||||
drm_mode_prune_invalid(dev, &output->modes, TRUE);
|
drm_mode_prune_invalid(dev, &output->modes, TRUE);
|
||||||
|
|
||||||
if (list_empty(&output->modes))
|
if (list_empty(&output->modes)) {
|
||||||
|
DRM_DEBUG("No valid modes found on %s\n", output->name);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
drm_mode_sort(&output->modes);
|
drm_mode_sort(&output->modes);
|
||||||
|
|
||||||
|
@ -429,9 +432,12 @@ bool drm_output_rename(struct drm_output *output, const char *name)
|
||||||
|
|
||||||
strncpy(output->name, name, DRM_OUTPUT_LEN);
|
strncpy(output->name, name, DRM_OUTPUT_LEN);
|
||||||
output->name[DRM_OUTPUT_LEN - 1] = 0;
|
output->name[DRM_OUTPUT_LEN - 1] = 0;
|
||||||
|
|
||||||
|
DRM_DEBUG("Changed name to %s\n", output->name);
|
||||||
// drm_output_set_monitor(output);
|
// drm_output_set_monitor(output);
|
||||||
// if (drm_output_ignored(output))
|
// if (drm_output_ignored(output))
|
||||||
// return FALSE;
|
// return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(drm_output_rename);
|
EXPORT_SYMBOL(drm_output_rename);
|
||||||
|
|
Loading…
Reference in New Issue