diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/m920x.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/m920x.c | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index 7433d3527244..49e57f85f99b 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -22,7 +22,7 @@ static int dvb_usb_m920x_debug; | |||
22 | module_param_named(debug,dvb_usb_m920x_debug, int, 0644); | 22 | module_param_named(debug,dvb_usb_m920x_debug, int, 0644); |
23 | MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); | 23 | MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); |
24 | 24 | ||
25 | static inline int m9206_read(struct usb_device *udev, u8 request, u16 value, | 25 | static inline int m920x_read(struct usb_device *udev, u8 request, u16 value, |
26 | u16 index, void *data, int size) | 26 | u16 index, void *data, int size) |
27 | { | 27 | { |
28 | int ret; | 28 | int ret; |
@@ -43,7 +43,7 @@ static inline int m9206_read(struct usb_device *udev, u8 request, u16 value, | |||
43 | return 0; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | static inline int m9206_write(struct usb_device *udev, u8 request, | 46 | static inline int m920x_write(struct usb_device *udev, u8 request, |
47 | u16 value, u16 index) | 47 | u16 value, u16 index) |
48 | { | 48 | { |
49 | int ret; | 49 | int ret; |
@@ -55,7 +55,7 @@ static inline int m9206_write(struct usb_device *udev, u8 request, | |||
55 | return ret; | 55 | return ret; |
56 | } | 56 | } |
57 | 57 | ||
58 | static int m9206_init(struct dvb_usb_device *d, struct m9206_inits *rc_seq) | 58 | static int m920x_init(struct dvb_usb_device *d, struct m920x_inits *rc_seq) |
59 | { | 59 | { |
60 | int ret = 0; | 60 | int ret = 0; |
61 | 61 | ||
@@ -63,7 +63,7 @@ static int m9206_init(struct dvb_usb_device *d, struct m9206_inits *rc_seq) | |||
63 | if (d->props.rc_query) { | 63 | if (d->props.rc_query) { |
64 | deb("Initialising remote control\n"); | 64 | deb("Initialising remote control\n"); |
65 | while (rc_seq->address) { | 65 | while (rc_seq->address) { |
66 | if ((ret = m9206_write(d->udev, M9206_CORE, | 66 | if ((ret = m920x_write(d->udev, M9206_CORE, |
67 | rc_seq->data, | 67 | rc_seq->data, |
68 | rc_seq->address)) != 0) { | 68 | rc_seq->address)) != 0) { |
69 | deb("Initialising remote control failed\n"); | 69 | deb("Initialising remote control failed\n"); |
@@ -79,17 +79,17 @@ static int m9206_init(struct dvb_usb_device *d, struct m9206_inits *rc_seq) | |||
79 | return ret; | 79 | return ret; |
80 | } | 80 | } |
81 | 81 | ||
82 | static int m9206_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | 82 | static int m920x_rc_query(struct dvb_usb_device *d, u32 *event, int *state) |
83 | { | 83 | { |
84 | struct m9206_state *m = d->priv; | 84 | struct m920x_state *m = d->priv; |
85 | int i, ret = 0; | 85 | int i, ret = 0; |
86 | u8 rc_state[2]; | 86 | u8 rc_state[2]; |
87 | 87 | ||
88 | if ((ret = m9206_read(d->udev, M9206_CORE, 0x0, M9206_RC_STATE, | 88 | if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_STATE, |
89 | rc_state, 1)) != 0) | 89 | rc_state, 1)) != 0) |
90 | goto unlock; | 90 | goto unlock; |
91 | 91 | ||
92 | if ((ret = m9206_read(d->udev, M9206_CORE, 0x0, M9206_RC_KEY, | 92 | if ((ret = m920x_read(d->udev, M9206_CORE, 0x0, M9206_RC_KEY, |
93 | rc_state + 1, 1)) != 0) | 93 | rc_state + 1, 1)) != 0) |
94 | goto unlock; | 94 | goto unlock; |
95 | 95 | ||
@@ -142,7 +142,7 @@ static int m9206_rc_query(struct dvb_usb_device *d, u32 *event, int *state) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | /* I2C */ | 144 | /* I2C */ |
145 | static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], | 145 | static int m920x_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], |
146 | int num) | 146 | int num) |
147 | { | 147 | { |
148 | struct dvb_usb_device *d = i2c_get_adapdata(adap); | 148 | struct dvb_usb_device *d = i2c_get_adapdata(adap); |
@@ -168,7 +168,7 @@ static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], | |||
168 | } | 168 | } |
169 | /* Send START & address/RW bit */ | 169 | /* Send START & address/RW bit */ |
170 | if (!(msg[i].flags & I2C_M_NOSTART)) { | 170 | if (!(msg[i].flags & I2C_M_NOSTART)) { |
171 | if ((ret = m9206_write(d->udev, M9206_I2C, | 171 | if ((ret = m920x_write(d->udev, M9206_I2C, |
172 | (msg[i].addr << 1) | | 172 | (msg[i].addr << 1) | |
173 | (msg[i].flags & I2C_M_RD ? 0x01 : 0), | 173 | (msg[i].flags & I2C_M_RD ? 0x01 : 0), |
174 | 0x80)) != 0) | 174 | 0x80)) != 0) |
@@ -182,7 +182,7 @@ static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], | |||
182 | int stop = (i+1 == num && j+1 == msg[i].len) | 182 | int stop = (i+1 == num && j+1 == msg[i].len) |
183 | ? 0x40 : 0x01; | 183 | ? 0x40 : 0x01; |
184 | 184 | ||
185 | if ((ret = m9206_read(d->udev, M9206_I2C, 0x0, | 185 | if ((ret = m920x_read(d->udev, M9206_I2C, 0x0, |
186 | 0x20|stop, | 186 | 0x20|stop, |
187 | &msg[i].buf[j], 1)) != 0) | 187 | &msg[i].buf[j], 1)) != 0) |
188 | goto unlock; | 188 | goto unlock; |
@@ -193,7 +193,7 @@ static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], | |||
193 | int stop = (i+1 == num && j+1 == msg[i].len) | 193 | int stop = (i+1 == num && j+1 == msg[i].len) |
194 | ? 0x40 : 0x00; | 194 | ? 0x40 : 0x00; |
195 | 195 | ||
196 | if ((ret = m9206_write(d->udev, M9206_I2C, | 196 | if ((ret = m920x_write(d->udev, M9206_I2C, |
197 | msg[i].buf[j], | 197 | msg[i].buf[j], |
198 | stop)) != 0) | 198 | stop)) != 0) |
199 | goto unlock; | 199 | goto unlock; |
@@ -209,18 +209,18 @@ static int m9206_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], | |||
209 | return ret; | 209 | return ret; |
210 | } | 210 | } |
211 | 211 | ||
212 | static u32 m9206_i2c_func(struct i2c_adapter *adapter) | 212 | static u32 m920x_i2c_func(struct i2c_adapter *adapter) |
213 | { | 213 | { |
214 | return I2C_FUNC_I2C; | 214 | return I2C_FUNC_I2C; |
215 | } | 215 | } |
216 | 216 | ||
217 | static struct i2c_algorithm m9206_i2c_algo = { | 217 | static struct i2c_algorithm m920x_i2c_algo = { |
218 | .master_xfer = m9206_i2c_xfer, | 218 | .master_xfer = m920x_i2c_xfer, |
219 | .functionality = m9206_i2c_func, | 219 | .functionality = m920x_i2c_func, |
220 | }; | 220 | }; |
221 | 221 | ||
222 | /* pid filter */ | 222 | /* pid filter */ |
223 | static int m9206_set_filter(struct dvb_usb_adapter *adap, | 223 | static int m920x_set_filter(struct dvb_usb_adapter *adap, |
224 | int type, int idx, int pid) | 224 | int type, int idx, int pid) |
225 | { | 225 | { |
226 | int ret = 0; | 226 | int ret = 0; |
@@ -230,20 +230,20 @@ static int m9206_set_filter(struct dvb_usb_adapter *adap, | |||
230 | 230 | ||
231 | pid |= 0x8000; | 231 | pid |= 0x8000; |
232 | 232 | ||
233 | if ((ret = m9206_write(adap->dev->udev, M9206_FILTER, pid, | 233 | if ((ret = m920x_write(adap->dev->udev, M9206_FILTER, pid, |
234 | (type << 8) | (idx * 4) )) != 0) | 234 | (type << 8) | (idx * 4) )) != 0) |
235 | return ret; | 235 | return ret; |
236 | 236 | ||
237 | if ((ret = m9206_write(adap->dev->udev, M9206_FILTER, 0, | 237 | if ((ret = m920x_write(adap->dev->udev, M9206_FILTER, 0, |
238 | (type << 8) | (idx * 4) )) != 0) | 238 | (type << 8) | (idx * 4) )) != 0) |
239 | return ret; | 239 | return ret; |
240 | 240 | ||
241 | return ret; | 241 | return ret; |
242 | } | 242 | } |
243 | 243 | ||
244 | static int m9206_update_filters(struct dvb_usb_adapter *adap) | 244 | static int m920x_update_filters(struct dvb_usb_adapter *adap) |
245 | { | 245 | { |
246 | struct m9206_state *m = adap->dev->priv; | 246 | struct m920x_state *m = adap->dev->priv; |
247 | int enabled = m->filtering_enabled; | 247 | int enabled = m->filtering_enabled; |
248 | int i, ret = 0, filter = 0; | 248 | int i, ret = 0, filter = 0; |
249 | 249 | ||
@@ -252,14 +252,14 @@ static int m9206_update_filters(struct dvb_usb_adapter *adap) | |||
252 | enabled = 0; | 252 | enabled = 0; |
253 | 253 | ||
254 | /* Disable all filters */ | 254 | /* Disable all filters */ |
255 | if ((ret = m9206_set_filter(adap, 0x81, 1, enabled)) != 0) | 255 | if ((ret = m920x_set_filter(adap, 0x81, 1, enabled)) != 0) |
256 | return ret; | 256 | return ret; |
257 | 257 | ||
258 | for (i = 0; i < M9206_MAX_FILTERS; i++) | 258 | for (i = 0; i < M9206_MAX_FILTERS; i++) |
259 | if ((ret = m9206_set_filter(adap, 0x81, i + 2, 0)) != 0) | 259 | if ((ret = m920x_set_filter(adap, 0x81, i + 2, 0)) != 0) |
260 | return ret; | 260 | return ret; |
261 | 261 | ||
262 | if ((ret = m9206_set_filter(adap, 0x82, 0, 0x0)) != 0) | 262 | if ((ret = m920x_set_filter(adap, 0x82, 0, 0x0)) != 0) |
263 | return ret; | 263 | return ret; |
264 | 264 | ||
265 | /* Set */ | 265 | /* Set */ |
@@ -268,7 +268,7 @@ static int m9206_update_filters(struct dvb_usb_adapter *adap) | |||
268 | if (m->filters[i] == 0) | 268 | if (m->filters[i] == 0) |
269 | continue; | 269 | continue; |
270 | 270 | ||
271 | if ((ret = m9206_set_filter(adap, 0x81, filter + 2, | 271 | if ((ret = m920x_set_filter(adap, 0x81, filter + 2, |
272 | m->filters[i])) != 0) | 272 | m->filters[i])) != 0) |
273 | return ret; | 273 | return ret; |
274 | 274 | ||
@@ -276,32 +276,32 @@ static int m9206_update_filters(struct dvb_usb_adapter *adap) | |||
276 | } | 276 | } |
277 | } | 277 | } |
278 | 278 | ||
279 | if ((ret = m9206_set_filter(adap, 0x82, 0, 0x02f5)) != 0) | 279 | if ((ret = m920x_set_filter(adap, 0x82, 0, 0x02f5)) != 0) |
280 | return ret; | 280 | return ret; |
281 | 281 | ||
282 | return ret; | 282 | return ret; |
283 | } | 283 | } |
284 | 284 | ||
285 | static int m9206_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) | 285 | static int m920x_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) |
286 | { | 286 | { |
287 | struct m9206_state *m = adap->dev->priv; | 287 | struct m920x_state *m = adap->dev->priv; |
288 | 288 | ||
289 | m->filtering_enabled = onoff ? 1 : 0; | 289 | m->filtering_enabled = onoff ? 1 : 0; |
290 | 290 | ||
291 | return m9206_update_filters(adap); | 291 | return m920x_update_filters(adap); |
292 | } | 292 | } |
293 | 293 | ||
294 | static int m9206_pid_filter(struct dvb_usb_adapter *adap, | 294 | static int m920x_pid_filter(struct dvb_usb_adapter *adap, |
295 | int index, u16 pid, int onoff) | 295 | int index, u16 pid, int onoff) |
296 | { | 296 | { |
297 | struct m9206_state *m = adap->dev->priv; | 297 | struct m920x_state *m = adap->dev->priv; |
298 | 298 | ||
299 | m->filters[index] = onoff ? pid : 0; | 299 | m->filters[index] = onoff ? pid : 0; |
300 | 300 | ||
301 | return m9206_update_filters(adap); | 301 | return m920x_update_filters(adap); |
302 | } | 302 | } |
303 | 303 | ||
304 | static int m9206_firmware_download(struct usb_device *udev, | 304 | static int m920x_firmware_download(struct usb_device *udev, |
305 | const struct firmware *fw) | 305 | const struct firmware *fw) |
306 | { | 306 | { |
307 | u16 value, index, size; | 307 | u16 value, index, size; |
@@ -310,11 +310,11 @@ static int m9206_firmware_download(struct usb_device *udev, | |||
310 | 310 | ||
311 | buff = kmalloc(65536, GFP_KERNEL); | 311 | buff = kmalloc(65536, GFP_KERNEL); |
312 | 312 | ||
313 | if ((ret = m9206_read(udev, M9206_FILTER, 0x0, 0x8000, read, 4)) != 0) | 313 | if ((ret = m920x_read(udev, M9206_FILTER, 0x0, 0x8000, read, 4)) != 0) |
314 | goto done; | 314 | goto done; |
315 | deb("%x %x %x %x\n", read[0], read[1], read[2], read[3]); | 315 | deb("%x %x %x %x\n", read[0], read[1], read[2], read[3]); |
316 | 316 | ||
317 | if ((ret = m9206_read(udev, M9206_FW, 0x0, 0x0, read, 1)) != 0) | 317 | if ((ret = m920x_read(udev, M9206_FW, 0x0, 0x0, read, 1)) != 0) |
318 | goto done; | 318 | goto done; |
319 | deb("%x\n", read[0]); | 319 | deb("%x\n", read[0]); |
320 | 320 | ||
@@ -355,8 +355,8 @@ static int m9206_firmware_download(struct usb_device *udev, | |||
355 | 355 | ||
356 | msleep(36); | 356 | msleep(36); |
357 | 357 | ||
358 | /* m9206 will disconnect itself from the bus after this. */ | 358 | /* m920x will disconnect itself from the bus after this. */ |
359 | (void) m9206_write(udev, M9206_CORE, 0x01, M9206_FW_GO); | 359 | (void) m920x_write(udev, M9206_CORE, 0x01, M9206_FW_GO); |
360 | deb("firmware uploaded!\n"); | 360 | deb("firmware uploaded!\n"); |
361 | 361 | ||
362 | done: | 362 | done: |
@@ -510,13 +510,13 @@ static int m920x_tda8275_61_tuner_attach(struct dvb_usb_adapter *adap) | |||
510 | } | 510 | } |
511 | 511 | ||
512 | /* device-specific initialization */ | 512 | /* device-specific initialization */ |
513 | static struct m9206_inits megasky_rc_init [] = { | 513 | static struct m920x_inits megasky_rc_init [] = { |
514 | { M9206_RC_INIT2, 0xa8 }, | 514 | { M9206_RC_INIT2, 0xa8 }, |
515 | { M9206_RC_INIT1, 0x51 }, | 515 | { M9206_RC_INIT1, 0x51 }, |
516 | { } /* terminating entry */ | 516 | { } /* terminating entry */ |
517 | }; | 517 | }; |
518 | 518 | ||
519 | static struct m9206_inits tvwalkertwin_rc_init [] = { | 519 | static struct m920x_inits tvwalkertwin_rc_init [] = { |
520 | { M9206_RC_INIT2, 0x00 }, | 520 | { M9206_RC_INIT2, 0x00 }, |
521 | { M9206_RC_INIT1, 0xef }, | 521 | { M9206_RC_INIT1, 0xef }, |
522 | { 0xff28, 0x00 }, | 522 | { 0xff28, 0x00 }, |
@@ -577,7 +577,7 @@ static int m920x_probe(struct usb_interface *intf, | |||
577 | struct dvb_usb_device *d; | 577 | struct dvb_usb_device *d; |
578 | struct usb_host_interface *alt; | 578 | struct usb_host_interface *alt; |
579 | int ret; | 579 | int ret; |
580 | struct m9206_inits *rc_init_seq = NULL; | 580 | struct m920x_inits *rc_init_seq = NULL; |
581 | int bInterfaceNumber = intf->cur_altsetting->desc.bInterfaceNumber; | 581 | int bInterfaceNumber = intf->cur_altsetting->desc.bInterfaceNumber; |
582 | 582 | ||
583 | deb("Probing for m920x device at interface %d\n", bInterfaceNumber); | 583 | deb("Probing for m920x device at interface %d\n", bInterfaceNumber); |
@@ -637,7 +637,7 @@ static int m920x_probe(struct usb_interface *intf, | |||
637 | if (ret < 0) | 637 | if (ret < 0) |
638 | return ret; | 638 | return ret; |
639 | 639 | ||
640 | if ((ret = m9206_init(d, rc_init_seq)) != 0) | 640 | if ((ret = m920x_init(d, rc_init_seq)) != 0) |
641 | return ret; | 641 | return ret; |
642 | 642 | ||
643 | return ret; | 643 | return ret; |
@@ -662,14 +662,14 @@ static struct dvb_usb_device_properties megasky_properties = { | |||
662 | 662 | ||
663 | .usb_ctrl = DEVICE_SPECIFIC, | 663 | .usb_ctrl = DEVICE_SPECIFIC, |
664 | .firmware = "dvb-usb-megasky-02.fw", | 664 | .firmware = "dvb-usb-megasky-02.fw", |
665 | .download_firmware = m9206_firmware_download, | 665 | .download_firmware = m920x_firmware_download, |
666 | 666 | ||
667 | .rc_interval = 100, | 667 | .rc_interval = 100, |
668 | .rc_key_map = megasky_rc_keys, | 668 | .rc_key_map = megasky_rc_keys, |
669 | .rc_key_map_size = ARRAY_SIZE(megasky_rc_keys), | 669 | .rc_key_map_size = ARRAY_SIZE(megasky_rc_keys), |
670 | .rc_query = m9206_rc_query, | 670 | .rc_query = m920x_rc_query, |
671 | 671 | ||
672 | .size_of_priv = sizeof(struct m9206_state), | 672 | .size_of_priv = sizeof(struct m920x_state), |
673 | 673 | ||
674 | .identify_state = m920x_identify_state, | 674 | .identify_state = m920x_identify_state, |
675 | .num_adapters = 1, | 675 | .num_adapters = 1, |
@@ -678,8 +678,8 @@ static struct dvb_usb_device_properties megasky_properties = { | |||
678 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | 678 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, |
679 | 679 | ||
680 | .pid_filter_count = 8, | 680 | .pid_filter_count = 8, |
681 | .pid_filter = m9206_pid_filter, | 681 | .pid_filter = m920x_pid_filter, |
682 | .pid_filter_ctrl = m9206_pid_filter_ctrl, | 682 | .pid_filter_ctrl = m920x_pid_filter_ctrl, |
683 | 683 | ||
684 | .frontend_attach = m920x_mt352_frontend_attach, | 684 | .frontend_attach = m920x_mt352_frontend_attach, |
685 | .tuner_attach = m920x_qt1010_tuner_attach, | 685 | .tuner_attach = m920x_qt1010_tuner_attach, |
@@ -695,7 +695,7 @@ static struct dvb_usb_device_properties megasky_properties = { | |||
695 | } | 695 | } |
696 | }, | 696 | }, |
697 | }}, | 697 | }}, |
698 | .i2c_algo = &m9206_i2c_algo, | 698 | .i2c_algo = &m920x_i2c_algo, |
699 | 699 | ||
700 | .num_device_descs = 1, | 700 | .num_device_descs = 1, |
701 | .devices = { | 701 | .devices = { |
@@ -711,9 +711,9 @@ static struct dvb_usb_device_properties digivox_mini_ii_properties = { | |||
711 | 711 | ||
712 | .usb_ctrl = DEVICE_SPECIFIC, | 712 | .usb_ctrl = DEVICE_SPECIFIC, |
713 | .firmware = "dvb-usb-digivox-02.fw", | 713 | .firmware = "dvb-usb-digivox-02.fw", |
714 | .download_firmware = m9206_firmware_download, | 714 | .download_firmware = m920x_firmware_download, |
715 | 715 | ||
716 | .size_of_priv = sizeof(struct m9206_state), | 716 | .size_of_priv = sizeof(struct m920x_state), |
717 | 717 | ||
718 | .identify_state = m920x_identify_state, | 718 | .identify_state = m920x_identify_state, |
719 | .num_adapters = 1, | 719 | .num_adapters = 1, |
@@ -722,8 +722,8 @@ static struct dvb_usb_device_properties digivox_mini_ii_properties = { | |||
722 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | 722 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, |
723 | 723 | ||
724 | .pid_filter_count = 8, | 724 | .pid_filter_count = 8, |
725 | .pid_filter = m9206_pid_filter, | 725 | .pid_filter = m920x_pid_filter, |
726 | .pid_filter_ctrl = m9206_pid_filter_ctrl, | 726 | .pid_filter_ctrl = m920x_pid_filter_ctrl, |
727 | 727 | ||
728 | .frontend_attach = m920x_tda10046_08_frontend_attach, | 728 | .frontend_attach = m920x_tda10046_08_frontend_attach, |
729 | .tuner_attach = m920x_tda8275_60_tuner_attach, | 729 | .tuner_attach = m920x_tda8275_60_tuner_attach, |
@@ -739,7 +739,7 @@ static struct dvb_usb_device_properties digivox_mini_ii_properties = { | |||
739 | } | 739 | } |
740 | }, | 740 | }, |
741 | }}, | 741 | }}, |
742 | .i2c_algo = &m9206_i2c_algo, | 742 | .i2c_algo = &m920x_i2c_algo, |
743 | 743 | ||
744 | .num_device_descs = 1, | 744 | .num_device_descs = 1, |
745 | .devices = { | 745 | .devices = { |
@@ -763,14 +763,14 @@ static struct dvb_usb_device_properties tvwalkertwin_properties = { | |||
763 | 763 | ||
764 | .usb_ctrl = DEVICE_SPECIFIC, | 764 | .usb_ctrl = DEVICE_SPECIFIC, |
765 | .firmware = "dvb-usb-tvwalkert.fw", | 765 | .firmware = "dvb-usb-tvwalkert.fw", |
766 | .download_firmware = m9206_firmware_download, | 766 | .download_firmware = m920x_firmware_download, |
767 | 767 | ||
768 | .rc_interval = 100, | 768 | .rc_interval = 100, |
769 | .rc_key_map = tvwalkertwin_rc_keys, | 769 | .rc_key_map = tvwalkertwin_rc_keys, |
770 | .rc_key_map_size = ARRAY_SIZE(tvwalkertwin_rc_keys), | 770 | .rc_key_map_size = ARRAY_SIZE(tvwalkertwin_rc_keys), |
771 | .rc_query = m9206_rc_query, | 771 | .rc_query = m920x_rc_query, |
772 | 772 | ||
773 | .size_of_priv = sizeof(struct m9206_state), | 773 | .size_of_priv = sizeof(struct m920x_state), |
774 | 774 | ||
775 | .identify_state = m920x_identify_state, | 775 | .identify_state = m920x_identify_state, |
776 | .num_adapters = 2, | 776 | .num_adapters = 2, |
@@ -779,8 +779,8 @@ static struct dvb_usb_device_properties tvwalkertwin_properties = { | |||
779 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | 779 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, |
780 | 780 | ||
781 | .pid_filter_count = 8, | 781 | .pid_filter_count = 8, |
782 | .pid_filter = m9206_pid_filter, | 782 | .pid_filter = m920x_pid_filter, |
783 | .pid_filter_ctrl = m9206_pid_filter_ctrl, | 783 | .pid_filter_ctrl = m920x_pid_filter_ctrl, |
784 | 784 | ||
785 | .frontend_attach = m920x_tda10046_08_frontend_attach, | 785 | .frontend_attach = m920x_tda10046_08_frontend_attach, |
786 | .tuner_attach = m920x_tda8275_60_tuner_attach, | 786 | .tuner_attach = m920x_tda8275_60_tuner_attach, |
@@ -799,8 +799,8 @@ static struct dvb_usb_device_properties tvwalkertwin_properties = { | |||
799 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | 799 | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, |
800 | 800 | ||
801 | .pid_filter_count = 8, | 801 | .pid_filter_count = 8, |
802 | .pid_filter = m9206_pid_filter, | 802 | .pid_filter = m920x_pid_filter, |
803 | .pid_filter_ctrl = m9206_pid_filter_ctrl, | 803 | .pid_filter_ctrl = m920x_pid_filter_ctrl, |
804 | 804 | ||
805 | .frontend_attach = m920x_tda10046_0b_frontend_attach, | 805 | .frontend_attach = m920x_tda10046_0b_frontend_attach, |
806 | .tuner_attach = m920x_tda8275_61_tuner_attach, | 806 | .tuner_attach = m920x_tda8275_61_tuner_attach, |
@@ -816,7 +816,7 @@ static struct dvb_usb_device_properties tvwalkertwin_properties = { | |||
816 | } | 816 | } |
817 | }, | 817 | }, |
818 | }}, | 818 | }}, |
819 | .i2c_algo = &m9206_i2c_algo, | 819 | .i2c_algo = &m920x_i2c_algo, |
820 | 820 | ||
821 | .num_device_descs = 1, | 821 | .num_device_descs = 1, |
822 | .devices = { | 822 | .devices = { |
@@ -832,9 +832,9 @@ static struct dvb_usb_device_properties dposh_properties = { | |||
832 | 832 | ||
833 | .usb_ctrl = DEVICE_SPECIFIC, | 833 | .usb_ctrl = DEVICE_SPECIFIC, |
834 | .firmware = "dvb-usb-dposh-01.fw", | 834 | .firmware = "dvb-usb-dposh-01.fw", |
835 | .download_firmware = m9206_firmware_download, | 835 | .download_firmware = m920x_firmware_download, |
836 | 836 | ||
837 | .size_of_priv = sizeof(struct m9206_state), | 837 | .size_of_priv = sizeof(struct m920x_state), |
838 | 838 | ||
839 | .identify_state = m920x_identify_state, | 839 | .identify_state = m920x_identify_state, |
840 | .num_adapters = 1, | 840 | .num_adapters = 1, |
@@ -855,7 +855,7 @@ static struct dvb_usb_device_properties dposh_properties = { | |||
855 | } | 855 | } |
856 | }, | 856 | }, |
857 | }}, | 857 | }}, |
858 | .i2c_algo = &m9206_i2c_algo, | 858 | .i2c_algo = &m920x_i2c_algo, |
859 | 859 | ||
860 | .num_device_descs = 1, | 860 | .num_device_descs = 1, |
861 | .devices = { | 861 | .devices = { |