From: Tomasz Stanislawski <t.stanislaws@samsung.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org,
Prabhakar Lad <prabhakar.csengg@gmail.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Scott Jiang <scott.jiang.linux@gmail.com>,
Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [RFC PATCH 09/18] s5p-tv: add dv_timings support for hdmi.
Date: Fri, 01 Mar 2013 12:01:45 +0100 [thread overview]
Message-ID: <51308A99.3060009@samsung.com> (raw)
In-Reply-To: <92ae3c7595637957ef1894921b9a451ffd458d16.1361006882.git.hans.verkuil@cisco.com>
Hi Hans,
Please refer to the comments below.
On 02/16/2013 10:28 AM, Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> This just adds dv_timings support without modifying existing dv_preset
> support.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
> Cc: Tomasz Stanislawski <t.stanislaws@samsung.com>
> Cc: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> drivers/media/platform/s5p-tv/hdmi_drv.c | 92 +++++++++++++++++++++++++-----
> 1 file changed, 79 insertions(+), 13 deletions(-)
>
[snip]
> +static int hdmi_enum_dv_timings(struct v4l2_subdev *sd,
> + struct v4l2_enum_dv_timings *timings)
> +{
> + if (timings->index >= ARRAY_SIZE(hdmi_timings))
> + return -EINVAL;
> + timings->timings = hdmi_timings[timings->index].dv_timings;
> + if (!hdmi_timings[timings->index].reduced_fps)
> + timings->timings.bt.flags &= ~V4L2_DV_FL_CAN_REDUCE_FPS;
> + return 0;
> +}
> +
> +static int hdmi_dv_timings_cap(struct v4l2_subdev *sd,
> + struct v4l2_dv_timings_cap *cap)
> +{
> + cap->type = V4L2_DV_BT_656_1120;
The minimal width among all the supported timings is 720 not 640.
> + cap->bt.min_width = 640;
> + cap->bt.max_width = 1920;
> + cap->bt.min_height = 480;
> + cap->bt.max_height = 1080;
The range of pixelclock is a property of hdmiphy.
Not all ranges might be supported on all platforms.
Therefore it may be a good idea to obtains those values
from hdmiphy by chaining hdmi_dv_timings_cap to hdmiphy.
> + cap->bt.min_pixelclock = 27000000;
> + cap->bt.max_pixelclock = 148500000;
> + cap->bt.standards = V4L2_DV_BT_STD_CEA861;
> + cap->bt.capabilities = V4L2_DV_BT_CAP_INTERLACED |
> + V4L2_DV_BT_CAP_PROGRESSIVE;
> + return 0;
> +}
> +
> static const struct v4l2_subdev_core_ops hdmi_sd_core_ops = {
> .s_power = hdmi_s_power,
> };
> @@ -687,6 +749,10 @@ static const struct v4l2_subdev_video_ops hdmi_sd_video_ops = {
> .s_dv_preset = hdmi_s_dv_preset,
> .g_dv_preset = hdmi_g_dv_preset,
> .enum_dv_presets = hdmi_enum_dv_presets,
> + .s_dv_timings = hdmi_s_dv_timings,
> + .g_dv_timings = hdmi_g_dv_timings,
> + .enum_dv_timings = hdmi_enum_dv_timings,
> + .dv_timings_cap = hdmi_dv_timings_cap,
> .g_mbus_fmt = hdmi_g_mbus_fmt,
> .s_stream = hdmi_s_stream,
> };
>
next prev parent reply other threads:[~2013-03-01 11:01 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-16 9:28 [RFC PATCH 00/18] Remove DV_PRESET API Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 01/18] tvp7002: replace 'preset' by 'timings' in various structs/variables Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 02/18] tvp7002: use dv_timings structs instead of presets Hans Verkuil
2013-02-16 13:12 ` Prabhakar Lad
2013-02-16 9:28 ` [RFC PATCH 03/18] tvp7002: remove dv_preset support Hans Verkuil
2013-02-16 13:13 ` Prabhakar Lad
2013-02-16 9:28 ` [RFC PATCH 04/18] davinci_vpfe: fix copy-paste errors in several comments Hans Verkuil
2013-02-16 12:40 ` Prabhakar Lad
2013-02-16 9:28 ` [RFC PATCH 05/18] davinci: remove VPBE_ENC_DV_PRESET and rename VPBE_ENC_CUSTOM_TIMINGS Hans Verkuil
2013-02-16 12:50 ` Prabhakar Lad
2013-02-16 12:50 ` Prabhakar Lad
2013-02-16 19:18 ` Sekhar Nori
2013-02-16 19:18 ` Sekhar Nori
2013-02-16 9:28 ` [RFC PATCH 06/18] davinci: replace V4L2_OUT_CAP_CUSTOM_TIMINGS by V4L2_OUT_CAP_DV_TIMINGS Hans Verkuil
2013-02-16 12:58 ` Prabhakar Lad
2013-02-16 12:58 ` Prabhakar Lad
2013-02-16 19:23 ` Sekhar Nori
2013-02-16 19:23 ` Sekhar Nori
2013-02-16 19:33 ` Hans Verkuil
2013-02-16 19:33 ` Hans Verkuil
2013-02-19 10:47 ` Sekhar Nori
2013-02-19 10:47 ` Sekhar Nori
2013-02-16 9:28 ` [RFC PATCH 07/18] blackfin: replace V4L2_IN/OUT_CAP_CUSTOM_TIMINGS by DV_TIMINGS Hans Verkuil
2013-02-16 13:39 ` Scott Jiang
2013-02-16 9:28 ` [RFC PATCH 08/18] s5p-tv: add dv_timings support for mixer_video Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 09/18] s5p-tv: add dv_timings support for hdmi Hans Verkuil
2013-03-01 11:01 ` Tomasz Stanislawski [this message]
2013-02-16 9:28 ` [RFC PATCH 10/18] s5p-tv: add dv_timings support for hdmiphy Hans Verkuil
2013-03-01 11:02 ` Tomasz Stanislawski
2013-03-01 11:25 ` Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 11/18] s5p-tv: remove dv_preset support from mixer_video Hans Verkuil
2013-03-01 11:02 ` Tomasz Stanislawski
2013-02-16 9:28 ` [RFC PATCH 12/18] s5p-tv: remove the dv_preset API from hdmi Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 13/18] s5p-tv: remove the dv_preset API from hdmiphy Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 14/18] v4l2-common: remove obsolete v4l_fill_dv_preset_info Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 15/18] v4l2-subdev: remove obsolete dv_preset ops Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 16/18] v4l2 core: remove the obsolete dv_preset support Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 17/18] DocBook/media/v4l: remove the documentation of the obsolete dv_preset API Hans Verkuil
2013-02-16 9:28 ` [RFC PATCH 18/18] videodev2.h: remove obsolete DV_PRESET API Hans Verkuil
2013-02-16 13:12 ` [RFC PATCH 01/18] tvp7002: replace 'preset' by 'timings' in various structs/variables Prabhakar Lad
2013-03-01 11:01 ` [RFC PATCH 00/18] Remove DV_PRESET API Tomasz Stanislawski
2013-03-01 11:32 ` Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51308A99.3060009@samsung.com \
--to=t.stanislaws@samsung.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=prabhakar.csengg@gmail.com \
--cc=scott.jiang.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.