On 2014年09月25日 00:20, Daniel Kurtz
wrote:
Hi Mark,
Please review comments inline...
On Wed, Sep 24, 2014 at 10:12 AM, Mark yao <mark.yao@rock-chips.com> wrote:
To match the enum name, use ROCKCHIP_OUTPUT_TYPE_*.
Also, no need to explicitly set the first one to 0.
However, see below. I don't think we to modify the drm_display_mode
to include an output type.
but vop devices need know the connector type, connector enable
register is in vop.
can I do that like under to get connector type for crtc?
static int rockchip_get_connector_type(struct drm_crtc
*crtc)
{
struct drm_device *dev = crtc->dev;
struct drm_connector * connector;
list_for_each_entry(connector,
&dev->mode_config.connector_list, head) {
if (!connector->encoder)
continue;
/*
* one crtc only has one connector in my case, so just
find the first connector at list.
*/
if (connector->encoder->crtc == crtc)
break;
}
if (!connector)
return -EINVAL;
return connector->connector_type;
}
Oh, sorry, forgot to drop this comment,