Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=302f61ad5db0e6a4c265e1f6454c102e2283a926
Commit:     302f61ad5db0e6a4c265e1f6454c102e2283a926
Parent:     012cf21975e8ccc2d57859413b336087f7f98763
Author:     Nickolay V. Shmyrev <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 26 10:53:21 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:00:56 2008 -0200

    V4L/DVB (6409): Cleanup: removed i2c_vidiocschan
    
    This is part of the old V4L1->V4L2 bttv patch, ported to current tree
    by Mauro Carvalho Chehab <[EMAIL PROTECTED]>
    
    Signed-off-by: Nickolay V. Shmyrev <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/bt8xx/bttv-driver.c |   18 +++++-------------
 1 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/drivers/media/video/bt8xx/bttv-driver.c 
b/drivers/media/video/bt8xx/bttv-driver.c
index 581a3c9..3e5c50a 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -1255,16 +1255,6 @@ audio_input(struct bttv *btv, int input)
 }
 
 static void
-i2c_vidiocschan(struct bttv *btv)
-{
-       v4l2_std_id std = bttv_tvnorms[btv->tvnorm].v4l2_id;
-
-       bttv_call_i2c_clients(btv, VIDIOC_S_STD, &std);
-       if (btv->c.type == BTTV_BOARD_VOODOOTV_FM || btv->c.type == 
BTTV_BOARD_VOODOOTV_200)
-               bttv_tda9880_setnorm(btv,btv->tvnorm);
-}
-
-static void
 bttv_crop_calc_limits(struct bttv_crop *c)
 {
        /* Scale factor min. 1:1, max. 16:1. Min. image size
@@ -1298,6 +1288,7 @@ static int
 set_tvnorm(struct bttv *btv, unsigned int norm)
 {
        const struct bttv_tvnorm *tvnorm;
+       v4l2_std_id id;
 
        if (norm < 0 || norm >= BTTV_TVNORMS)
                return -EINVAL;
@@ -1334,6 +1325,9 @@ set_tvnorm(struct bttv *btv, unsigned int norm)
                bttv_tda9880_setnorm(btv,norm);
                break;
        }
+       id = tvnorm->v4l2_id;
+       bttv_call_i2c_clients(btv, VIDIOC_S_STD, &id);
+
        return 0;
 }
 
@@ -1359,7 +1353,6 @@ set_input(struct bttv *btv, unsigned int input, unsigned 
int norm)
        audio_input(btv,(input == bttv_tvcards[btv->c.type].tuner ?
                       TVAUDIO_INPUT_TUNER : TVAUDIO_INPUT_EXTERN));
        set_tvnorm(btv, norm);
-       i2c_vidiocschan(btv);
 }
 
 static void init_irqreg(struct bttv *btv)
@@ -2095,7 +2088,6 @@ static int bttv_common_ioctls(struct bttv *btv, unsigned 
int cmd, void *arg)
 
                mutex_lock(&btv->lock);
                set_tvnorm(btv,i);
-               i2c_vidiocschan(btv);
                mutex_unlock(&btv->lock);
                return 0;
        }
@@ -3777,7 +3769,7 @@ static int bttv_open(struct inode *inode, struct file 
*file)
                            V4L2_FIELD_SEQ_TB,
                            sizeof(struct bttv_buffer),
                            fh);
-       i2c_vidiocschan(btv);
+       set_tvnorm(btv,btv->tvnorm);
 
        btv->users++;
 
-
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