Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137891
b: refs/heads/master
c: 4ef2ccc
h: refs/heads/master
i:
  137889: 702cc4b
  137887: 07f9308
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent e84e29e commit 459bc36
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 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: 1d6af821a91df15e3fc2720c223ec514ae83dc86
refs/heads/master: 4ef2ccc2611456667ea78c6f418ce87e1fa9fac5
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bt8xx/bttv-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -4085,7 +4085,7 @@ static void __devinit avermedia_eeprom(struct bttv *btv)
}

/* used on Voodoo TV/FM (Voodoo 200), S0 wired to 0x10000 */
void bttv_tda9880_setnorm(struct bttv *btv, int norm)
void bttv_tda9880_setnorm(struct bttv *btv, unsigned int norm)
{
/* fix up our card entry */
if(norm==V4L2_STD_NTSC) {
Expand Down
13 changes: 5 additions & 8 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ bttv_crop_calc_limits(struct bttv_crop *c)
}

static void
bttv_crop_reset(struct bttv_crop *c, int norm)
bttv_crop_reset(struct bttv_crop *c, unsigned int norm)
{
c->rect = bttv_tvnorms[norm].cropcap.defrect;
bttv_crop_calc_limits(c);
Expand All @@ -1290,16 +1290,13 @@ 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;
BUG_ON(norm >= BTTV_TVNORMS);
BUG_ON(btv->tvnorm >= BTTV_TVNORMS);

tvnorm = &bttv_tvnorms[norm];

if (btv->tvnorm < 0 ||
btv->tvnorm >= BTTV_TVNORMS ||
0 != memcmp(&bttv_tvnorms[btv->tvnorm].cropcap,
&tvnorm->cropcap,
sizeof (tvnorm->cropcap))) {
if (!memcmp(&bttv_tvnorms[btv->tvnorm].cropcap, &tvnorm->cropcap,
sizeof (tvnorm->cropcap))) {
bttv_crop_reset(&btv->crop[0], norm);
btv->crop[1] = btv->crop[0]; /* current = default */

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bt8xx/bttv-vbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
return 0;
}

void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, int norm)
void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm)
{
const struct bttv_tvnorm *tvnorm;
unsigned int real_samples_per_line;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/bt8xx/bttv.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ extern void bttv_init_card2(struct bttv *btv);

/* card-specific funtions */
extern void tea5757_set_freq(struct bttv *btv, unsigned short freq);
extern void bttv_tda9880_setnorm(struct bttv *btv, int norm);
extern void bttv_tda9880_setnorm(struct bttv *btv, unsigned int norm);

/* extra tweaks for some chipsets */
extern void bttv_check_chipset(void);
Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/media/video/bt8xx/bttvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct bttv_buffer {

/* bttv specific */
const struct bttv_format *fmt;
int tvnorm;
unsigned int tvnorm;
int btformat;
int btswap;
struct bttv_geometry geo;
Expand All @@ -154,7 +154,7 @@ struct bttv_buffer_set {
};

struct bttv_overlay {
int tvnorm;
unsigned int tvnorm;
struct v4l2_rect w;
enum v4l2_field field;
struct v4l2_clip *clips;
Expand All @@ -174,7 +174,7 @@ struct bttv_vbi_fmt {
};

/* bttv-vbi.c */
void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, int norm);
void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm);

struct bttv_crop {
/* A cropping rectangle in struct bttv_tvnorm.cropcap units. */
Expand Down Expand Up @@ -378,7 +378,8 @@ struct bttv {
unsigned int audio;
unsigned int mute;
unsigned long freq;
int tvnorm,hue,contrast,bright,saturation;
unsigned int tvnorm;
int hue, contrast, bright, saturation;
struct v4l2_framebuffer fbuf;
unsigned int field_count;

Expand Down

0 comments on commit 459bc36

Please sign in to comment.