Message ID | 20150618160915.GA16638@n2100.arm.linux.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Russell, On Thu, Jun 18, 2015 at 9:09 AM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > So, what I'd like to see is a patch series which starts with the change > below, and builds on that, with explainations why each change is needed. > This is important, as this is shared IP, and we need to make sure that > we don't regress non-Rockchip users of this IP. I'll try and do some > work in this area if nothing crops up in the next month. OK. I've mostly been jumping in here to do a bugfix or two, not to take over maintenance of the driver. My general policy is to submit things upstream if at all possible, but I think in the case of HDMI we are just too different from upstream for this to be easy. I'll let you and Yakir figure out the way forward to keep everyone happy. If that means you submitting some patches then great. If that means Yakir submitting some patches then that's great too. In such a case you can consider my patch to be a bug report and I'll be happy with folks figure out the proper way to do this in the upstream driver. :) -Doug
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c index 49cafb61d290..8834e8142ea6 100644 --- a/drivers/gpu/drm/bridge/dw_hdmi.c +++ b/drivers/gpu/drm/bridge/dw_hdmi.c @@ -119,6 +119,8 @@ struct dw_hdmi { u8 edid[HDMI_EDID_LEN]; bool cable_plugin; + bool sink_is_hdmi; + bool sink_has_audio; bool phy_enabled; struct drm_display_mode previous_mode; @@ -1402,6 +1404,9 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector) edid = drm_get_edid(connector, hdmi->ddc); if (edid) { + hdmi->sink_is_hdmi = drm_detect_hdmi_monitor(edid); + hdmi->sink_has_audio = drm_detect_monitor_audio(edid); + dev_dbg(hdmi->dev, "got edid: width[%d] x height[%d]\n", edid->width_cm, edid->height_cm);