lkml.org 
[lkml]   [2006]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 104/141] V4L/DVB (3372): Fix a small bug when constructing fps and line numbers
    Date
    From: Mauro Carvalho Chehab <mchehab@infradead.org>
    Date: 1141009732 -0300

    Previously, only NTSC and PAL/M were associated to 30fps and
    525 lines, so, PAL/60 were not handled properly.

    Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
    ---

    diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
    diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
    index a241bf7..4908dab 100644
    --- a/drivers/media/video/v4l2-common.c
    +++ b/drivers/media/video/v4l2-common.c
    @@ -97,7 +97,7 @@ int v4l2_video_std_construct(struct v4l2
    memset(vs, 0, sizeof(struct v4l2_standard));
    vs->index = index;
    vs->id = id;
    - if (id & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) {
    + if (id & V4L2_STD_525_60) {
    vs->frameperiod.numerator = 1001;
    vs->frameperiod.denominator = 30000;
    vs->framelines = 525;
    @@ -110,7 +110,6 @@ int v4l2_video_std_construct(struct v4l2
    return 0;
    }

    -
    /* ----------------------------------------------------------------- */
    /* priority handling */

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-03-20 16:50    [W:4.034 / U:0.420 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site