Rev 1404 | Rev 1430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1404 | Rev 1428 | ||
---|---|---|---|
Line 778... | Line 778... | ||
778 | * This tends to be HDMI and DVI on the same encoder with the |
778 | * This tends to be HDMI and DVI on the same encoder with the |
779 | * same ddc line. If the edid says HDMI, consider the HDMI port |
779 | * same ddc line. If the edid says HDMI, consider the HDMI port |
780 | * connected and the DVI port disconnected. If the edid doesn't |
780 | * connected and the DVI port disconnected. If the edid doesn't |
781 | * say HDMI, vice versa. |
781 | * say HDMI, vice versa. |
782 | */ |
782 | */ |
783 | if (radeon_connector->shared_ddc && connector_status_connected) { |
783 | if (radeon_connector->shared_ddc && (ret == connector_status_connected)) { |
784 | struct drm_device *dev = connector->dev; |
784 | struct drm_device *dev = connector->dev; |
785 | struct drm_connector *list_connector; |
785 | struct drm_connector *list_connector; |
786 | struct radeon_connector *list_radeon_connector; |
786 | struct radeon_connector *list_radeon_connector; |
787 | list_for_each_entry(list_connector, &dev->mode_config.connector_list, head) { |
787 | list_for_each_entry(list_connector, &dev->mode_config.connector_list, head) { |
788 | if (connector == list_connector) |
788 | if (connector == list_connector) |
Line 1058... | Line 1058... | ||
1058 | if (radeon_connector->connector_id == connector_id) { |
1058 | if (radeon_connector->connector_id == connector_id) { |
1059 | radeon_connector->devices |= supported_device; |
1059 | radeon_connector->devices |= supported_device; |
1060 | return; |
1060 | return; |
1061 | } |
1061 | } |
1062 | if (radeon_connector->ddc_bus && i2c_bus->valid) { |
1062 | if (radeon_connector->ddc_bus && i2c_bus->valid) { |
1063 | if (memcmp(&radeon_connector->ddc_bus->rec, i2c_bus, |
1063 | if (radeon_connector->ddc_bus->rec.i2c_id == i2c_bus->i2c_id) { |
1064 | sizeof(struct radeon_i2c_bus_rec)) == 0) { |
- | |
1065 | radeon_connector->shared_ddc = true; |
1064 | radeon_connector->shared_ddc = true; |
1066 | shared_ddc = true; |
1065 | shared_ddc = true; |
1067 | } |
1066 | } |
1068 | } |
1067 | } |
1069 | } |
1068 | } |