diff options
author | Michael Krufky <mkrufky@m1k.net> | 2006-01-09 12:25:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:25:34 -0500 |
commit | 50c25fff5385c6baf3114f7c369b0f75a29ac1e8 (patch) | |
tree | 8931b703585db52ee9028d2bd0c2da5a06b0b36e /drivers/media/dvb | |
parent | 41d70c26c615da5a42aea4655232c68c53b9e084 (diff) |
V4L/DVB (3218): Whitespace cleanups
- minor whitespace cleanups
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/dvb')
28 files changed, 114 insertions, 114 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index fa7058108bf4..0b940e152b79 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -298,7 +298,7 @@ static int flexcop_fe_request_firmware(struct dvb_frontend* fe, const struct fir | |||
298 | } | 298 | } |
299 | 299 | ||
300 | static int lgdt3303_pll_set(struct dvb_frontend* fe, | 300 | static int lgdt3303_pll_set(struct dvb_frontend* fe, |
301 | struct dvb_frontend_parameters* params) | 301 | struct dvb_frontend_parameters* params) |
302 | { | 302 | { |
303 | struct flexcop_device *fc = fe->dvb->priv; | 303 | struct flexcop_device *fc = fe->dvb->priv; |
304 | u8 buf[4]; | 304 | u8 buf[4]; |
diff --git a/drivers/media/dvb/bt8xx/dst_ca.c b/drivers/media/dvb/bt8xx/dst_ca.c index 2239651969c8..c650b4bf7f5f 100644 --- a/drivers/media/dvb/bt8xx/dst_ca.c +++ b/drivers/media/dvb/bt8xx/dst_ca.c | |||
@@ -283,16 +283,17 @@ static int handle_dst_tag(struct dst_state *state, struct ca_msg *p_ca_message, | |||
283 | hw_buffer->msg[4] = 0x03; | 283 | hw_buffer->msg[4] = 0x03; |
284 | hw_buffer->msg[5] = length & 0xff; | 284 | hw_buffer->msg[5] = length & 0xff; |
285 | hw_buffer->msg[6] = 0x00; | 285 | hw_buffer->msg[6] = 0x00; |
286 | |||
286 | /* | 287 | /* |
287 | * Need to compute length for EN50221 section 8.3.2, for the time being | 288 | * Need to compute length for EN50221 section 8.3.2, for the time being |
288 | * assuming 8.3.2 is not applicable | 289 | * assuming 8.3.2 is not applicable |
289 | */ | 290 | */ |
290 | memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); | 291 | memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); |
291 | } | 292 | } |
293 | |||
292 | return 0; | 294 | return 0; |
293 | } | 295 | } |
294 | 296 | ||
295 | |||
296 | static int write_to_8820(struct dst_state *state, struct ca_msg *hw_buffer, u8 length, u8 reply) | 297 | static int write_to_8820(struct dst_state *state, struct ca_msg *hw_buffer, u8 length, u8 reply) |
297 | { | 298 | { |
298 | if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { | 299 | if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { |
diff --git a/drivers/media/dvb/cinergyT2/Kconfig b/drivers/media/dvb/cinergyT2/Kconfig index 7cf4c4a888ec..6018fcdba1e6 100644 --- a/drivers/media/dvb/cinergyT2/Kconfig +++ b/drivers/media/dvb/cinergyT2/Kconfig | |||
@@ -21,35 +21,35 @@ config DVB_CINERGYT2_TUNING | |||
21 | config DVB_CINERGYT2_STREAM_URB_COUNT | 21 | config DVB_CINERGYT2_STREAM_URB_COUNT |
22 | int "Number of queued USB Request Blocks for Highspeed Stream Transfers" | 22 | int "Number of queued USB Request Blocks for Highspeed Stream Transfers" |
23 | depends on DVB_CINERGYT2_TUNING | 23 | depends on DVB_CINERGYT2_TUNING |
24 | default "32" | 24 | default "32" |
25 | help | 25 | help |
26 | USB Request Blocks for Highspeed Stream transfers are scheduled in | 26 | USB Request Blocks for Highspeed Stream transfers are scheduled in |
27 | a queue for the Host Controller. | 27 | a queue for the Host Controller. |
28 | 28 | ||
29 | Usually the default value is a safe choice. | 29 | Usually the default value is a safe choice. |
30 | 30 | ||
31 | You may increase this number if you are using this device in a | 31 | You may increase this number if you are using this device in a |
32 | Server Environment with many high-traffic USB Highspeed devices | 32 | Server Environment with many high-traffic USB Highspeed devices |
33 | sharing the same USB bus. | 33 | sharing the same USB bus. |
34 | 34 | ||
35 | 35 | ||
36 | config DVB_CINERGYT2_STREAM_BUF_SIZE | 36 | config DVB_CINERGYT2_STREAM_BUF_SIZE |
37 | int "Size of URB Stream Buffers for Highspeed Transfers" | 37 | int "Size of URB Stream Buffers for Highspeed Transfers" |
38 | depends on DVB_CINERGYT2_TUNING | 38 | depends on DVB_CINERGYT2_TUNING |
39 | default "512" | 39 | default "512" |
40 | help | 40 | help |
41 | Should be a multiple of native buffer size of 512 bytes. | 41 | Should be a multiple of native buffer size of 512 bytes. |
42 | Default value is a safe choice. | 42 | Default value is a safe choice. |
43 | 43 | ||
44 | You may increase this number if you are using this device in a | 44 | You may increase this number if you are using this device in a |
45 | Server Environment with many high-traffic USB Highspeed devices | 45 | Server Environment with many high-traffic USB Highspeed devices |
46 | sharing the same USB bus. | 46 | sharing the same USB bus. |
47 | 47 | ||
48 | 48 | ||
49 | config DVB_CINERGYT2_QUERY_INTERVAL | 49 | config DVB_CINERGYT2_QUERY_INTERVAL |
50 | int "Status update interval [milliseconds]" | 50 | int "Status update interval [milliseconds]" |
51 | depends on DVB_CINERGYT2_TUNING | 51 | depends on DVB_CINERGYT2_TUNING |
52 | default "250" | 52 | default "250" |
53 | help | 53 | help |
54 | This is the interval for status readouts from the demodulator. | 54 | This is the interval for status readouts from the demodulator. |
55 | You may try lower values if you need more responsive signal quality | 55 | You may try lower values if you need more responsive signal quality |
@@ -64,9 +64,9 @@ config DVB_CINERGYT2_QUERY_INTERVAL | |||
64 | config DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE | 64 | config DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE |
65 | bool "Register the onboard IR Remote Control Receiver as Input Device" | 65 | bool "Register the onboard IR Remote Control Receiver as Input Device" |
66 | depends on DVB_CINERGYT2_TUNING | 66 | depends on DVB_CINERGYT2_TUNING |
67 | default "yes" | 67 | default "yes" |
68 | help | 68 | help |
69 | Enable this option if you want to use the onboard Infrared Remote | 69 | Enable this option if you want to use the onboard Infrared Remote |
70 | Control Receiver as Linux-Input device. | 70 | Control Receiver as Linux-Input device. |
71 | 71 | ||
72 | Right now only the keycode table for the default Remote Control | 72 | Right now only the keycode table for the default Remote Control |
@@ -77,7 +77,7 @@ config DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE | |||
77 | config DVB_CINERGYT2_RC_QUERY_INTERVAL | 77 | config DVB_CINERGYT2_RC_QUERY_INTERVAL |
78 | int "Infrared Remote Controller update interval [milliseconds]" | 78 | int "Infrared Remote Controller update interval [milliseconds]" |
79 | depends on DVB_CINERGYT2_TUNING && DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE | 79 | depends on DVB_CINERGYT2_TUNING && DVB_CINERGYT2_ENABLE_RC_INPUT_DEVICE |
80 | default "50" | 80 | default "50" |
81 | help | 81 | help |
82 | If you have a very fast-repeating remote control you can try lower | 82 | If you have a very fast-repeating remote control you can try lower |
83 | values, for normal consumer receivers the default value should be | 83 | values, for normal consumer receivers the default value should be |
diff --git a/drivers/media/dvb/dvb-core/Kconfig b/drivers/media/dvb/dvb-core/Kconfig index a9a7b3421048..12ee912a5705 100644 --- a/drivers/media/dvb/dvb-core/Kconfig +++ b/drivers/media/dvb/dvb-core/Kconfig | |||
@@ -5,7 +5,7 @@ config DVB_CORE | |||
5 | help | 5 | help |
6 | DVB core utility functions for device handling, software fallbacks etc. | 6 | DVB core utility functions for device handling, software fallbacks etc. |
7 | Say Y when you have a DVB card and want to use it. Say Y if your want | 7 | Say Y when you have a DVB card and want to use it. Say Y if your want |
8 | to build your drivers outside the kernel, but need the DVB core. All | 8 | to build your drivers outside the kernel, but need the DVB core. All |
9 | in-kernel drivers will select this automatically if needed. | 9 | in-kernel drivers will select this automatically if needed. |
10 | If unsure say N. | 10 | If unsure say N. |
11 | 11 | ||
diff --git a/drivers/media/dvb/dvb-core/Makefile b/drivers/media/dvb/dvb-core/Makefile index c6baac20f529..7adb50c1e8eb 100644 --- a/drivers/media/dvb/dvb-core/Makefile +++ b/drivers/media/dvb/dvb-core/Makefile | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | dvb-core-objs = dvbdev.o dmxdev.o dvb_demux.o dvb_filter.o \ | 5 | dvb-core-objs = dvbdev.o dmxdev.o dvb_demux.o dvb_filter.o \ |
6 | dvb_ca_en50221.o dvb_frontend.o \ | 6 | dvb_ca_en50221.o dvb_frontend.o \ |
7 | dvb_net.o dvb_ringbuffer.o | 7 | dvb_net.o dvb_ringbuffer.o |
8 | 8 | ||
9 | obj-$(CONFIG_DVB_CORE) += dvb-core.o | 9 | obj-$(CONFIG_DVB_CORE) += dvb-core.o |
diff --git a/drivers/media/dvb/dvb-core/dvb_filter.c b/drivers/media/dvb/dvb-core/dvb_filter.c index c49fd0bd7181..772003fb1821 100644 --- a/drivers/media/dvb/dvb-core/dvb_filter.c +++ b/drivers/media/dvb/dvb-core/dvb_filter.c | |||
@@ -409,16 +409,16 @@ static u8 *skip_pes_header(u8 **bufp) | |||
409 | 409 | ||
410 | if ((inbuf[6] & 0xc0) == 0x80){ /* mpeg2 */ | 410 | if ((inbuf[6] & 0xc0) == 0x80){ /* mpeg2 */ |
411 | if (buf[7] & PTS_ONLY) | 411 | if (buf[7] & PTS_ONLY) |
412 | pts = buf+9; | 412 | pts = buf+9; |
413 | else pts = NULL; | 413 | else pts = NULL; |
414 | buf = inbuf + 9 + inbuf[8]; | 414 | buf = inbuf + 9 + inbuf[8]; |
415 | } else { /* mpeg1 */ | 415 | } else { /* mpeg1 */ |
416 | for (buf = inbuf + 6; *buf == 0xff; buf++) | 416 | for (buf = inbuf + 6; *buf == 0xff; buf++) |
417 | if (buf == inbuf + 6 + 16) { | 417 | if (buf == inbuf + 6 + 16) { |
418 | break; | 418 | break; |
419 | } | 419 | } |
420 | if ((*buf & 0xc0) == 0x40) | 420 | if ((*buf & 0xc0) == 0x40) |
421 | buf += 2; | 421 | buf += 2; |
422 | skip = mpeg1_skip_table [*buf >> 4]; | 422 | skip = mpeg1_skip_table [*buf >> 4]; |
423 | if (skip == 5 || skip == 10) pts = buf; | 423 | if (skip == 5 || skip == 10) pts = buf; |
424 | else pts = NULL; | 424 | else pts = NULL; |
@@ -529,9 +529,9 @@ static void init_mpg_picture( struct mpg_picture *pic, int chan, int32_t field_t | |||
529 | pic->picture_header = 0; | 529 | pic->picture_header = 0; |
530 | pic->sequence_header_data | 530 | pic->sequence_header_data |
531 | = ( INIT_HORIZONTAL_SIZE << 20 ) | 531 | = ( INIT_HORIZONTAL_SIZE << 20 ) |
532 | | ( INIT_VERTICAL_SIZE << 8 ) | 532 | | ( INIT_VERTICAL_SIZE << 8 ) |
533 | | ( INIT_ASPECT_RATIO << 4 ) | 533 | | ( INIT_ASPECT_RATIO << 4 ) |
534 | | ( INIT_FRAME_RATE ); | 534 | | ( INIT_FRAME_RATE ); |
535 | pic->mpeg1_flag = 0; | 535 | pic->mpeg1_flag = 0; |
536 | pic->vinfo.horizontal_size | 536 | pic->vinfo.horizontal_size |
537 | = INIT_DISP_HORIZONTAL_SIZE; | 537 | = INIT_DISP_HORIZONTAL_SIZE; |
diff --git a/drivers/media/dvb/dvb-core/dvb_ringbuffer.c b/drivers/media/dvb/dvb-core/dvb_ringbuffer.c index 283c6e9339a4..77ad2410f4d3 100644 --- a/drivers/media/dvb/dvb-core/dvb_ringbuffer.c +++ b/drivers/media/dvb/dvb-core/dvb_ringbuffer.c | |||
@@ -112,10 +112,10 @@ ssize_t dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, size_t len, in | |||
112 | split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; | 112 | split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; |
113 | if (split > 0) { | 113 | if (split > 0) { |
114 | if (!usermem) | 114 | if (!usermem) |
115 | memcpy(buf, rbuf->data+rbuf->pread, split); | 115 | memcpy(buf, rbuf->data+rbuf->pread, split); |
116 | else | 116 | else |
117 | if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) | 117 | if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) |
118 | return -EFAULT; | 118 | return -EFAULT; |
119 | buf += split; | 119 | buf += split; |
120 | todo -= split; | 120 | todo -= split; |
121 | rbuf->pread = 0; | 121 | rbuf->pread = 0; |
@@ -124,7 +124,7 @@ ssize_t dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, size_t len, in | |||
124 | memcpy(buf, rbuf->data+rbuf->pread, todo); | 124 | memcpy(buf, rbuf->data+rbuf->pread, todo); |
125 | else | 125 | else |
126 | if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) | 126 | if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) |
127 | return -EFAULT; | 127 | return -EFAULT; |
128 | 128 | ||
129 | rbuf->pread = (rbuf->pread + todo) % rbuf->size; | 129 | rbuf->pread = (rbuf->pread + todo) % rbuf->size; |
130 | 130 | ||
@@ -167,7 +167,7 @@ ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8* buf, size_t le | |||
167 | } | 167 | } |
168 | 168 | ||
169 | ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, | 169 | ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, |
170 | int offset, u8* buf, size_t len, int usermem) | 170 | int offset, u8* buf, size_t len, int usermem) |
171 | { | 171 | { |
172 | size_t todo; | 172 | size_t todo; |
173 | size_t split; | 173 | size_t split; |
@@ -183,10 +183,10 @@ ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, | |||
183 | split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; | 183 | split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; |
184 | if (split > 0) { | 184 | if (split > 0) { |
185 | if (!usermem) | 185 | if (!usermem) |
186 | memcpy(buf, rbuf->data+idx, split); | 186 | memcpy(buf, rbuf->data+idx, split); |
187 | else | 187 | else |
188 | if (copy_to_user(buf, rbuf->data+idx, split)) | 188 | if (copy_to_user(buf, rbuf->data+idx, split)) |
189 | return -EFAULT; | 189 | return -EFAULT; |
190 | buf += split; | 190 | buf += split; |
191 | todo -= split; | 191 | todo -= split; |
192 | idx = 0; | 192 | idx = 0; |
@@ -195,7 +195,7 @@ ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, | |||
195 | memcpy(buf, rbuf->data+idx, todo); | 195 | memcpy(buf, rbuf->data+idx, todo); |
196 | else | 196 | else |
197 | if (copy_to_user(buf, rbuf->data+idx, todo)) | 197 | if (copy_to_user(buf, rbuf->data+idx, todo)) |
198 | return -EFAULT; | 198 | return -EFAULT; |
199 | 199 | ||
200 | return len; | 200 | return len; |
201 | } | 201 | } |
@@ -209,12 +209,12 @@ void dvb_ringbuffer_pkt_dispose(struct dvb_ringbuffer *rbuf, size_t idx) | |||
209 | // clean up disposed packets | 209 | // clean up disposed packets |
210 | while(dvb_ringbuffer_avail(rbuf) > DVB_RINGBUFFER_PKTHDRSIZE) { | 210 | while(dvb_ringbuffer_avail(rbuf) > DVB_RINGBUFFER_PKTHDRSIZE) { |
211 | if (DVB_RINGBUFFER_PEEK(rbuf, 2) == PKT_DISPOSED) { | 211 | if (DVB_RINGBUFFER_PEEK(rbuf, 2) == PKT_DISPOSED) { |
212 | pktlen = DVB_RINGBUFFER_PEEK(rbuf, 0) << 8; | 212 | pktlen = DVB_RINGBUFFER_PEEK(rbuf, 0) << 8; |
213 | pktlen |= DVB_RINGBUFFER_PEEK(rbuf, 1); | 213 | pktlen |= DVB_RINGBUFFER_PEEK(rbuf, 1); |
214 | DVB_RINGBUFFER_SKIP(rbuf, pktlen + DVB_RINGBUFFER_PKTHDRSIZE); | 214 | DVB_RINGBUFFER_SKIP(rbuf, pktlen + DVB_RINGBUFFER_PKTHDRSIZE); |
215 | } else { | 215 | } else { |
216 | // first packet is not disposed, so we stop cleaning now | 216 | // first packet is not disposed, so we stop cleaning now |
217 | break; | 217 | break; |
218 | } | 218 | } |
219 | } | 219 | } |
220 | } | 220 | } |
@@ -242,8 +242,8 @@ ssize_t dvb_ringbuffer_pkt_next(struct dvb_ringbuffer *rbuf, size_t idx, size_t* | |||
242 | curpktstatus = rbuf->data[(idx + 2) % rbuf->size]; | 242 | curpktstatus = rbuf->data[(idx + 2) % rbuf->size]; |
243 | 243 | ||
244 | if (curpktstatus == PKT_READY) { | 244 | if (curpktstatus == PKT_READY) { |
245 | *pktlen = curpktlen; | 245 | *pktlen = curpktlen; |
246 | return idx; | 246 | return idx; |
247 | } | 247 | } |
248 | 248 | ||
249 | consumed += curpktlen + DVB_RINGBUFFER_PKTHDRSIZE; | 249 | consumed += curpktlen + DVB_RINGBUFFER_PKTHDRSIZE; |
diff --git a/drivers/media/dvb/dvb-core/dvb_ringbuffer.h b/drivers/media/dvb/dvb-core/dvb_ringbuffer.h index fa476f662f82..6d2560972771 100644 --- a/drivers/media/dvb/dvb-core/dvb_ringbuffer.h +++ b/drivers/media/dvb/dvb-core/dvb_ringbuffer.h | |||
@@ -106,7 +106,7 @@ extern void dvb_ringbuffer_flush_spinlock_wakeup(struct dvb_ringbuffer *rbuf); | |||
106 | ** returns number of bytes transferred or -EFAULT | 106 | ** returns number of bytes transferred or -EFAULT |
107 | */ | 107 | */ |
108 | extern ssize_t dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, | 108 | extern ssize_t dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, |
109 | size_t len, int usermem); | 109 | size_t len, int usermem); |
110 | 110 | ||
111 | 111 | ||
112 | /* write routines & macros */ | 112 | /* write routines & macros */ |
@@ -121,7 +121,7 @@ extern ssize_t dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf, u8 *buf, | |||
121 | ** returns number of bytes transferred or -EFAULT | 121 | ** returns number of bytes transferred or -EFAULT |
122 | */ | 122 | */ |
123 | extern ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf, | 123 | extern ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf, |
124 | size_t len); | 124 | size_t len); |
125 | 125 | ||
126 | 126 | ||
127 | /** | 127 | /** |
@@ -133,7 +133,7 @@ extern ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf, | |||
133 | * returns Number of bytes written, or -EFAULT, -ENOMEM, -EVINAL. | 133 | * returns Number of bytes written, or -EFAULT, -ENOMEM, -EVINAL. |
134 | */ | 134 | */ |
135 | extern ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8* buf, | 135 | extern ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8* buf, |
136 | size_t len); | 136 | size_t len); |
137 | 137 | ||
138 | /** | 138 | /** |
139 | * Read from a packet in the ringbuffer. Note: unlike dvb_ringbuffer_read(), this | 139 | * Read from a packet in the ringbuffer. Note: unlike dvb_ringbuffer_read(), this |
@@ -149,7 +149,7 @@ extern ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8* buf, | |||
149 | * returns Number of bytes read, or -EFAULT. | 149 | * returns Number of bytes read, or -EFAULT. |
150 | */ | 150 | */ |
151 | extern ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, | 151 | extern ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, |
152 | int offset, u8* buf, size_t len, int usermem); | 152 | int offset, u8* buf, size_t len, int usermem); |
153 | 153 | ||
154 | /** | 154 | /** |
155 | * Dispose of a packet in the ring buffer. | 155 | * Dispose of a packet in the ring buffer. |
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c index a4aee8665854..06b696e9acbd 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.c +++ b/drivers/media/dvb/dvb-core/dvbdev.c | |||
@@ -92,10 +92,10 @@ static int dvb_device_open(struct inode *inode, struct file *file) | |||
92 | old_fops = file->f_op; | 92 | old_fops = file->f_op; |
93 | file->f_op = fops_get(dvbdev->fops); | 93 | file->f_op = fops_get(dvbdev->fops); |
94 | if(file->f_op->open) | 94 | if(file->f_op->open) |
95 | err = file->f_op->open(inode,file); | 95 | err = file->f_op->open(inode,file); |
96 | if (err) { | 96 | if (err) { |
97 | fops_put(file->f_op); | 97 | fops_put(file->f_op); |
98 | file->f_op = fops_get(old_fops); | 98 | file->f_op = fops_get(old_fops); |
99 | } | 99 | } |
100 | fops_put(old_fops); | 100 | fops_put(old_fops); |
101 | return err; | 101 | return err; |
@@ -356,18 +356,18 @@ int dvb_usercopy(struct inode *inode, struct file *file, | |||
356 | case _IOC_WRITE: | 356 | case _IOC_WRITE: |
357 | case (_IOC_WRITE | _IOC_READ): | 357 | case (_IOC_WRITE | _IOC_READ): |
358 | if (_IOC_SIZE(cmd) <= sizeof(sbuf)) { | 358 | if (_IOC_SIZE(cmd) <= sizeof(sbuf)) { |
359 | parg = sbuf; | 359 | parg = sbuf; |
360 | } else { | 360 | } else { |
361 | /* too big to allocate from stack */ | 361 | /* too big to allocate from stack */ |
362 | mbuf = kmalloc(_IOC_SIZE(cmd),GFP_KERNEL); | 362 | mbuf = kmalloc(_IOC_SIZE(cmd),GFP_KERNEL); |
363 | if (NULL == mbuf) | 363 | if (NULL == mbuf) |
364 | return -ENOMEM; | 364 | return -ENOMEM; |
365 | parg = mbuf; | 365 | parg = mbuf; |
366 | } | 366 | } |
367 | 367 | ||
368 | err = -EFAULT; | 368 | err = -EFAULT; |
369 | if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd))) | 369 | if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd))) |
370 | goto out; | 370 | goto out; |
371 | break; | 371 | break; |
372 | } | 372 | } |
373 | 373 | ||
@@ -384,7 +384,7 @@ int dvb_usercopy(struct inode *inode, struct file *file, | |||
384 | case _IOC_READ: | 384 | case _IOC_READ: |
385 | case (_IOC_WRITE | _IOC_READ): | 385 | case (_IOC_WRITE | _IOC_READ): |
386 | if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd))) | 386 | if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd))) |
387 | err = -EFAULT; | 387 | err = -EFAULT; |
388 | break; | 388 | break; |
389 | } | 389 | } |
390 | 390 | ||
diff --git a/drivers/media/dvb/dvb-core/dvbdev.h b/drivers/media/dvb/dvb-core/dvbdev.h index 0cc6e4a0e27c..74ed5853f0fb 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.h +++ b/drivers/media/dvb/dvb-core/dvbdev.h | |||
@@ -97,7 +97,7 @@ we simply define out own dvb_usercopy(), which will hopefully become | |||
97 | generic_usercopy() someday... */ | 97 | generic_usercopy() someday... */ |
98 | 98 | ||
99 | extern int dvb_usercopy(struct inode *inode, struct file *file, | 99 | extern int dvb_usercopy(struct inode *inode, struct file *file, |
100 | unsigned int cmd, unsigned long arg, | 100 | unsigned int cmd, unsigned long arg, |
101 | int (*func)(struct inode *inode, struct file *file, | 101 | int (*func)(struct inode *inode, struct file *file, |
102 | unsigned int cmd, void *arg)); | 102 | unsigned int cmd, void *arg)); |
103 | 103 | ||
diff --git a/drivers/media/dvb/dvb-usb/vp702x-fe.c b/drivers/media/dvb/dvb-usb/vp702x-fe.c index 104b5d016c7b..0885d9fb2bf2 100644 --- a/drivers/media/dvb/dvb-usb/vp702x-fe.c +++ b/drivers/media/dvb/dvb-usb/vp702x-fe.c | |||
@@ -190,7 +190,7 @@ static int vp702x_fe_get_frontend(struct dvb_frontend* fe, | |||
190 | } | 190 | } |
191 | 191 | ||
192 | static int vp702x_fe_send_diseqc_msg (struct dvb_frontend* fe, | 192 | static int vp702x_fe_send_diseqc_msg (struct dvb_frontend* fe, |
193 | struct dvb_diseqc_master_cmd *m) | 193 | struct dvb_diseqc_master_cmd *m) |
194 | { | 194 | { |
195 | struct vp702x_fe_state *st = fe->demodulator_priv; | 195 | struct vp702x_fe_state *st = fe->demodulator_priv; |
196 | u8 cmd[8],ibuf[10]; | 196 | u8 cmd[8],ibuf[10]; |
diff --git a/drivers/media/dvb/frontends/Kconfig b/drivers/media/dvb/frontends/Kconfig index 17f90ef9ab68..3a3bcf6a2c98 100644 --- a/drivers/media/dvb/frontends/Kconfig +++ b/drivers/media/dvb/frontends/Kconfig | |||
@@ -56,18 +56,18 @@ comment "DVB-T (terrestrial) frontends" | |||
56 | depends on DVB_CORE | 56 | depends on DVB_CORE |
57 | 57 | ||
58 | config DVB_SP8870 | 58 | config DVB_SP8870 |
59 | tristate "Spase sp8870 based" | 59 | tristate "Spase sp8870 based" |
60 | depends on DVB_CORE | 60 | depends on DVB_CORE |
61 | select FW_LOADER | 61 | select FW_LOADER |
62 | help | 62 | help |
63 | A DVB-T tuner module. Say Y when you want to support this frontend. | 63 | A DVB-T tuner module. Say Y when you want to support this frontend. |
64 | 64 | ||
65 | This driver needs external firmware. Please use the command | 65 | This driver needs external firmware. Please use the command |
66 | "<kerneldir>/Documentation/dvb/get_dvb_firmware sp8870" to | 66 | "<kerneldir>/Documentation/dvb/get_dvb_firmware sp8870" to |
67 | download/extract it, and then copy it to /usr/lib/hotplug/firmware. | 67 | download/extract it, and then copy it to /usr/lib/hotplug/firmware. |
68 | 68 | ||
69 | config DVB_SP887X | 69 | config DVB_SP887X |
70 | tristate "Spase sp887x based" | 70 | tristate "Spase sp887x based" |
71 | depends on DVB_CORE | 71 | depends on DVB_CORE |
72 | select FW_LOADER | 72 | select FW_LOADER |
73 | help | 73 | help |
@@ -84,10 +84,10 @@ config DVB_CX22700 | |||
84 | A DVB-T tuner module. Say Y when you want to support this frontend. | 84 | A DVB-T tuner module. Say Y when you want to support this frontend. |
85 | 85 | ||
86 | config DVB_CX22702 | 86 | config DVB_CX22702 |
87 | tristate "Conexant cx22702 demodulator (OFDM)" | 87 | tristate "Conexant cx22702 demodulator (OFDM)" |
88 | depends on DVB_CORE | 88 | depends on DVB_CORE |
89 | help | 89 | help |
90 | A DVB-T tuner module. Say Y when you want to support this frontend. | 90 | A DVB-T tuner module. Say Y when you want to support this frontend. |
91 | 91 | ||
92 | config DVB_L64781 | 92 | config DVB_L64781 |
93 | tristate "LSI L64781" | 93 | tristate "LSI L64781" |
@@ -104,7 +104,7 @@ config DVB_TDA1004X | |||
104 | 104 | ||
105 | This driver needs external firmware. Please use the commands | 105 | This driver needs external firmware. Please use the commands |
106 | "<kerneldir>/Documentation/dvb/get_dvb_firmware tda10045", | 106 | "<kerneldir>/Documentation/dvb/get_dvb_firmware tda10045", |
107 | "<kerneldir>/Documentation/dvb/get_dvb_firmware tda10046" to | 107 | "<kerneldir>/Documentation/dvb/get_dvb_firmware tda10046" to |
108 | download/extract them, and then copy them to /usr/lib/hotplug/firmware. | 108 | download/extract them, and then copy them to /usr/lib/hotplug/firmware. |
109 | 109 | ||
110 | config DVB_NXT6000 | 110 | config DVB_NXT6000 |
@@ -146,13 +146,13 @@ config DVB_VES1820 | |||
146 | tristate "VLSI VES1820 based" | 146 | tristate "VLSI VES1820 based" |
147 | depends on DVB_CORE | 147 | depends on DVB_CORE |
148 | help | 148 | help |
149 | A DVB-C tuner module. Say Y when you want to support this frontend. | 149 | A DVB-C tuner module. Say Y when you want to support this frontend. |
150 | 150 | ||
151 | config DVB_TDA10021 | 151 | config DVB_TDA10021 |
152 | tristate "Philips TDA10021 based" | 152 | tristate "Philips TDA10021 based" |
153 | depends on DVB_CORE | 153 | depends on DVB_CORE |
154 | help | 154 | help |
155 | A DVB-C tuner module. Say Y when you want to support this frontend. | 155 | A DVB-C tuner module. Say Y when you want to support this frontend. |
156 | 156 | ||
157 | config DVB_STV0297 | 157 | config DVB_STV0297 |
158 | tristate "ST STV0297 based" | 158 | tristate "ST STV0297 based" |
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c index ecd056e951f1..d15d32c51dc5 100644 --- a/drivers/media/dvb/frontends/cx24110.c +++ b/drivers/media/dvb/frontends/cx24110.c | |||
@@ -55,7 +55,7 @@ static int debug; | |||
55 | 55 | ||
56 | static struct {u8 reg; u8 data;} cx24110_regdata[]= | 56 | static struct {u8 reg; u8 data;} cx24110_regdata[]= |
57 | /* Comments beginning with @ denote this value should | 57 | /* Comments beginning with @ denote this value should |
58 | be the default */ | 58 | be the default */ |
59 | {{0x09,0x01}, /* SoftResetAll */ | 59 | {{0x09,0x01}, /* SoftResetAll */ |
60 | {0x09,0x00}, /* release reset */ | 60 | {0x09,0x00}, /* release reset */ |
61 | {0x01,0xe8}, /* MSB of code rate 27.5MS/s */ | 61 | {0x01,0xe8}, /* MSB of code rate 27.5MS/s */ |
@@ -66,26 +66,26 @@ static struct {u8 reg; u8 data;} cx24110_regdata[]= | |||
66 | {0x07,0x01}, /* @ Fclk, i.e. sampling clock, 60MHz */ | 66 | {0x07,0x01}, /* @ Fclk, i.e. sampling clock, 60MHz */ |
67 | {0x0a,0x00}, /* @ partial chip disables, do not set */ | 67 | {0x0a,0x00}, /* @ partial chip disables, do not set */ |
68 | {0x0b,0x01}, /* set output clock in gapped mode, start signal low | 68 | {0x0b,0x01}, /* set output clock in gapped mode, start signal low |
69 | active for first byte */ | 69 | active for first byte */ |
70 | {0x0c,0x11}, /* no parity bytes, large hold time, serial data out */ | 70 | {0x0c,0x11}, /* no parity bytes, large hold time, serial data out */ |
71 | {0x0d,0x6f}, /* @ RS Sync/Unsync thresholds */ | 71 | {0x0d,0x6f}, /* @ RS Sync/Unsync thresholds */ |
72 | {0x10,0x40}, /* chip doc is misleading here: write bit 6 as 1 | 72 | {0x10,0x40}, /* chip doc is misleading here: write bit 6 as 1 |
73 | to avoid starting the BER counter. Reset the | 73 | to avoid starting the BER counter. Reset the |
74 | CRC test bit. Finite counting selected */ | 74 | CRC test bit. Finite counting selected */ |
75 | {0x15,0xff}, /* @ size of the limited time window for RS BER | 75 | {0x15,0xff}, /* @ size of the limited time window for RS BER |
76 | estimation. It is <value>*256 RS blocks, this | 76 | estimation. It is <value>*256 RS blocks, this |
77 | gives approx. 2.6 sec at 27.5MS/s, rate 3/4 */ | 77 | gives approx. 2.6 sec at 27.5MS/s, rate 3/4 */ |
78 | {0x16,0x00}, /* @ enable all RS output ports */ | 78 | {0x16,0x00}, /* @ enable all RS output ports */ |
79 | {0x17,0x04}, /* @ time window allowed for the RS to sync */ | 79 | {0x17,0x04}, /* @ time window allowed for the RS to sync */ |
80 | {0x18,0xae}, /* @ allow all standard DVB code rates to be scanned | 80 | {0x18,0xae}, /* @ allow all standard DVB code rates to be scanned |
81 | for automatically */ | 81 | for automatically */ |
82 | /* leave the current code rate and normalization | 82 | /* leave the current code rate and normalization |
83 | registers as they are after reset... */ | 83 | registers as they are after reset... */ |
84 | {0x21,0x10}, /* @ during AutoAcq, search each viterbi setting | 84 | {0x21,0x10}, /* @ during AutoAcq, search each viterbi setting |
85 | only once */ | 85 | only once */ |
86 | {0x23,0x18}, /* @ size of the limited time window for Viterbi BER | 86 | {0x23,0x18}, /* @ size of the limited time window for Viterbi BER |
87 | estimation. It is <value>*65536 channel bits, i.e. | 87 | estimation. It is <value>*65536 channel bits, i.e. |
88 | approx. 38ms at 27.5MS/s, rate 3/4 */ | 88 | approx. 38ms at 27.5MS/s, rate 3/4 */ |
89 | {0x24,0x24}, /* do not trigger Viterbi CRC test. Finite count window */ | 89 | {0x24,0x24}, /* do not trigger Viterbi CRC test. Finite count window */ |
90 | /* leave front-end AGC parameters at default values */ | 90 | /* leave front-end AGC parameters at default values */ |
91 | /* leave decimation AGC parameters at default values */ | 91 | /* leave decimation AGC parameters at default values */ |
diff --git a/drivers/media/dvb/frontends/nxt6000.c b/drivers/media/dvb/frontends/nxt6000.c index a458a3bfff70..a16eeba0020d 100644 --- a/drivers/media/dvb/frontends/nxt6000.c +++ b/drivers/media/dvb/frontends/nxt6000.c | |||
@@ -574,11 +574,11 @@ static struct dvb_frontend_ops nxt6000_ops = { | |||
574 | .symbol_rate_max = 9360000, /* FIXME */ | 574 | .symbol_rate_max = 9360000, /* FIXME */ |
575 | .symbol_rate_tolerance = 4000, | 575 | .symbol_rate_tolerance = 4000, |
576 | .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | | 576 | .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | |
577 | FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | | 577 | FE_CAN_FEC_4_5 | FE_CAN_FEC_5_6 | FE_CAN_FEC_6_7 | |
578 | FE_CAN_FEC_7_8 | FE_CAN_FEC_8_9 | FE_CAN_FEC_AUTO | | 578 | FE_CAN_FEC_7_8 | FE_CAN_FEC_8_9 | FE_CAN_FEC_AUTO | |
579 | FE_CAN_QAM_16 | FE_CAN_QAM_64 | FE_CAN_QAM_AUTO | | 579 | FE_CAN_QAM_16 | FE_CAN_QAM_64 | FE_CAN_QAM_AUTO | |
580 | FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO | | 580 | FE_CAN_TRANSMISSION_MODE_AUTO | FE_CAN_GUARD_INTERVAL_AUTO | |
581 | FE_CAN_HIERARCHY_AUTO, | 581 | FE_CAN_HIERARCHY_AUTO, |
582 | }, | 582 | }, |
583 | 583 | ||
584 | .release = nxt6000_release, | 584 | .release = nxt6000_release, |
diff --git a/drivers/media/dvb/frontends/s5h1420.c b/drivers/media/dvb/frontends/s5h1420.c index 18715091aed8..d69477596921 100644 --- a/drivers/media/dvb/frontends/s5h1420.c +++ b/drivers/media/dvb/frontends/s5h1420.c | |||
@@ -521,8 +521,8 @@ static void s5h1420_setfec_inversion(struct s5h1420_state* state, | |||
521 | 521 | ||
522 | case FEC_3_4: | 522 | case FEC_3_4: |
523 | s5h1420_writereg(state, 0x30, 0x04); | 523 | s5h1420_writereg(state, 0x30, 0x04); |
524 | s5h1420_writereg(state, 0x31, 0x12 | inversion); | 524 | s5h1420_writereg(state, 0x31, 0x12 | inversion); |
525 | break; | 525 | break; |
526 | 526 | ||
527 | case FEC_5_6: | 527 | case FEC_5_6: |
528 | s5h1420_writereg(state, 0x30, 0x08); | 528 | s5h1420_writereg(state, 0x30, 0x08); |
diff --git a/drivers/media/dvb/frontends/sp887x.c b/drivers/media/dvb/frontends/sp887x.c index e3b665782243..b3ae7dccc33c 100644 --- a/drivers/media/dvb/frontends/sp887x.c +++ b/drivers/media/dvb/frontends/sp887x.c | |||
@@ -581,7 +581,7 @@ static struct dvb_frontend_ops sp887x_ops = { | |||
581 | .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | | 581 | .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 | |
582 | FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO | | 582 | FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 | FE_CAN_FEC_AUTO | |
583 | FE_CAN_QPSK | FE_CAN_QAM_16 | FE_CAN_QAM_64 | | 583 | FE_CAN_QPSK | FE_CAN_QAM_16 | FE_CAN_QAM_64 | |
584 | FE_CAN_RECOVER | 584 | FE_CAN_RECOVER |
585 | }, | 585 | }, |
586 | 586 | ||
587 | .release = sp887x_release, | 587 | .release = sp887x_release, |
diff --git a/drivers/media/dvb/frontends/tda10021.c b/drivers/media/dvb/frontends/tda10021.c index 425cd19136fe..21255cac9793 100644 --- a/drivers/media/dvb/frontends/tda10021.c +++ b/drivers/media/dvb/frontends/tda10021.c | |||
@@ -95,7 +95,7 @@ static u8 tda10021_readreg (struct tda10021_state* state, u8 reg) | |||
95 | u8 b0 [] = { reg }; | 95 | u8 b0 [] = { reg }; |
96 | u8 b1 [] = { 0 }; | 96 | u8 b1 [] = { 0 }; |
97 | struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, | 97 | struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, |
98 | { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; | 98 | { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } }; |
99 | int ret; | 99 | int ret; |
100 | 100 | ||
101 | ret = i2c_transfer (state->i2c, msg, 2); | 101 | ret = i2c_transfer (state->i2c, msg, 2); |
@@ -434,7 +434,7 @@ static struct dvb_frontend_ops tda10021_ops = { | |||
434 | .frequency_max = 858000000, | 434 | .frequency_max = 858000000, |
435 | .symbol_rate_min = (XIN/2)/64, /* SACLK/64 == (XIN/2)/64 */ | 435 | .symbol_rate_min = (XIN/2)/64, /* SACLK/64 == (XIN/2)/64 */ |
436 | .symbol_rate_max = (XIN/2)/4, /* SACLK/4 */ | 436 | .symbol_rate_max = (XIN/2)/4, /* SACLK/4 */ |
437 | #if 0 | 437 | #if 0 |
438 | .frequency_tolerance = ???, | 438 | .frequency_tolerance = ???, |
439 | .symbol_rate_tolerance = ???, /* ppm */ /* == 8% (spec p. 5) */ | 439 | .symbol_rate_tolerance = ???, /* ppm */ /* == 8% (spec p. 5) */ |
440 | #endif | 440 | #endif |
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c index c6ae5bfae5b1..6c237fb2b82a 100644 --- a/drivers/media/dvb/frontends/tda1004x.c +++ b/drivers/media/dvb/frontends/tda1004x.c | |||
@@ -289,10 +289,10 @@ static int tda10046h_set_bandwidth(struct tda1004x_state *state, | |||
289 | case BANDWIDTH_6_MHZ: | 289 | case BANDWIDTH_6_MHZ: |
290 | if (tda10046_clk53m) | 290 | if (tda10046_clk53m) |
291 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_6mhz_53M, | 291 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_6mhz_53M, |
292 | sizeof(bandwidth_6mhz_53M)); | 292 | sizeof(bandwidth_6mhz_53M)); |
293 | else | 293 | else |
294 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_6mhz_48M, | 294 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_6mhz_48M, |
295 | sizeof(bandwidth_6mhz_48M)); | 295 | sizeof(bandwidth_6mhz_48M)); |
296 | if (state->config->if_freq == TDA10046_FREQ_045) { | 296 | if (state->config->if_freq == TDA10046_FREQ_045) { |
297 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0a); | 297 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0a); |
298 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0xab); | 298 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0xab); |
@@ -302,10 +302,10 @@ static int tda10046h_set_bandwidth(struct tda1004x_state *state, | |||
302 | case BANDWIDTH_7_MHZ: | 302 | case BANDWIDTH_7_MHZ: |
303 | if (tda10046_clk53m) | 303 | if (tda10046_clk53m) |
304 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_7mhz_53M, | 304 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_7mhz_53M, |
305 | sizeof(bandwidth_7mhz_53M)); | 305 | sizeof(bandwidth_7mhz_53M)); |
306 | else | 306 | else |
307 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_7mhz_48M, | 307 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_7mhz_48M, |
308 | sizeof(bandwidth_7mhz_48M)); | 308 | sizeof(bandwidth_7mhz_48M)); |
309 | if (state->config->if_freq == TDA10046_FREQ_045) { | 309 | if (state->config->if_freq == TDA10046_FREQ_045) { |
310 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0c); | 310 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0c); |
311 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x00); | 311 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x00); |
@@ -315,10 +315,10 @@ static int tda10046h_set_bandwidth(struct tda1004x_state *state, | |||
315 | case BANDWIDTH_8_MHZ: | 315 | case BANDWIDTH_8_MHZ: |
316 | if (tda10046_clk53m) | 316 | if (tda10046_clk53m) |
317 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_8mhz_53M, | 317 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_8mhz_53M, |
318 | sizeof(bandwidth_8mhz_53M)); | 318 | sizeof(bandwidth_8mhz_53M)); |
319 | else | 319 | else |
320 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_8mhz_48M, | 320 | tda1004x_write_buf(state, TDA10046H_TIME_WREF1, bandwidth_8mhz_48M, |
321 | sizeof(bandwidth_8mhz_48M)); | 321 | sizeof(bandwidth_8mhz_48M)); |
322 | if (state->config->if_freq == TDA10046_FREQ_045) { | 322 | if (state->config->if_freq == TDA10046_FREQ_045) { |
323 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0d); | 323 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_MSB, 0x0d); |
324 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x55); | 324 | tda1004x_write_byteI(state, TDA10046H_FREQ_PHY2_LSB, 0x55); |
diff --git a/drivers/media/dvb/pluto2/Kconfig b/drivers/media/dvb/pluto2/Kconfig index f02842be0d60..84f8f9f52869 100644 --- a/drivers/media/dvb/pluto2/Kconfig +++ b/drivers/media/dvb/pluto2/Kconfig | |||
@@ -8,7 +8,7 @@ config DVB_PLUTO2 | |||
8 | Support for PCI cards based on the Pluto2 FPGA like the Satelco | 8 | Support for PCI cards based on the Pluto2 FPGA like the Satelco |
9 | Easywatch Mobile Terrestrial DVB-T Receiver. | 9 | Easywatch Mobile Terrestrial DVB-T Receiver. |
10 | 10 | ||
11 | Since these cards have no MPEG decoder onboard, they transmit | 11 | Since these cards have no MPEG decoder onboard, they transmit |
12 | only compressed MPEG data over the PCI bus, so you need | 12 | only compressed MPEG data over the PCI bus, so you need |
13 | an external software decoder to watch TV on your computer. | 13 | an external software decoder to watch TV on your computer. |
14 | 14 | ||
diff --git a/drivers/media/dvb/ttpci/Kconfig b/drivers/media/dvb/ttpci/Kconfig index fa5034a9ecf5..fa7e38944716 100644 --- a/drivers/media/dvb/ttpci/Kconfig +++ b/drivers/media/dvb/ttpci/Kconfig | |||
@@ -18,9 +18,9 @@ config DVB_AV7110 | |||
18 | This driver only supports the fullfeatured cards with | 18 | This driver only supports the fullfeatured cards with |
19 | onboard MPEG2 decoder. | 19 | onboard MPEG2 decoder. |
20 | 20 | ||
21 | This driver needs an external firmware. Please use the script | 21 | This driver needs an external firmware. Please use the script |
22 | "<kerneldir>/Documentation/dvb/get_dvb_firmware av7110" to | 22 | "<kerneldir>/Documentation/dvb/get_dvb_firmware av7110" to |
23 | download/extract it, and then copy it to /usr/lib/hotplug/firmware. | 23 | download/extract it, and then copy it to /usr/lib/hotplug/firmware. |
24 | 24 | ||
25 | Say Y if you own such a card and want to use it. | 25 | Say Y if you own such a card and want to use it. |
26 | 26 | ||
diff --git a/drivers/media/dvb/ttpci/Makefile b/drivers/media/dvb/ttpci/Makefile index 825ab1c38a4f..a690730ac39d 100644 --- a/drivers/media/dvb/ttpci/Makefile +++ b/drivers/media/dvb/ttpci/Makefile | |||
@@ -16,7 +16,7 @@ EXTRA_CFLAGS = -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/ | |||
16 | hostprogs-y := fdump | 16 | hostprogs-y := fdump |
17 | 17 | ||
18 | ifdef CONFIG_DVB_AV7110_FIRMWARE | 18 | ifdef CONFIG_DVB_AV7110_FIRMWARE |
19 | $(obj)/av7110.o: $(obj)/fdump $(obj)/av7110_firm.h | 19 | $(obj)/av7110.o: $(obj)/fdump $(obj)/av7110_firm.h |
20 | 20 | ||
21 | $(obj)/av7110_firm.h: | 21 | $(obj)/av7110_firm.h: |
22 | $(obj)/fdump $(CONFIG_DVB_AV7110_FIRMWARE_FILE) dvb_ttpci_fw $@ | 22 | $(obj)/fdump $(CONFIG_DVB_AV7110_FIRMWARE_FILE) dvb_ttpci_fw $@ |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 8fa487fb507b..0bef1edf0018 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -2259,7 +2259,7 @@ static int frontend_init(struct av7110 *av7110) | |||
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | // Try the grundig 29504-451 | 2261 | // Try the grundig 29504-451 |
2262 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); | 2262 | av7110->fe = tda8083_attach(&grundig_29504_451_config, &av7110->i2c_adap); |
2263 | if (av7110->fe) { | 2263 | if (av7110->fe) { |
2264 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; | 2264 | av7110->fe->ops->diseqc_send_master_cmd = av7110_diseqc_send_master_cmd; |
2265 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; | 2265 | av7110->fe->ops->diseqc_send_burst = av7110_diseqc_send_burst; |
@@ -2285,12 +2285,12 @@ static int frontend_init(struct av7110 *av7110) | |||
2285 | case 0x0001: // Hauppauge/TT Nexus-T premium rev1.X | 2285 | case 0x0001: // Hauppauge/TT Nexus-T premium rev1.X |
2286 | 2286 | ||
2287 | // ALPS TDLB7 | 2287 | // ALPS TDLB7 |
2288 | av7110->fe = sp8870_attach(&alps_tdlb7_config, &av7110->i2c_adap); | 2288 | av7110->fe = sp8870_attach(&alps_tdlb7_config, &av7110->i2c_adap); |
2289 | break; | 2289 | break; |
2290 | 2290 | ||
2291 | case 0x0002: // Hauppauge/TT DVB-C premium rev2.X | 2291 | case 0x0002: // Hauppauge/TT DVB-C premium rev2.X |
2292 | 2292 | ||
2293 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, read_pwm(av7110)); | 2293 | av7110->fe = ves1820_attach(&alps_tdbe2_config, &av7110->i2c_adap, read_pwm(av7110)); |
2294 | break; | 2294 | break; |
2295 | 2295 | ||
2296 | case 0x0006: /* Fujitsu-Siemens DVB-S rev 1.6 */ | 2296 | case 0x0006: /* Fujitsu-Siemens DVB-S rev 1.6 */ |
diff --git a/drivers/media/dvb/ttpci/av7110_hw.c b/drivers/media/dvb/ttpci/av7110_hw.c index 87106e8bf35b..54279aaa4828 100644 --- a/drivers/media/dvb/ttpci/av7110_hw.c +++ b/drivers/media/dvb/ttpci/av7110_hw.c | |||
@@ -1206,9 +1206,9 @@ int av7110_osd_capability(struct av7110 *av7110, osd_cap_t *cap) | |||
1206 | switch (cap->cmd) { | 1206 | switch (cap->cmd) { |
1207 | case OSD_CAP_MEMSIZE: | 1207 | case OSD_CAP_MEMSIZE: |
1208 | if (FW_4M_SDRAM(av7110->arm_app)) | 1208 | if (FW_4M_SDRAM(av7110->arm_app)) |
1209 | cap->val = 1000000; | 1209 | cap->val = 1000000; |
1210 | else | 1210 | else |
1211 | cap->val = 92000; | 1211 | cap->val = 92000; |
1212 | return 0; | 1212 | return 0; |
1213 | default: | 1213 | default: |
1214 | return -EINVAL; | 1214 | return -EINVAL; |
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c index 9a33f6d5d923..f9d00452e639 100644 --- a/drivers/media/dvb/ttpci/budget-av.c +++ b/drivers/media/dvb/ttpci/budget-av.c | |||
@@ -275,7 +275,7 @@ static int ciintf_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int open | |||
275 | // that is unreliable however, so try and read from IO memory | 275 | // that is unreliable however, so try and read from IO memory |
276 | if (!cam_present) | 276 | if (!cam_present) |
277 | { | 277 | { |
278 | saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); | 278 | saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); |
279 | if (ttpci_budget_debiread(&budget_av->budget, DEBICICAM, 0, 1, 0, 1) != -ETIMEDOUT) | 279 | if (ttpci_budget_debiread(&budget_av->budget, DEBICICAM, 0, 1, 0, 1) != -ETIMEDOUT) |
280 | { | 280 | { |
281 | cam_present = 1; | 281 | cam_present = 1; |
diff --git a/drivers/media/dvb/ttpci/ttpci-eeprom.c b/drivers/media/dvb/ttpci/ttpci-eeprom.c index 18aa22b5478d..1f31e91195b0 100644 --- a/drivers/media/dvb/ttpci/ttpci-eeprom.c +++ b/drivers/media/dvb/ttpci/ttpci-eeprom.c | |||
@@ -13,7 +13,7 @@ | |||
13 | Holger Waechtler Convergence | 13 | Holger Waechtler Convergence |
14 | 14 | ||
15 | Copyright (C) 2002-2003 Ralph Metzler <rjkm@metzlerbros.de> | 15 | Copyright (C) 2002-2003 Ralph Metzler <rjkm@metzlerbros.de> |
16 | Metzler Brothers Systementwicklung GbR | 16 | Metzler Brothers Systementwicklung GbR |
17 | 17 | ||
18 | This program is free software; you can redistribute it and/or modify | 18 | This program is free software; you can redistribute it and/or modify |
19 | it under the terms of the GNU General Public License as published by | 19 | it under the terms of the GNU General Public License as published by |
diff --git a/drivers/media/dvb/ttusb-budget/Kconfig b/drivers/media/dvb/ttusb-budget/Kconfig index c6c1d41a2efb..914587d52b57 100644 --- a/drivers/media/dvb/ttusb-budget/Kconfig +++ b/drivers/media/dvb/ttusb-budget/Kconfig | |||
@@ -10,7 +10,7 @@ config DVB_TTUSB_BUDGET | |||
10 | Support for external USB adapters designed by Technotrend and | 10 | Support for external USB adapters designed by Technotrend and |
11 | produced by Hauppauge, shipped under the brand name 'Nova-USB'. | 11 | produced by Hauppauge, shipped under the brand name 'Nova-USB'. |
12 | 12 | ||
13 | These devices don't have a MPEG decoder built in, so you need | 13 | These devices don't have a MPEG decoder built in, so you need |
14 | an external software decoder to watch TV. | 14 | an external software decoder to watch TV. |
15 | 15 | ||
16 | Say Y if you own such a device and want to use it. | 16 | Say Y if you own such a device and want to use it. |
diff --git a/drivers/media/dvb/ttusb-dec/Kconfig b/drivers/media/dvb/ttusb-dec/Kconfig index c334526af66f..e97244bd232e 100644 --- a/drivers/media/dvb/ttusb-dec/Kconfig +++ b/drivers/media/dvb/ttusb-dec/Kconfig | |||
@@ -8,14 +8,14 @@ config DVB_TTUSB_DEC | |||
8 | produced by Hauppauge, shipped under the brand name 'DEC2000-t' | 8 | produced by Hauppauge, shipped under the brand name 'DEC2000-t' |
9 | and 'DEC3000-s'. | 9 | and 'DEC3000-s'. |
10 | 10 | ||
11 | Even if these devices have a MPEG decoder built in, they transmit | 11 | Even if these devices have a MPEG decoder built in, they transmit |
12 | only compressed MPEG data over the USB bus, so you need | 12 | only compressed MPEG data over the USB bus, so you need |
13 | an external software decoder to watch TV on your computer. | 13 | an external software decoder to watch TV on your computer. |
14 | 14 | ||
15 | This driver needs external firmware. Please use the commands | 15 | This driver needs external firmware. Please use the commands |
16 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec2000t", | 16 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec2000t", |
17 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec2540t", | 17 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec2540t", |
18 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec3000s", | 18 | "<kerneldir>/Documentation/dvb/get_dvb_firmware dec3000s", |
19 | download/extract them, and then copy them to /usr/lib/hotplug/firmware. | 19 | download/extract them, and then copy them to /usr/lib/hotplug/firmware. |
20 | 20 | ||
21 | Say Y if you own such a device and want to use it. | 21 | Say Y if you own such a device and want to use it. |
diff --git a/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/drivers/media/dvb/ttusb-dec/ttusb_dec.c index 36bc9838cf17..d8966d1d25ee 100644 --- a/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/drivers/media/dvb/ttusb-dec/ttusb_dec.c | |||
@@ -1182,7 +1182,7 @@ static void ttusb_dec_init_tasklet(struct ttusb_dec *dec) | |||
1182 | (unsigned long)dec); | 1182 | (unsigned long)dec); |
1183 | } | 1183 | } |
1184 | 1184 | ||
1185 | static int ttusb_init_rc(struct ttusb_dec *dec) | 1185 | static int ttusb_init_rc( struct ttusb_dec *dec) |
1186 | { | 1186 | { |
1187 | struct input_dev *input_dev; | 1187 | struct input_dev *input_dev; |
1188 | u8 b[] = { 0x00, 0x01 }; | 1188 | u8 b[] = { 0x00, 0x01 }; |
@@ -1203,13 +1203,12 @@ static int ttusb_init_rc(struct ttusb_dec *dec) | |||
1203 | input_dev->keycode = rc_keys; | 1203 | input_dev->keycode = rc_keys; |
1204 | 1204 | ||
1205 | for (i = 0; i < ARRAY_SIZE(rc_keys); i++) | 1205 | for (i = 0; i < ARRAY_SIZE(rc_keys); i++) |
1206 | set_bit(rc_keys[i], input_dev->keybit); | 1206 | set_bit(rc_keys[i], input_dev->keybit); |
1207 | 1207 | ||
1208 | input_register_device(input_dev); | 1208 | input_register_device(input_dev); |
1209 | 1209 | ||
1210 | if (usb_submit_urb(dec->irq_urb, GFP_KERNEL)) | 1210 | if (usb_submit_urb(dec->irq_urb, GFP_KERNEL)) |
1211 | printk("%s: usb_submit_urb failed\n",__FUNCTION__); | 1211 | printk("%s: usb_submit_urb failed\n",__FUNCTION__); |
1212 | |||
1213 | /* enable irq pipe */ | 1212 | /* enable irq pipe */ |
1214 | ttusb_dec_send_command(dec,0xb0,sizeof(b),b,NULL,NULL); | 1213 | ttusb_dec_send_command(dec,0xb0,sizeof(b),b,NULL,NULL); |
1215 | 1214 | ||