aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-devattr.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-11-26 00:07:26 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:05 -0500
commitf5174af201f2e22c101bb02d06343e4bc5f056de (patch)
treea13e51ad387953b17f11360a5cb89d8abc0ea551 /drivers/media/video/pvrusb2/pvrusb2-devattr.c
parentaaf7884db395332ae8474f3ea5bcdd39c0a941ea (diff)
V4L/DVB (6698): pvrusb2: Implement signal routing schemes
The exact routing of video and audio signals within a device is a device-specific attribute. Hauppauge devices do it one way; other types of device may route things differently. Unfortunately it is rather impractical to define chip-specific routing at the device attribute level, so instead what happens here is that "schemes" are defined. Each chip level interface implements its part of a given scheme and the scheme as a whole is made into a device specific attribute controlled via a table entry in pvrusb2-devattr.c. The only scheme defined here is for Hauppauge devices, but clearly this opens the door for other possibilities to follow. 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-devattr.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-devattr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
index 54a401e8bb14..464a13a06494 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
@@ -73,6 +73,7 @@ const struct pvr2_device_desc pvr2_device_descriptions[] = {
73 .fx2_firmware.lst = pvr2_fw1_names_29xxx, 73 .fx2_firmware.lst = pvr2_fw1_names_29xxx,
74 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx), 74 .fx2_firmware.cnt = ARRAY_SIZE(pvr2_fw1_names_29xxx),
75 .flag_has_hauppauge_rom = !0, 75 .flag_has_hauppauge_rom = !0,
76 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
76 }, 77 },
77 [PVR2_HDW_TYPE_24XXX] = { 78 [PVR2_HDW_TYPE_24XXX] = {
78 .description = "WinTV PVR USB2 Model Category 24xxxx", 79 .description = "WinTV PVR USB2 Model Category 24xxxx",
@@ -84,6 +85,7 @@ const struct pvr2_device_desc pvr2_device_descriptions[] = {
84 .flag_has_cx25840 = !0, 85 .flag_has_cx25840 = !0,
85 .flag_has_wm8775 = !0, 86 .flag_has_wm8775 = !0,
86 .flag_has_hauppauge_rom = !0, 87 .flag_has_hauppauge_rom = !0,
88 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
87 }, 89 },
88}; 90};
89 91