diff options
author | Antoine Jacquet <royale@zerezo.com> | 2008-08-11 12:12:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:51 -0400 |
commit | 8466028be7926679ff794ec2ed7a8938eafba521 (patch) | |
tree | d693f132e4b28e72f49c8a88526e4fcfd4e0b801 /drivers/media/dvb/dvb-usb/dtv5100.h | |
parent | 33d27a45165ae9c3551e8d7c1186a5583371e5c4 (diff) |
V4L/DVB (8734): Initial support for AME DTV-5100 USB2.0 DVB-T
Basic support for AME DTV-5100 USB2.0 DVB-T using the qt1010 tuner and a dummy frontend.
Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dtv5100.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dtv5100.h | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/dtv5100.h b/drivers/media/dvb/dvb-usb/dtv5100.h new file mode 100644 index 000000000000..1aadb86f70e6 --- /dev/null +++ b/drivers/media/dvb/dvb-usb/dtv5100.h | |||
@@ -0,0 +1,128 @@ | |||
1 | /* | ||
2 | * DVB USB Linux driver for AME DTV-5100 USB2.0 DVB-T | ||
3 | * | ||
4 | * Copyright (C) 2008 Antoine Jacquet <royale@zerezo.com> | ||
5 | * http://royale.zerezo.com/dtv5100/ | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | */ | ||
21 | |||
22 | #ifndef _DVB_USB_DTV5100_H_ | ||
23 | #define _DVB_USB_DTV5100_H_ | ||
24 | |||
25 | #define DVB_USB_LOG_PREFIX "dtv5100" | ||
26 | #include "dvb-usb.h" | ||
27 | |||
28 | #define DTV5100_USB_TIMEOUT 500 | ||
29 | #define DTV5100_I2C_WRITE 0xc7 | ||
30 | #define DTV5100_I2C_READ 0xc8 | ||
31 | |||
32 | #define DRIVER_AUTHOR "Antoine Jacquet, http://royale.zerezo.com/" | ||
33 | #define DRIVER_DESC "AME DTV-5100 USB2.0 DVB-T" | ||
34 | |||
35 | static struct { | ||
36 | u8 request; | ||
37 | u8 value; | ||
38 | u16 index; | ||
39 | } dtv5100_init[] = { | ||
40 | { 0x000000c5, 0x00000000, 0x00000001 }, | ||
41 | { 0x000000c5, 0x00000001, 0x00000001 }, | ||
42 | { 0x000000c0, 0x0000000b, 0x00000050 }, | ||
43 | { 0x000000c0, 0x00000044, 0x00000051 }, | ||
44 | { 0x000000c0, 0x00000046, 0x00000052 }, | ||
45 | { 0x000000c0, 0x00000015, 0x00000053 }, | ||
46 | { 0x000000c0, 0x0000000f, 0x00000054 }, | ||
47 | { 0x000000c0, 0x00000080, 0x00000055 }, | ||
48 | { 0x000000c0, 0x00000001, 0x000000ea }, | ||
49 | { 0x000000c0, 0x00000000, 0x000000ea }, | ||
50 | { 0x000000c0, 0x00000075, 0x0000005c }, | ||
51 | { 0x000000c0, 0x000000a1, 0x0000009c }, | ||
52 | { 0x000000c0, 0x00000000, 0x0000008e }, | ||
53 | { 0x000000c0, 0x00000000, 0x00000090 }, | ||
54 | { 0x000000c0, 0x000000ff, 0x00000091 }, | ||
55 | { 0x000000c0, 0x000000ff, 0x00000092 }, | ||
56 | { 0x000000c0, 0x00000000, 0x00000093 }, | ||
57 | { 0x000000c0, 0x000000ff, 0x00000094 }, | ||
58 | { 0x000000c0, 0x00000000, 0x00000058 }, | ||
59 | { 0x000000c0, 0x0000003f, 0x00000095 }, | ||
60 | { 0x000000c0, 0x0000003f, 0x00000096 }, | ||
61 | { 0x000000c0, 0x0000000c, 0x0000005a }, | ||
62 | { 0x000000c0, 0x0000002b, 0x00000056 }, | ||
63 | { 0x000000c0, 0x00000017, 0x0000005f }, | ||
64 | { 0x000000c0, 0x00000040, 0x0000005e }, | ||
65 | { 0x000000c0, 0x00000036, 0x00000064 }, | ||
66 | { 0x000000c0, 0x00000067, 0x00000065 }, | ||
67 | { 0x000000c0, 0x000000e5, 0x00000066 }, | ||
68 | { 0x000000c0, 0x00000073, 0x000000cc }, | ||
69 | { 0x000000c0, 0x000000cd, 0x0000006c }, | ||
70 | { 0x000000c0, 0x0000007e, 0x0000006d }, | ||
71 | { 0x000000c0, 0x00000001, 0x00000071 }, | ||
72 | { 0x000000c0, 0x00000001, 0x00000070 }, | ||
73 | /**/ | ||
74 | { 0x000000c7, 0x00000080, 0x0000c401 }, | ||
75 | { 0x000000c7, 0x0000003f, 0x0000c402 }, | ||
76 | { 0x000000c7, 0x00000034, 0x0000c405 }, // 2 | ||
77 | { 0x000000c7, 0x00000044, 0x0000c406 }, | ||
78 | { 0x000000c7, 0x00000038, 0x0000c407 }, // 4 | ||
79 | { 0x000000c7, 0x00000008, 0x0000c408 }, | ||
80 | { 0x000000c7, 0x0000001c, 0x0000c409 }, // 6 | ||
81 | { 0x000000c7, 0x0000000d, 0x0000c40a }, // 7 | ||
82 | { 0x000000c7, 0x00000045, 0x0000c40b }, // 8 | ||
83 | { 0x000000c7, 0x000000e1, 0x0000c40c }, | ||
84 | { 0x000000c7, 0x00000078, 0x0000c41a }, // 10 | ||
85 | { 0x000000c7, 0x00000000, 0x0000c41b }, | ||
86 | { 0x000000c7, 0x00000089, 0x0000c41c }, | ||
87 | { 0x000000c7, 0x000000fd, 0x0000c411 }, // 13 | ||
88 | { 0x000000c7, 0x00000095, 0x0000c412 }, // 14 | ||
89 | { 0x000000c7, 0x000000d6, 0x0000c422 }, // 15 | ||
90 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
91 | { 0x000000c7, 0x000000d0, 0x0000c41e }, | ||
92 | { 0x000000c8, 0x00000000, 0x0000c422 }, | ||
93 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
94 | { 0x000000c8, 0x00000000, 0x0000c405 }, | ||
95 | { 0x000000c8, 0x00000000, 0x0000c422 }, | ||
96 | { 0x000000c7, 0x000000d0, 0x0000c423 }, | ||
97 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
98 | { 0x000000c7, 0x000000e0, 0x0000c41e }, | ||
99 | { 0x000000c8, 0x00000000, 0x0000c423 }, | ||
100 | { 0x000000c8, 0x00000000, 0x0000c423 }, | ||
101 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
102 | { 0x000000c7, 0x000000d0, 0x0000c424 }, | ||
103 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
104 | { 0x000000c7, 0x000000f0, 0x0000c41e }, | ||
105 | { 0x000000c8, 0x00000000, 0x0000c424 }, | ||
106 | { 0x000000c7, 0x00000000, 0x0000c41e }, | ||
107 | { 0x000000c7, 0x0000007f, 0x0000c414 }, | ||
108 | { 0x000000c7, 0x0000007f, 0x0000c415 }, | ||
109 | { 0x000000c7, 0x00000030, 0x0000c405 }, | ||
110 | { 0x000000c7, 0x00000000, 0x0000c406 }, | ||
111 | { 0x000000c7, 0x0000001f, 0x0000c415 }, | ||
112 | { 0x000000c7, 0x000000ff, 0x0000c416 }, | ||
113 | { 0x000000c7, 0x000000ff, 0x0000c418 }, | ||
114 | { 0x000000c7, 0x00000051, 0x0000c41f }, // here | ||
115 | { 0x000000c7, 0x00000016, 0x0000c420 }, // here | ||
116 | { 0x000000c7, 0x00000053, 0x0000c421 }, | ||
117 | { 0x000000c7, 0x000000c1, 0x0000c425 }, // here | ||
118 | { 0x000000c7, 0x00000014, 0x0000c426 }, // here | ||
119 | { 0x000000c7, 0x00000082, 0x0000c400 }, | ||
120 | { 0x000000c7, 0x00000000, 0x0000c402 }, | ||
121 | { 0x000000c7, 0x00000000, 0x0000c401 }, | ||
122 | /**/ | ||
123 | { } /* Terminating entry */ | ||
124 | }; | ||
125 | |||
126 | extern struct dvb_frontend* dtv5100_fe_attach(void); | ||
127 | |||
128 | #endif | ||