drm: get cea video id code for a given display mode
authorStephane Marchesin <marcheu@chromium.org>
Fri, 9 Nov 2012 16:21:05 +0000 (16:21 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 05:36:56 +0000 (15:36 +1000)
commita4799037c3234830e9feb1823d87f905fb4d080a
treeaa6bd061fe5cf66a7251105873da5367e71353e4
parent96081cdfae35c1e332be42d89dee278c72d8915d
drm: get cea video id code for a given display mode

This patch adds support for getting CEA Video ID Code for a given
display mode after matching with edid_cea_modes list. Its index in
the list added with one, gives the desired code.

This exported function will be used by hdmi drivers for composing
AVI info frame data.

Signed-off-by: Stephane Marchesin <marcheu@chromium.org>
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c
include/drm/drm_crtc.h