Commit c43221df authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (12233): em28xx: rename is_27xx to is_webcam

Just renames the flag, to use a clearer name. Later patches will use
this flag to properly set some drivers behaviors for webcams.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 641f75ca
...@@ -450,7 +450,7 @@ struct em28xx_board em28xx_boards[] = { ...@@ -450,7 +450,7 @@ struct em28xx_board em28xx_boards[] = {
[EM2820_BOARD_SILVERCREST_WEBCAM] = { [EM2820_BOARD_SILVERCREST_WEBCAM] = {
.name = "Silvercrest Webcam 1.3mpix", .name = "Silvercrest Webcam 1.3mpix",
.tuner_type = TUNER_ABSENT, .tuner_type = TUNER_ABSENT,
.is_27xx = 1, .is_webcam = 1,
.decoder = EM28XX_MT9V011, .decoder = EM28XX_MT9V011,
.input = { { .input = { {
.type = EM28XX_VMUX_COMPOSITE1, .type = EM28XX_VMUX_COMPOSITE1,
...@@ -1772,7 +1772,7 @@ void em28xx_pre_card_setup(struct em28xx *dev) ...@@ -1772,7 +1772,7 @@ void em28xx_pre_card_setup(struct em28xx *dev)
em28xx_info("chip ID is em2750\n"); em28xx_info("chip ID is em2750\n");
break; break;
case CHIP_ID_EM2820: case CHIP_ID_EM2820:
if (dev->board.is_27xx) if (dev->board.is_webcam)
em28xx_info("chip is em2710\n"); em28xx_info("chip is em2710\n");
else else
em28xx_info("chip ID is em2820\n"); em28xx_info("chip ID is em2820\n");
......
...@@ -652,7 +652,7 @@ int em28xx_set_outfmt(struct em28xx *dev) ...@@ -652,7 +652,7 @@ int em28xx_set_outfmt(struct em28xx *dev)
outfmt = dev->format->reg; outfmt = dev->format->reg;
if (dev->board.is_27xx) { if (dev->board.is_webcam) {
vinmode = 0x0d; vinmode = 0x0d;
vinctl = 0x00; vinctl = 0x00;
} else { } else {
...@@ -707,7 +707,7 @@ static int em28xx_scaler_set(struct em28xx *dev, u16 h, u16 v) ...@@ -707,7 +707,7 @@ static int em28xx_scaler_set(struct em28xx *dev, u16 h, u16 v)
u8 mode; u8 mode;
/* the em2800 scaler only supports scaling down to 50% */ /* the em2800 scaler only supports scaling down to 50% */
if (dev->board.is_27xx) { if (dev->board.is_webcam) {
/* FIXME: Don't use the scaler yet */ /* FIXME: Don't use the scaler yet */
mode = 0; mode = 0;
} else if (dev->board.is_em2800) { } else if (dev->board.is_em2800) {
......
...@@ -726,7 +726,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, ...@@ -726,7 +726,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
return -EINVAL; return -EINVAL;
} }
if (dev->board.is_27xx) { if (dev->board.is_webcam) {
/* FIXME: This is the only supported fmt */ /* FIXME: This is the only supported fmt */
width = 640; width = 640;
height = 480; height = 480;
...@@ -768,7 +768,7 @@ static int em28xx_set_video_format(struct em28xx *dev, unsigned int fourcc, ...@@ -768,7 +768,7 @@ static int em28xx_set_video_format(struct em28xx *dev, unsigned int fourcc,
struct em28xx_fmt *fmt; struct em28xx_fmt *fmt;
/* FIXME: This is the only supported fmt */ /* FIXME: This is the only supported fmt */
if (dev->board.is_27xx) { if (dev->board.is_webcam) {
width = 640; width = 640;
height = 480; height = 480;
} }
......
...@@ -390,7 +390,7 @@ struct em28xx_board { ...@@ -390,7 +390,7 @@ struct em28xx_board {
unsigned int max_range_640_480:1; unsigned int max_range_640_480:1;
unsigned int has_dvb:1; unsigned int has_dvb:1;
unsigned int has_snapshot_button:1; unsigned int has_snapshot_button:1;
unsigned int is_27xx:1; unsigned int is_webcam:1;
unsigned int valid:1; unsigned int valid:1;
unsigned char xclk, i2c_speed; unsigned char xclk, i2c_speed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment