aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-11-26 00:14:23 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:06 -0500
commit9e2e3aeb2d2c8bf64b04e1f5747f1d9842df43de (patch)
tree7806460ad4e078eabace186417b109fa86fd0804 /drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
parent65bd80fe18b6abb63776746646321b41b44d70a7 (diff)
V4L/DVB (6701): pvrusb2: Enable support for "GOTVIEW USB2.0 DVD2" hardware
This changeset allows the pvrusb2 driver to operate a new device type ("GOTVIEW USB2.0 DVD2"). Changes amount to defining a new routing scheme for the device and adding appropriate table entries into pvrusb2-devattr.c. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
index b6714c41ea75..ffdc45c324e5 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c
@@ -78,11 +78,35 @@ static const struct routing_scheme_item routing_scheme0[] = {
78 }, 78 },
79}; 79};
80 80
81/* Specific to gotview device */
82static const struct routing_scheme_item routing_schemegv[] = {
83 [PVR2_CVAL_INPUT_TV] = {
84 .vid = CX25840_COMPOSITE2,
85 .aud = CX25840_AUDIO5,
86 },
87 [PVR2_CVAL_INPUT_RADIO] = { /* Treat the same as composite */
88 .vid = CX25840_COMPOSITE1,
89 .aud = CX25840_AUDIO_SERIAL,
90 },
91 [PVR2_CVAL_INPUT_COMPOSITE] = {
92 .vid = CX25840_COMPOSITE1,
93 .aud = CX25840_AUDIO_SERIAL,
94 },
95 [PVR2_CVAL_INPUT_SVIDEO] = {
96 .vid = (CX25840_SVIDEO_LUMA3|CX25840_SVIDEO_CHROMA4),
97 .aud = CX25840_AUDIO_SERIAL,
98 },
99};
100
81static const struct routing_scheme routing_schemes[] = { 101static const struct routing_scheme routing_schemes[] = {
82 [PVR2_ROUTING_SCHEME_HAUPPAUGE] = { 102 [PVR2_ROUTING_SCHEME_HAUPPAUGE] = {
83 .def = routing_scheme0, 103 .def = routing_scheme0,
84 .cnt = ARRAY_SIZE(routing_scheme0), 104 .cnt = ARRAY_SIZE(routing_scheme0),
85 }, 105 },
106 [PVR2_ROUTING_SCHEME_GOTVIEW] = {
107 .def = routing_schemegv,
108 .cnt = ARRAY_SIZE(routing_schemegv),
109 },
86}; 110};
87 111
88static void set_input(struct pvr2_v4l_cx2584x *ctxt) 112static void set_input(struct pvr2_v4l_cx2584x *ctxt)