drm/i915: select TV format according to connector type
authorMa Ling <ling.ma@intel.com>
Mon, 24 Aug 2009 05:50:25 +0000 (13:50 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 4 Sep 2009 20:05:10 +0000 (13:05 -0700)
commit213c2e643145fc7d8a67f2d5d54ee0f6d7193e2e
tree30a631bfdbaaa6fc6c33bcb209c28b0cb839c4b0
parent5f6a169598938d9e5703f06b64c4f4f972561ce5
drm/i915: select TV format according to connector type

For integrated TV there are 3 connector types: S-VIDEO, Composite and
Component(YprPb). Those tv formats whose component flag is true should
be assigned to Component connector, others are for S-VIDEO and Composite.
The patch intends to find appropriate tv format for each connector.
In such case it will return the correct modeline to user space. Otherwise
it will return the incorrect modeline when S-video/composite is connected.

Signed-off-by: Ma Ling <ling.ma@intel.com>
reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_tv.c