Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242149
b: refs/heads/master
c: 2aefbc1
h: refs/heads/master
i:
  242147: 4d6e175
v: v3
  • Loading branch information
Dmitri Belimov authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent c75439b commit 4f5e86a
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 25 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: 812738e11158e9b92c4f0e9278de48377cfa3cc8
refs/heads/master: 2aefbc1acb5370b0753d16c9d6e65e01fe586c75
46 changes: 28 additions & 18 deletions trunk/drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,13 @@ struct tm6000_board tm6000_boards[] = {
.avideo = TM6000_AIP_SIF1,
.aradio = TM6000_AIP_LINE1,
.caps = {
.has_tuner = 1,
.has_dvb = 1,
.has_zl10353 = 1,
.has_eeprom = 1,
.has_remote = 1,
.has_tuner = 1,
.has_dvb = 1,
.has_zl10353 = 1,
.has_eeprom = 1,
.has_remote = 1,
.has_input_comp = 1,
.has_input_svid = 1,
},
.gpio = {
.tuner_reset = TM6010_GPIO_0,
Expand All @@ -255,11 +257,13 @@ struct tm6000_board tm6000_boards[] = {
.avideo = TM6000_AIP_SIF1,
.aradio = TM6000_AIP_LINE1,
.caps = {
.has_tuner = 1,
.has_dvb = 0,
.has_zl10353 = 0,
.has_eeprom = 1,
.has_remote = 1,
.has_tuner = 1,
.has_dvb = 0,
.has_zl10353 = 0,
.has_eeprom = 1,
.has_remote = 1,
.has_input_comp = 1,
.has_input_svid = 1,
},
.gpio = {
.tuner_reset = TM6010_GPIO_0,
Expand Down Expand Up @@ -327,10 +331,13 @@ struct tm6000_board tm6000_boards[] = {
.avideo = TM6000_AIP_SIF1,
.aradio = TM6000_AIP_LINE1,
.caps = {
.has_tuner = 1,
.has_dvb = 1,
.has_zl10353 = 1,
.has_eeprom = 1,
.has_tuner = 1,
.has_dvb = 1,
.has_zl10353 = 1,
.has_eeprom = 1,
.has_remote = 0,
.has_input_comp = 0,
.has_input_svid = 0,
},
.gpio = {
.tuner_reset = TM6010_GPIO_0,
Expand All @@ -346,10 +353,13 @@ struct tm6000_board tm6000_boards[] = {
.avideo = TM6000_AIP_SIF1,
.aradio = TM6000_AIP_LINE1,
.caps = {
.has_tuner = 1,
.has_dvb = 0,
.has_zl10353 = 0,
.has_eeprom = 1,
.has_tuner = 1,
.has_dvb = 0,
.has_zl10353 = 0,
.has_eeprom = 1,
.has_remote = 0,
.has_input_comp = 0,
.has_input_svid = 0,
},
.gpio = {
.tuner_reset = TM6010_GPIO_0,
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-stds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,8 +1161,6 @@ int tm6000_set_standard(struct tm6000_core *dev, v4l2_std_id * norm)
rc = tm6000_load_std(dev, svideo_stds[i].common,
sizeof(svideo_stds[i].
common));
tm6000_set_audio_std(dev, svideo_stds[i].audio_default_std);

goto ret;
}
}
Expand Down
17 changes: 13 additions & 4 deletions trunk/drivers/staging/tm6000/tm6000-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,18 +1080,27 @@ static int vidioc_s_std (struct file *file, void *priv, v4l2_std_id *norm)
static int vidioc_enum_input(struct file *file, void *priv,
struct v4l2_input *inp)
{
struct tm6000_fh *fh = priv;
struct tm6000_core *dev = fh->dev;

switch (inp->index) {
case TM6000_INPUT_TV:
inp->type = V4L2_INPUT_TYPE_TUNER;
strcpy(inp->name, "Television");
break;
case TM6000_INPUT_COMPOSITE:
inp->type = V4L2_INPUT_TYPE_CAMERA;
strcpy(inp->name, "Composite");
if (dev->caps.has_input_comp) {
inp->type = V4L2_INPUT_TYPE_CAMERA;
strcpy(inp->name, "Composite");
} else
return -EINVAL;
break;
case TM6000_INPUT_SVIDEO:
inp->type = V4L2_INPUT_TYPE_CAMERA;
strcpy(inp->name, "S-Video");
if (dev->caps.has_input_svid) {
inp->type = V4L2_INPUT_TYPE_CAMERA;
strcpy(inp->name, "S-Video");
} else
return -EINVAL;
break;
default:
return -EINVAL;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/staging/tm6000/tm6000.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ struct tm6000_capabilities {
unsigned int has_zl10353:1;
unsigned int has_eeprom:1;
unsigned int has_remote:1;
unsigned int has_input_comp:1;
unsigned int has_input_svid:1;
};

struct tm6000_dvb {
Expand Down

0 comments on commit 4f5e86a

Please sign in to comment.