Commit 14169107 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab

[media] tm6000: add radio capabilities

add radio capabilities
Signed-off-by: default avatarStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent cecc2471
...@@ -254,6 +254,7 @@ struct tm6000_board tm6000_boards[] = { ...@@ -254,6 +254,7 @@ struct tm6000_board tm6000_boards[] = {
.has_zl10353 = 1, .has_zl10353 = 1,
.has_eeprom = 1, .has_eeprom = 1,
.has_remote = 1, .has_remote = 1,
.has_radio = 1.
.has_input_comp = 1, .has_input_comp = 1,
.has_input_svid = 1, .has_input_svid = 1,
}, },
...@@ -276,6 +277,7 @@ struct tm6000_board tm6000_boards[] = { ...@@ -276,6 +277,7 @@ struct tm6000_board tm6000_boards[] = {
.has_zl10353 = 0, .has_zl10353 = 0,
.has_eeprom = 1, .has_eeprom = 1,
.has_remote = 1, .has_remote = 1,
.has_radio = 1,
.has_input_comp = 1, .has_input_comp = 1,
.has_input_svid = 1, .has_input_svid = 1,
}, },
...@@ -350,6 +352,7 @@ struct tm6000_board tm6000_boards[] = { ...@@ -350,6 +352,7 @@ struct tm6000_board tm6000_boards[] = {
.has_zl10353 = 1, .has_zl10353 = 1,
.has_eeprom = 1, .has_eeprom = 1,
.has_remote = 0, .has_remote = 0,
.has_radio = 1,
.has_input_comp = 0, .has_input_comp = 0,
.has_input_svid = 0, .has_input_svid = 0,
}, },
...@@ -372,6 +375,7 @@ struct tm6000_board tm6000_boards[] = { ...@@ -372,6 +375,7 @@ struct tm6000_board tm6000_boards[] = {
.has_zl10353 = 0, .has_zl10353 = 0,
.has_eeprom = 1, .has_eeprom = 1,
.has_remote = 0, .has_remote = 0,
.has_radio = 1,
.has_input_comp = 0, .has_input_comp = 0,
.has_input_svid = 0, .has_input_svid = 0,
}, },
......
...@@ -1730,6 +1730,7 @@ int tm6000_v4l2_register(struct tm6000_core *dev) ...@@ -1730,6 +1730,7 @@ int tm6000_v4l2_register(struct tm6000_core *dev)
printk(KERN_INFO "%s: registered device %s\n", printk(KERN_INFO "%s: registered device %s\n",
dev->name, video_device_node_name(dev->vfd)); dev->name, video_device_node_name(dev->vfd));
if (dev->caps.has_radio) {
dev->radio_dev = vdev_init(dev, &tm6000_radio_template, dev->radio_dev = vdev_init(dev, &tm6000_radio_template,
"radio"); "radio");
if (!dev->radio_dev) { if (!dev->radio_dev) {
...@@ -1748,6 +1749,7 @@ int tm6000_v4l2_register(struct tm6000_core *dev) ...@@ -1748,6 +1749,7 @@ int tm6000_v4l2_register(struct tm6000_core *dev)
printk(KERN_INFO "%s: registered device %s\n", printk(KERN_INFO "%s: registered device %s\n",
dev->name, video_device_node_name(dev->radio_dev)); dev->name, video_device_node_name(dev->radio_dev));
}
printk(KERN_INFO "Trident TVMaster TM5600/TM6000/TM6010 USB2 board (Load status: %d)\n", ret); printk(KERN_INFO "Trident TVMaster TM5600/TM6000/TM6010 USB2 board (Load status: %d)\n", ret);
return ret; return ret;
......
...@@ -129,6 +129,7 @@ struct tm6000_capabilities { ...@@ -129,6 +129,7 @@ struct tm6000_capabilities {
unsigned int has_zl10353:1; unsigned int has_zl10353:1;
unsigned int has_eeprom:1; unsigned int has_eeprom:1;
unsigned int has_remote:1; unsigned int has_remote:1;
unsigned int has_radio:1;
unsigned int has_input_comp:1; unsigned int has_input_comp:1;
unsigned int has_input_svid:1; unsigned int has_input_svid:1;
}; };
......
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