Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76281
b: refs/heads/master
c: 302f61a
h: refs/heads/master
i:
  76279: af1cf61
v: v3
  • Loading branch information
Nickolay V. Shmyrev authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent f5bc89c commit c0eb47c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 012cf21975e8ccc2d57859413b336087f7f98763
refs/heads/master: 302f61ad5db0e6a4c265e1f6454c102e2283a926
18 changes: 5 additions & 13 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,16 +1254,6 @@ audio_input(struct bttv *btv, int input)
return audio_mux(btv, input, btv->mute);
}

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)
{
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand All @@ -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)
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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++;

Expand Down

0 comments on commit c0eb47c

Please sign in to comment.