diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:14:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:14:42 -0400 |
commit | f894d18380e7e7ff05f6622ccb75d2881922c6e9 (patch) | |
tree | e3c11b831b68096239a49dec539a49e49c1d90b7 /drivers/media/dvb/siano/sms-cards.c | |
parent | d13ff0559fea73f237a01669887d2c10e11d7662 (diff) | |
parent | d20b27478d6ccf7c4c8de4f09db2bdbaec82a6c0 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (277 commits)
V4L/DVB (8415): gspca: Infinite loop in i2c_w() of etoms.
V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups
V4L/DVB (8411): videobuf-dma-contig.c: fix 64-bit build for pre-2.6.24 kernels
V4L/DVB (8410): sh_mobile_ceu_camera: fix 64-bit compiler warnings
V4L/DVB (8397): video: convert select VIDEO_ZORAN_ZR36060 into depends on
V4L/DVB (8396): video: Fix Kbuild dependency for VIDEO_IR_I2C
V4L/DVB (8395): saa7134: Fix Kbuild dependency of ir-kbd-i2c
V4L/DVB (8394): ir-common: CodingStyle fix: move EXPORT_SYMBOL_GPL to their proper places
V4L/DVB (8393): media/video: Fix depencencies for VIDEOBUF
V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on"
V4L/DVB (8390): videodev: add comment and remove magic number.
V4L/DVB (8389): videodev: simplify get_index()
V4L/DVB (8387): Some cosmetic changes
V4L/DVB (8381): ov7670: fix compile warnings
V4L/DVB (8380): saa7115: use saa7115_auto instead of saa711x as the autodetect driver name.
V4L/DVB (8379): saa7127: Make device detection optional
V4L/DVB (8378): cx18: move cx18_av_vbi_setup to av-core.c and rename to cx18_av_std_setup
V4L/DVB (8377): ivtv/cx18: ensure the default control values are correct
V4L/DVB (8376): cx25840: move cx25840_vbi_setup to core.c and rename to cx25840_std_setup
V4L/DVB (8374): gspca: No conflict of 0c45:6011 with the sn9c102 driver.
...
Diffstat (limited to 'drivers/media/dvb/siano/sms-cards.c')
-rw-r--r-- | drivers/media/dvb/siano/sms-cards.c | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/drivers/media/dvb/siano/sms-cards.c b/drivers/media/dvb/siano/sms-cards.c new file mode 100644 index 000000000000..e7a8ac0c4049 --- /dev/null +++ b/drivers/media/dvb/siano/sms-cards.c | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | * Card-specific functions for the Siano SMS1xxx USB dongle | ||
3 | * | ||
4 | * Copyright (c) 2008 Michael Krufky <mkrufky@linuxtv.org> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 3 as | ||
8 | * published by the Free Software Foundation; | ||
9 | * | ||
10 | * Software distributed under the License is distributed on an "AS IS" | ||
11 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
12 | * | ||
13 | * See the GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
18 | */ | ||
19 | |||
20 | #include "sms-cards.h" | ||
21 | |||
22 | struct usb_device_id smsusb_id_table[] = { | ||
23 | #ifdef CONFIG_DVB_SIANO_SMS1XXX_SMS_IDS | ||
24 | { USB_DEVICE(0x187f, 0x0010), | ||
25 | .driver_info = SMS1XXX_BOARD_SIANO_STELLAR }, | ||
26 | { USB_DEVICE(0x187f, 0x0100), | ||
27 | .driver_info = SMS1XXX_BOARD_SIANO_STELLAR }, | ||
28 | { USB_DEVICE(0x187f, 0x0200), | ||
29 | .driver_info = SMS1XXX_BOARD_SIANO_NOVA_A }, | ||
30 | { USB_DEVICE(0x187f, 0x0201), | ||
31 | .driver_info = SMS1XXX_BOARD_SIANO_NOVA_B }, | ||
32 | { USB_DEVICE(0x187f, 0x0300), | ||
33 | .driver_info = SMS1XXX_BOARD_SIANO_VEGA }, | ||
34 | #endif | ||
35 | { USB_DEVICE(0x2040, 0x1700), | ||
36 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT }, | ||
37 | { USB_DEVICE(0x2040, 0x1800), | ||
38 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A }, | ||
39 | { USB_DEVICE(0x2040, 0x1801), | ||
40 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B }, | ||
41 | { USB_DEVICE(0x2040, 0x5500), | ||
42 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | ||
43 | { USB_DEVICE(0x2040, 0x5580), | ||
44 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | ||
45 | { USB_DEVICE(0x2040, 0x5590), | ||
46 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | ||
47 | { } /* Terminating entry */ | ||
48 | }; | ||
49 | MODULE_DEVICE_TABLE(usb, smsusb_id_table); | ||
50 | |||
51 | static struct sms_board sms_boards[] = { | ||
52 | [SMS_BOARD_UNKNOWN] = { | ||
53 | .name = "Unknown board", | ||
54 | }, | ||
55 | [SMS1XXX_BOARD_SIANO_STELLAR] = { | ||
56 | .name = "Siano Stellar Digital Receiver", | ||
57 | .type = SMS_STELLAR, | ||
58 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-stellar-dvbt-01.fw", | ||
59 | }, | ||
60 | [SMS1XXX_BOARD_SIANO_NOVA_A] = { | ||
61 | .name = "Siano Nova A Digital Receiver", | ||
62 | .type = SMS_NOVA_A0, | ||
63 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-a-dvbt-01.fw", | ||
64 | }, | ||
65 | [SMS1XXX_BOARD_SIANO_NOVA_B] = { | ||
66 | .name = "Siano Nova B Digital Receiver", | ||
67 | .type = SMS_NOVA_B0, | ||
68 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-b-dvbt-01.fw", | ||
69 | }, | ||
70 | [SMS1XXX_BOARD_SIANO_VEGA] = { | ||
71 | .name = "Siano Vega Digital Receiver", | ||
72 | .type = SMS_VEGA, | ||
73 | }, | ||
74 | [SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT] = { | ||
75 | .name = "Hauppauge Catamount", | ||
76 | .type = SMS_STELLAR, | ||
77 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-stellar-dvbt-01.fw", | ||
78 | }, | ||
79 | [SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A] = { | ||
80 | .name = "Hauppauge Okemo-A", | ||
81 | .type = SMS_NOVA_A0, | ||
82 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-a-dvbt-01.fw", | ||
83 | }, | ||
84 | [SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B] = { | ||
85 | .name = "Hauppauge Okemo-B", | ||
86 | .type = SMS_NOVA_B0, | ||
87 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-nova-b-dvbt-01.fw", | ||
88 | }, | ||
89 | [SMS1XXX_BOARD_HAUPPAUGE_WINDHAM] = { | ||
90 | .name = "Hauppauge WinTV-Nova-T-MiniStick", | ||
91 | .type = SMS_NOVA_B0, | ||
92 | .fw[DEVICE_MODE_DVBT_BDA] = "sms1xxx-hcw-55xxx-dvbt-01.fw", | ||
93 | }, | ||
94 | }; | ||
95 | |||
96 | struct sms_board *sms_get_board(int id) | ||
97 | { | ||
98 | BUG_ON(id >= ARRAY_SIZE(sms_boards)); | ||
99 | |||
100 | return &sms_boards[id]; | ||
101 | } | ||
102 | |||