Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a5e9fe149afb0fdf0de4729f1b0d203d4ac14906
Commit:     a5e9fe149afb0fdf0de4729f1b0d203d4ac14906
Parent:     c71d4bc512dda42069c70219bd00315a91550367
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 23 11:36:18 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:02:38 2008 -0200

    V4L/DVB (6658): Sets a default std, if not specified
    
    Some drivers call set_frequency before selecting the video standard. Before
    this patch, an invalid standard ID could be assumed.
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tuner-xc2028.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/tuner-xc2028.c 
b/drivers/media/video/tuner-xc2028.c
index 9118314..8fa3ab7 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -912,7 +912,11 @@ static int xc2028_set_tv_freq(struct dvb_frontend *fe,
        struct xc2028_data *priv = fe->tuner_priv;
        fe_bandwidth_t bw;
 
-       /* FIXME: Maybe there are more 6 MHz video standards */
+       /* if std is not defined, choose one */
+       if (!p->std)
+               p->std = V4L2_STD_MN;
+
+       /* PAL/M, PAL/N, PAL/Nc and NTSC variants should use 6MHz firmware */
        if (p->std & V4L2_STD_MN)
                bw = BANDWIDTH_6_MHZ;
        else
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to