diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-25 17:53:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-25 17:53:09 -0400 |
commit | aace99e57c90353a51952e9dd1f6f110eec30d15 (patch) | |
tree | 286dc3f7e7da9731b0e816641e9a551f6a88dc54 /drivers/media | |
parent | bbcaf41118809b2a4b05e69cf298d379ebb734d1 (diff) | |
parent | 099987f0aaf28771261b91a41240b9228f2e32b2 (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fixes from Mauro Carvalho Chehab.
Trivial conflict due to new USB HID ID's being added next to each other
(Baanto vs Axentia).
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (44 commits)
[media] smia: Fix compile failures
[media] Fix VIDIOC_DQEVENT docbook entry
[media] s5p-fimc: Fix control creation function
[media] s5p-mfc: Fix checkpatch error in s5p_mfc_shm.h file
[media] s5p-mfc: Fix setting controls
[media] v4l/s5p-mfc: added image size align in VIDIOC_TRY_FMT
[media] v4l/s5p-mfc: corrected encoder v4l control definitions
[media] v4l: mem2mem_testdev: Fix race conditions in driver
[media] s5p-mfc: Bug fix of timestamp/timecode copy mechanism
[media] cxd2820r: Fix an incorrect modulation type bitmask
[media] em28xx: Show a warning if the board does not support remote controls
[media] em28xx: Add remote control support for Terratec's Cinergy HTC Stick HD
[media] USB: Staging: media: lirc: initialize spinlocks before usage
[media] Revert "[media] media: mx2_camera: Fix mbus format handling"
[media] bw-qcam: driver and pixfmt documentation fixes
[media] cx88: fix firmware load on big-endian systems
[media] cx18: support big-endian systems
[media] ivtv: fix support for big-endian systems
[media] tuner-core: return the frequency range of the correct tuner
[media] v4l2-dev.c: fix g_parm regression in determine_valid_ioctls()
...
Diffstat (limited to 'drivers/media')
43 files changed, 180 insertions, 257 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index 7d42c11c8684..0cdbd742974a 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -198,7 +198,6 @@ static int fops_open(struct file *file) | |||
198 | struct saa7146_dev *dev = video_drvdata(file); | 198 | struct saa7146_dev *dev = video_drvdata(file); |
199 | struct saa7146_fh *fh = NULL; | 199 | struct saa7146_fh *fh = NULL; |
200 | int result = 0; | 200 | int result = 0; |
201 | enum v4l2_buf_type type; | ||
202 | 201 | ||
203 | DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); | 202 | DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); |
204 | 203 | ||
@@ -207,10 +206,6 @@ static int fops_open(struct file *file) | |||
207 | 206 | ||
208 | DEB_D("using: %p\n", dev); | 207 | DEB_D("using: %p\n", dev); |
209 | 208 | ||
210 | type = vdev->vfl_type == VFL_TYPE_GRABBER | ||
211 | ? V4L2_BUF_TYPE_VIDEO_CAPTURE | ||
212 | : V4L2_BUF_TYPE_VBI_CAPTURE; | ||
213 | |||
214 | /* check if an extension is registered */ | 209 | /* check if an extension is registered */ |
215 | if( NULL == dev->ext ) { | 210 | if( NULL == dev->ext ) { |
216 | DEB_S("no extension registered for this device\n"); | 211 | DEB_S("no extension registered for this device\n"); |
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c index 98ecaf0900d6..3180f5b2a6a6 100644 --- a/drivers/media/dvb/frontends/cx24110.c +++ b/drivers/media/dvb/frontends/cx24110.c | |||
@@ -516,9 +516,9 @@ static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) | |||
516 | if(cx24110_readreg(state,0x10)&0x40) { | 516 | if(cx24110_readreg(state,0x10)&0x40) { |
517 | /* the RS error counter has finished one counting window */ | 517 | /* the RS error counter has finished one counting window */ |
518 | cx24110_writereg(state,0x10,0x60); /* select the byer reg */ | 518 | cx24110_writereg(state,0x10,0x60); /* select the byer reg */ |
519 | cx24110_readreg(state, 0x12) | | 519 | (void)(cx24110_readreg(state, 0x12) | |
520 | (cx24110_readreg(state, 0x13) << 8) | | 520 | (cx24110_readreg(state, 0x13) << 8) | |
521 | (cx24110_readreg(state, 0x14) << 16); | 521 | (cx24110_readreg(state, 0x14) << 16)); |
522 | cx24110_writereg(state,0x10,0x70); /* select the bler reg */ | 522 | cx24110_writereg(state,0x10,0x70); /* select the bler reg */ |
523 | state->lastbler=cx24110_readreg(state,0x12)| | 523 | state->lastbler=cx24110_readreg(state,0x12)| |
524 | (cx24110_readreg(state,0x13)<<8)| | 524 | (cx24110_readreg(state,0x13)<<8)| |
diff --git a/drivers/media/dvb/frontends/cxd2820r_c.c b/drivers/media/dvb/frontends/cxd2820r_c.c index 945404991529..ed3b0ba624de 100644 --- a/drivers/media/dvb/frontends/cxd2820r_c.c +++ b/drivers/media/dvb/frontends/cxd2820r_c.c | |||
@@ -121,7 +121,7 @@ int cxd2820r_get_frontend_c(struct dvb_frontend *fe) | |||
121 | if (ret) | 121 | if (ret) |
122 | goto error; | 122 | goto error; |
123 | 123 | ||
124 | switch ((buf[0] >> 0) & 0x03) { | 124 | switch ((buf[0] >> 0) & 0x07) { |
125 | case 0: | 125 | case 0: |
126 | c->modulation = QAM_16; | 126 | c->modulation = QAM_16; |
127 | break; | 127 | break; |
diff --git a/drivers/media/dvb/frontends/lg2160.c b/drivers/media/dvb/frontends/lg2160.c index a3ab1a5b6597..cc11260e99df 100644 --- a/drivers/media/dvb/frontends/lg2160.c +++ b/drivers/media/dvb/frontends/lg2160.c | |||
@@ -126,7 +126,7 @@ static int lg216x_write_regs(struct lg216x_state *state, | |||
126 | 126 | ||
127 | lg_reg("writing %d registers...\n", len); | 127 | lg_reg("writing %d registers...\n", len); |
128 | 128 | ||
129 | for (i = 0; i < len - 1; i++) { | 129 | for (i = 0; i < len; i++) { |
130 | ret = lg216x_write_reg(state, regs[i].reg, regs[i].val); | 130 | ret = lg216x_write_reg(state, regs[i].reg, regs[i].val); |
131 | if (lg_fail(ret)) | 131 | if (lg_fail(ret)) |
132 | return ret; | 132 | return ret; |
diff --git a/drivers/media/dvb/siano/smsusb.c b/drivers/media/dvb/siano/smsusb.c index 63c004a25e0b..664e460f247b 100644 --- a/drivers/media/dvb/siano/smsusb.c +++ b/drivers/media/dvb/siano/smsusb.c | |||
@@ -544,6 +544,8 @@ static const struct usb_device_id smsusb_id_table[] __devinitconst = { | |||
544 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | 544 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, |
545 | { USB_DEVICE(0x2040, 0xc0a0), | 545 | { USB_DEVICE(0x2040, 0xc0a0), |
546 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | 546 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, |
547 | { USB_DEVICE(0x2040, 0xf5a0), | ||
548 | .driver_info = SMS1XXX_BOARD_HAUPPAUGE_WINDHAM }, | ||
547 | { } /* Terminating entry */ | 549 | { } /* Terminating entry */ |
548 | }; | 550 | }; |
549 | 551 | ||
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 740a3d5520c7..b415211d0c4b 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c | |||
@@ -157,7 +157,7 @@ static int __devinit maxiradio_probe(struct pci_dev *pdev, const struct pci_devi | |||
157 | goto err_out_free_region; | 157 | goto err_out_free_region; |
158 | 158 | ||
159 | dev->io = pci_resource_start(pdev, 0); | 159 | dev->io = pci_resource_start(pdev, 0); |
160 | if (snd_tea575x_init(&dev->tea)) { | 160 | if (snd_tea575x_init(&dev->tea, THIS_MODULE)) { |
161 | printk(KERN_ERR "radio-maxiradio: Unable to detect TEA575x tuner\n"); | 161 | printk(KERN_ERR "radio-maxiradio: Unable to detect TEA575x tuner\n"); |
162 | goto err_out_free_region; | 162 | goto err_out_free_region; |
163 | } | 163 | } |
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 52b8011f1b23..4efcbec74c52 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -238,7 +238,7 @@ static int __devinit fmr2_probe(struct fmr2 *fmr2, struct device *pdev, int io) | |||
238 | snprintf(fmr2->tea.bus_info, sizeof(fmr2->tea.bus_info), "%s:%s", | 238 | snprintf(fmr2->tea.bus_info, sizeof(fmr2->tea.bus_info), "%s:%s", |
239 | fmr2->is_fmd2 ? "PnP" : "ISA", dev_name(pdev)); | 239 | fmr2->is_fmd2 ? "PnP" : "ISA", dev_name(pdev)); |
240 | 240 | ||
241 | if (snd_tea575x_init(&fmr2->tea)) { | 241 | if (snd_tea575x_init(&fmr2->tea, THIS_MODULE)) { |
242 | printk(KERN_ERR "radio-sf16fmr2: Unable to detect TEA575x tuner\n"); | 242 | printk(KERN_ERR "radio-sf16fmr2: Unable to detect TEA575x tuner\n"); |
243 | release_region(fmr2->io, 2); | 243 | release_region(fmr2->io, 2); |
244 | return -ENODEV; | 244 | return -ENODEV; |
diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index e9f638761296..f412f7ab270b 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c | |||
@@ -51,6 +51,8 @@ static struct usb_device_id si470x_usb_driver_id_table[] = { | |||
51 | { USB_DEVICE_AND_INTERFACE_INFO(0x1b80, 0xd700, USB_CLASS_HID, 0, 0) }, | 51 | { USB_DEVICE_AND_INTERFACE_INFO(0x1b80, 0xd700, USB_CLASS_HID, 0, 0) }, |
52 | /* Sanei Electric, Inc. FM USB Radio (sold as DealExtreme.com PCear) */ | 52 | /* Sanei Electric, Inc. FM USB Radio (sold as DealExtreme.com PCear) */ |
53 | { USB_DEVICE_AND_INTERFACE_INFO(0x10c5, 0x819a, USB_CLASS_HID, 0, 0) }, | 53 | { USB_DEVICE_AND_INTERFACE_INFO(0x10c5, 0x819a, USB_CLASS_HID, 0, 0) }, |
54 | /* Axentia ALERT FM USB Receiver */ | ||
55 | { USB_DEVICE_AND_INTERFACE_INFO(0x12cf, 0x7111, USB_CLASS_HID, 0, 0) }, | ||
54 | /* Terminating entry */ | 56 | /* Terminating entry */ |
55 | { } | 57 | { } |
56 | }; | 58 | }; |
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index ff2933ab705f..856ab962cd63 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c | |||
@@ -371,7 +371,6 @@ struct tvcard bttv_tvcards[] = { | |||
371 | .muxsel = MUXSEL(2, 3, 1, 1), | 371 | .muxsel = MUXSEL(2, 3, 1, 1), |
372 | .gpiomux = { 2, 0, 0, 0 }, | 372 | .gpiomux = { 2, 0, 0, 0 }, |
373 | .gpiomute = 10, | 373 | .gpiomute = 10, |
374 | .needs_tvaudio = 1, | ||
375 | .tuner_type = UNSET, | 374 | .tuner_type = UNSET, |
376 | .tuner_addr = ADDR_UNSET, | 375 | .tuner_addr = ADDR_UNSET, |
377 | }, | 376 | }, |
@@ -384,7 +383,6 @@ struct tvcard bttv_tvcards[] = { | |||
384 | .muxsel = MUXSEL(2, 3, 1, 1), | 383 | .muxsel = MUXSEL(2, 3, 1, 1), |
385 | .gpiomux = { 0, 1, 2, 3 }, | 384 | .gpiomux = { 0, 1, 2, 3 }, |
386 | .gpiomute = 4, | 385 | .gpiomute = 4, |
387 | .needs_tvaudio = 1, | ||
388 | .tuner_type = UNSET, | 386 | .tuner_type = UNSET, |
389 | .tuner_addr = ADDR_UNSET, | 387 | .tuner_addr = ADDR_UNSET, |
390 | }, | 388 | }, |
@@ -398,7 +396,6 @@ struct tvcard bttv_tvcards[] = { | |||
398 | .gpiomux = { 4, 0, 2, 3 }, | 396 | .gpiomux = { 4, 0, 2, 3 }, |
399 | .gpiomute = 1, | 397 | .gpiomute = 1, |
400 | .no_msp34xx = 1, | 398 | .no_msp34xx = 1, |
401 | .needs_tvaudio = 1, | ||
402 | .tuner_type = TUNER_PHILIPS_NTSC, | 399 | .tuner_type = TUNER_PHILIPS_NTSC, |
403 | .tuner_addr = ADDR_UNSET, | 400 | .tuner_addr = ADDR_UNSET, |
404 | .pll = PLL_28, | 401 | .pll = PLL_28, |
@@ -414,7 +411,6 @@ struct tvcard bttv_tvcards[] = { | |||
414 | .gpiomask = 0, | 411 | .gpiomask = 0, |
415 | .muxsel = MUXSEL(2, 3, 1, 1), | 412 | .muxsel = MUXSEL(2, 3, 1, 1), |
416 | .gpiomux = { 0 }, | 413 | .gpiomux = { 0 }, |
417 | .needs_tvaudio = 0, | ||
418 | .tuner_type = TUNER_ABSENT, | 414 | .tuner_type = TUNER_ABSENT, |
419 | .tuner_addr = ADDR_UNSET, | 415 | .tuner_addr = ADDR_UNSET, |
420 | }, | 416 | }, |
@@ -427,7 +423,6 @@ struct tvcard bttv_tvcards[] = { | |||
427 | .muxsel = MUXSEL(2, 3, 1, 0), | 423 | .muxsel = MUXSEL(2, 3, 1, 0), |
428 | .gpiomux = { 0, 1, 0, 1 }, | 424 | .gpiomux = { 0, 1, 0, 1 }, |
429 | .gpiomute = 3, | 425 | .gpiomute = 3, |
430 | .needs_tvaudio = 1, | ||
431 | .tuner_type = UNSET, | 426 | .tuner_type = UNSET, |
432 | .tuner_addr = ADDR_UNSET, | 427 | .tuner_addr = ADDR_UNSET, |
433 | }, | 428 | }, |
@@ -440,7 +435,6 @@ struct tvcard bttv_tvcards[] = { | |||
440 | .gpiomask = 0x0f, | 435 | .gpiomask = 0x0f, |
441 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, | 436 | .gpiomux = { 0x0c, 0x04, 0x08, 0x04 }, |
442 | /* 0x04 for some cards ?? */ | 437 | /* 0x04 for some cards ?? */ |
443 | .needs_tvaudio = 1, | ||
444 | .tuner_type = UNSET, | 438 | .tuner_type = UNSET, |
445 | .tuner_addr = ADDR_UNSET, | 439 | .tuner_addr = ADDR_UNSET, |
446 | .audio_mode_gpio= avermedia_tvphone_audio, | 440 | .audio_mode_gpio= avermedia_tvphone_audio, |
@@ -454,7 +448,6 @@ struct tvcard bttv_tvcards[] = { | |||
454 | .gpiomask = 0, | 448 | .gpiomask = 0, |
455 | .muxsel = MUXSEL(2, 3, 1, 0, 0), | 449 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
456 | .gpiomux = { 0 }, | 450 | .gpiomux = { 0 }, |
457 | .needs_tvaudio = 1, | ||
458 | .tuner_type = TUNER_ABSENT, | 451 | .tuner_type = TUNER_ABSENT, |
459 | .tuner_addr = ADDR_UNSET, | 452 | .tuner_addr = ADDR_UNSET, |
460 | }, | 453 | }, |
@@ -469,7 +462,6 @@ struct tvcard bttv_tvcards[] = { | |||
469 | .muxsel = MUXSEL(2, 3, 1, 1), | 462 | .muxsel = MUXSEL(2, 3, 1, 1), |
470 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, | 463 | .gpiomux = { 0, 0xc00, 0x800, 0x400 }, |
471 | .gpiomute = 0xc00, | 464 | .gpiomute = 0xc00, |
472 | .needs_tvaudio = 1, | ||
473 | .pll = PLL_28, | 465 | .pll = PLL_28, |
474 | .tuner_type = UNSET, | 466 | .tuner_type = UNSET, |
475 | .tuner_addr = ADDR_UNSET, | 467 | .tuner_addr = ADDR_UNSET, |
@@ -482,7 +474,6 @@ struct tvcard bttv_tvcards[] = { | |||
482 | .gpiomask = 3, | 474 | .gpiomask = 3, |
483 | .muxsel = MUXSEL(2, 3, 1, 1), | 475 | .muxsel = MUXSEL(2, 3, 1, 1), |
484 | .gpiomux = { 1, 1, 2, 3 }, | 476 | .gpiomux = { 1, 1, 2, 3 }, |
485 | .needs_tvaudio = 0, | ||
486 | .pll = PLL_28, | 477 | .pll = PLL_28, |
487 | .tuner_type = TUNER_TEMIC_PAL, | 478 | .tuner_type = TUNER_TEMIC_PAL, |
488 | .tuner_addr = ADDR_UNSET, | 479 | .tuner_addr = ADDR_UNSET, |
@@ -496,7 +487,6 @@ struct tvcard bttv_tvcards[] = { | |||
496 | .muxsel = MUXSEL(2, 0, 1, 1), | 487 | .muxsel = MUXSEL(2, 0, 1, 1), |
497 | .gpiomux = { 0, 1, 2, 3 }, | 488 | .gpiomux = { 0, 1, 2, 3 }, |
498 | .gpiomute = 4, | 489 | .gpiomute = 4, |
499 | .needs_tvaudio = 1, | ||
500 | .pll = PLL_28, | 490 | .pll = PLL_28, |
501 | .tuner_type = UNSET, | 491 | .tuner_type = UNSET, |
502 | .tuner_addr = ADDR_UNSET, | 492 | .tuner_addr = ADDR_UNSET, |
@@ -510,7 +500,6 @@ struct tvcard bttv_tvcards[] = { | |||
510 | .muxsel = MUXSEL(2, 3, 1, 1), | 500 | .muxsel = MUXSEL(2, 3, 1, 1), |
511 | .gpiomux = { 0x20001,0x10001, 0, 0 }, | 501 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
512 | .gpiomute = 10, | 502 | .gpiomute = 10, |
513 | .needs_tvaudio = 1, | ||
514 | .tuner_type = UNSET, | 503 | .tuner_type = UNSET, |
515 | .tuner_addr = ADDR_UNSET, | 504 | .tuner_addr = ADDR_UNSET, |
516 | }, | 505 | }, |
@@ -524,7 +513,6 @@ struct tvcard bttv_tvcards[] = { | |||
524 | .gpiomask = 15, | 513 | .gpiomask = 15, |
525 | .muxsel = MUXSEL(2, 3, 1, 1), | 514 | .muxsel = MUXSEL(2, 3, 1, 1), |
526 | .gpiomux = { 13, 14, 11, 7 }, | 515 | .gpiomux = { 13, 14, 11, 7 }, |
527 | .needs_tvaudio = 1, | ||
528 | .tuner_type = UNSET, | 516 | .tuner_type = UNSET, |
529 | .tuner_addr = ADDR_UNSET, | 517 | .tuner_addr = ADDR_UNSET, |
530 | }, | 518 | }, |
@@ -536,7 +524,6 @@ struct tvcard bttv_tvcards[] = { | |||
536 | .gpiomask = 15, | 524 | .gpiomask = 15, |
537 | .muxsel = MUXSEL(2, 3, 1, 1), | 525 | .muxsel = MUXSEL(2, 3, 1, 1), |
538 | .gpiomux = { 13, 14, 11, 7 }, | 526 | .gpiomux = { 13, 14, 11, 7 }, |
539 | .needs_tvaudio = 1, | ||
540 | .msp34xx_alt = 1, | 527 | .msp34xx_alt = 1, |
541 | .pll = PLL_28, | 528 | .pll = PLL_28, |
542 | .tuner_type = TUNER_PHILIPS_PAL, | 529 | .tuner_type = TUNER_PHILIPS_PAL, |
@@ -553,7 +540,6 @@ struct tvcard bttv_tvcards[] = { | |||
553 | .muxsel = MUXSEL(2, 3, 1, 1), | 540 | .muxsel = MUXSEL(2, 3, 1, 1), |
554 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ | 541 | .gpiomux = { 0, 2, 1, 3 }, /* old: {0, 1, 2, 3, 4} */ |
555 | .gpiomute = 4, | 542 | .gpiomute = 4, |
556 | .needs_tvaudio = 1, | ||
557 | .pll = PLL_28, | 543 | .pll = PLL_28, |
558 | .tuner_type = UNSET, | 544 | .tuner_type = UNSET, |
559 | .tuner_addr = ADDR_UNSET, | 545 | .tuner_addr = ADDR_UNSET, |
@@ -567,7 +553,6 @@ struct tvcard bttv_tvcards[] = { | |||
567 | .muxsel = MUXSEL(2, 3, 1, 1), | 553 | .muxsel = MUXSEL(2, 3, 1, 1), |
568 | .gpiomux = { 0, 0, 1, 0 }, | 554 | .gpiomux = { 0, 0, 1, 0 }, |
569 | .gpiomute = 10, | 555 | .gpiomute = 10, |
570 | .needs_tvaudio = 1, | ||
571 | .tuner_type = UNSET, | 556 | .tuner_type = UNSET, |
572 | .tuner_addr = ADDR_UNSET, | 557 | .tuner_addr = ADDR_UNSET, |
573 | }, | 558 | }, |
@@ -583,7 +568,6 @@ struct tvcard bttv_tvcards[] = { | |||
583 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ | 568 | /* 2003-10-20 by "Anton A. Arapov" <arapov@mail.ru> */ |
584 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, | 569 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
585 | .gpiomute = 0x002000, | 570 | .gpiomute = 0x002000, |
586 | .needs_tvaudio = 1, | ||
587 | .pll = PLL_28, | 571 | .pll = PLL_28, |
588 | .tuner_type = UNSET, | 572 | .tuner_type = UNSET, |
589 | .tuner_addr = ADDR_UNSET, | 573 | .tuner_addr = ADDR_UNSET, |
@@ -597,7 +581,6 @@ struct tvcard bttv_tvcards[] = { | |||
597 | .muxsel = MUXSEL(2, 3, 1, 1, 0), | 581 | .muxsel = MUXSEL(2, 3, 1, 1, 0), |
598 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, | 582 | .gpiomux = { 0x4fa007,0xcfa007,0xcfa007,0xcfa007 }, |
599 | .gpiomute = 0xcfa007, | 583 | .gpiomute = 0xcfa007, |
600 | .needs_tvaudio = 1, | ||
601 | .tuner_type = UNSET, | 584 | .tuner_type = UNSET, |
602 | .tuner_addr = ADDR_UNSET, | 585 | .tuner_addr = ADDR_UNSET, |
603 | .volume_gpio = winview_volume, | 586 | .volume_gpio = winview_volume, |
@@ -611,7 +594,6 @@ struct tvcard bttv_tvcards[] = { | |||
611 | .gpiomask = 0, | 594 | .gpiomask = 0, |
612 | .muxsel = MUXSEL(2, 3, 1, 1), | 595 | .muxsel = MUXSEL(2, 3, 1, 1), |
613 | .gpiomux = { 1, 0, 0, 0 }, | 596 | .gpiomux = { 1, 0, 0, 0 }, |
614 | .needs_tvaudio = 1, | ||
615 | .tuner_type = UNSET, | 597 | .tuner_type = UNSET, |
616 | .tuner_addr = ADDR_UNSET, | 598 | .tuner_addr = ADDR_UNSET, |
617 | }, | 599 | }, |
@@ -660,7 +642,6 @@ struct tvcard bttv_tvcards[] = { | |||
660 | .muxsel = MUXSEL(2, 3, 1, 1), | 642 | .muxsel = MUXSEL(2, 3, 1, 1), |
661 | .gpiomux = { 0, 1, 0x800, 0x400 }, | 643 | .gpiomux = { 0, 1, 0x800, 0x400 }, |
662 | .gpiomute = 0xc00, | 644 | .gpiomute = 0xc00, |
663 | .needs_tvaudio = 1, | ||
664 | .pll = PLL_28, | 645 | .pll = PLL_28, |
665 | .tuner_type = UNSET, | 646 | .tuner_type = UNSET, |
666 | .tuner_addr = ADDR_UNSET, | 647 | .tuner_addr = ADDR_UNSET, |
@@ -691,7 +672,6 @@ struct tvcard bttv_tvcards[] = { | |||
691 | .muxsel = MUXSEL(2, 3, 1, 1), | 672 | .muxsel = MUXSEL(2, 3, 1, 1), |
692 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, | 673 | .gpiomux = {0x400, 0x400, 0x400, 0x400 }, |
693 | .gpiomute = 0xc00, | 674 | .gpiomute = 0xc00, |
694 | .needs_tvaudio = 1, | ||
695 | .pll = PLL_28, | 675 | .pll = PLL_28, |
696 | .tuner_type = UNSET, | 676 | .tuner_type = UNSET, |
697 | .tuner_addr = ADDR_UNSET, | 677 | .tuner_addr = ADDR_UNSET, |
@@ -706,7 +686,6 @@ struct tvcard bttv_tvcards[] = { | |||
706 | .muxsel = MUXSEL(2, 3, 1, 1), | 686 | .muxsel = MUXSEL(2, 3, 1, 1), |
707 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, | 687 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
708 | .gpiomute = 0x40000, | 688 | .gpiomute = 0x40000, |
709 | .needs_tvaudio = 0, | ||
710 | .tuner_type = TUNER_PHILIPS_PAL, | 689 | .tuner_type = TUNER_PHILIPS_PAL, |
711 | .tuner_addr = ADDR_UNSET, | 690 | .tuner_addr = ADDR_UNSET, |
712 | .audio_mode_gpio= terratv_audio, | 691 | .audio_mode_gpio= terratv_audio, |
@@ -720,7 +699,6 @@ struct tvcard bttv_tvcards[] = { | |||
720 | .muxsel = MUXSEL(2, 0, 1, 1), | 699 | .muxsel = MUXSEL(2, 0, 1, 1), |
721 | .gpiomux = { 0, 1, 2, 3 }, | 700 | .gpiomux = { 0, 1, 2, 3 }, |
722 | .gpiomute = 4, | 701 | .gpiomute = 4, |
723 | .needs_tvaudio = 1, | ||
724 | .tuner_type = UNSET, | 702 | .tuner_type = UNSET, |
725 | .tuner_addr = ADDR_UNSET, | 703 | .tuner_addr = ADDR_UNSET, |
726 | }, | 704 | }, |
@@ -748,7 +726,6 @@ struct tvcard bttv_tvcards[] = { | |||
748 | .muxsel = MUXSEL(2, 3, 1, 1), | 726 | .muxsel = MUXSEL(2, 3, 1, 1), |
749 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, | 727 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0x00000 }, |
750 | .gpiomute = 0x40000, | 728 | .gpiomute = 0x40000, |
751 | .needs_tvaudio = 0, | ||
752 | .tuner_type = TUNER_PHILIPS_PAL, | 729 | .tuner_type = TUNER_PHILIPS_PAL, |
753 | .tuner_addr = ADDR_UNSET, | 730 | .tuner_addr = ADDR_UNSET, |
754 | .audio_mode_gpio= terratv_audio, | 731 | .audio_mode_gpio= terratv_audio, |
@@ -793,7 +770,6 @@ struct tvcard bttv_tvcards[] = { | |||
793 | .gpiomask = 0, | 770 | .gpiomask = 0, |
794 | .muxsel = MUXSEL(2, 3, 1, 0, 0), | 771 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
795 | .gpiomux = { 0 }, | 772 | .gpiomux = { 0 }, |
796 | .needs_tvaudio = 1, | ||
797 | .tuner_type = TUNER_ABSENT, | 773 | .tuner_type = TUNER_ABSENT, |
798 | .tuner_addr = ADDR_UNSET, | 774 | .tuner_addr = ADDR_UNSET, |
799 | .muxsel_hook = PXC200_muxsel, | 775 | .muxsel_hook = PXC200_muxsel, |
@@ -834,7 +810,6 @@ struct tvcard bttv_tvcards[] = { | |||
834 | .gpiomask = 0, | 810 | .gpiomask = 0, |
835 | .muxsel = MUXSEL(2, 3, 1, 1), | 811 | .muxsel = MUXSEL(2, 3, 1, 1), |
836 | .gpiomux = { 0 }, | 812 | .gpiomux = { 0 }, |
837 | .needs_tvaudio = 0, | ||
838 | .tuner_type = TUNER_ABSENT, | 813 | .tuner_type = TUNER_ABSENT, |
839 | .tuner_addr = ADDR_UNSET, | 814 | .tuner_addr = ADDR_UNSET, |
840 | }, | 815 | }, |
@@ -847,7 +822,6 @@ struct tvcard bttv_tvcards[] = { | |||
847 | .muxsel = MUXSEL(2, 3, 1, 1), | 822 | .muxsel = MUXSEL(2, 3, 1, 1), |
848 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, | 823 | .gpiomux = { 0x500, 0, 0x300, 0x900 }, |
849 | .gpiomute = 0x900, | 824 | .gpiomute = 0x900, |
850 | .needs_tvaudio = 1, | ||
851 | .pll = PLL_28, | 825 | .pll = PLL_28, |
852 | .tuner_type = TUNER_PHILIPS_PAL, | 826 | .tuner_type = TUNER_PHILIPS_PAL, |
853 | .tuner_addr = ADDR_UNSET, | 827 | .tuner_addr = ADDR_UNSET, |
@@ -874,7 +848,6 @@ struct tvcard bttv_tvcards[] = { | |||
874 | Note: There exists another variant "Winfast 2000" with tv stereo !? | 848 | Note: There exists another variant "Winfast 2000" with tv stereo !? |
875 | Note: eeprom only contains FF and pci subsystem id 107d:6606 | 849 | Note: eeprom only contains FF and pci subsystem id 107d:6606 |
876 | */ | 850 | */ |
877 | .needs_tvaudio = 0, | ||
878 | .pll = PLL_28, | 851 | .pll = PLL_28, |
879 | .has_radio = 1, | 852 | .has_radio = 1, |
880 | .tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */ | 853 | .tuner_type = TUNER_PHILIPS_PAL, /* default for now, gpio reads BFFF06 for Pal bg+dk */ |
@@ -934,7 +907,6 @@ struct tvcard bttv_tvcards[] = { | |||
934 | .muxsel = MUXSEL(2, 3, 1, 0), | 907 | .muxsel = MUXSEL(2, 3, 1, 0), |
935 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, | 908 | .gpiomux = { 0x551400, 0x551200, 0, 0 }, |
936 | .gpiomute = 0x551c00, | 909 | .gpiomute = 0x551c00, |
937 | .needs_tvaudio = 1, | ||
938 | .pll = PLL_28, | 910 | .pll = PLL_28, |
939 | .tuner_type = TUNER_PHILIPS_PAL_I, | 911 | .tuner_type = TUNER_PHILIPS_PAL_I, |
940 | .tuner_addr = ADDR_UNSET, | 912 | .tuner_addr = ADDR_UNSET, |
@@ -949,7 +921,6 @@ struct tvcard bttv_tvcards[] = { | |||
949 | .muxsel = MUXSEL(2, 3, 1, 1), | 921 | .muxsel = MUXSEL(2, 3, 1, 1), |
950 | .gpiomux = { 2, 0xd0001, 0, 0 }, | 922 | .gpiomux = { 2, 0xd0001, 0, 0 }, |
951 | .gpiomute = 1, | 923 | .gpiomute = 1, |
952 | .needs_tvaudio = 0, | ||
953 | .pll = PLL_28, | 924 | .pll = PLL_28, |
954 | .tuner_type = UNSET, | 925 | .tuner_type = UNSET, |
955 | .tuner_addr = ADDR_UNSET, | 926 | .tuner_addr = ADDR_UNSET, |
@@ -966,7 +937,6 @@ struct tvcard bttv_tvcards[] = { | |||
966 | .gpiomux = { 4, 0, 2, 3 }, | 937 | .gpiomux = { 4, 0, 2, 3 }, |
967 | .gpiomute = 1, | 938 | .gpiomute = 1, |
968 | .no_msp34xx = 1, | 939 | .no_msp34xx = 1, |
969 | .needs_tvaudio = 1, | ||
970 | .tuner_type = TUNER_PHILIPS_NTSC, | 940 | .tuner_type = TUNER_PHILIPS_NTSC, |
971 | .tuner_addr = ADDR_UNSET, | 941 | .tuner_addr = ADDR_UNSET, |
972 | .pll = PLL_28, | 942 | .pll = PLL_28, |
@@ -980,7 +950,6 @@ struct tvcard bttv_tvcards[] = { | |||
980 | .gpiomask = 15, | 950 | .gpiomask = 15, |
981 | .muxsel = MUXSEL(2, 3, 1, 1), | 951 | .muxsel = MUXSEL(2, 3, 1, 1), |
982 | .gpiomux = { 13, 4, 11, 7 }, | 952 | .gpiomux = { 13, 4, 11, 7 }, |
983 | .needs_tvaudio = 1, | ||
984 | .pll = PLL_28, | 953 | .pll = PLL_28, |
985 | .tuner_type = UNSET, | 954 | .tuner_type = UNSET, |
986 | .tuner_addr = ADDR_UNSET, | 955 | .tuner_addr = ADDR_UNSET, |
@@ -995,7 +964,6 @@ struct tvcard bttv_tvcards[] = { | |||
995 | .gpiomask = 0, | 964 | .gpiomask = 0, |
996 | .muxsel = MUXSEL(2, 3, 1, 1), | 965 | .muxsel = MUXSEL(2, 3, 1, 1), |
997 | .gpiomux = { 0, 0, 0, 0}, | 966 | .gpiomux = { 0, 0, 0, 0}, |
998 | .needs_tvaudio = 1, | ||
999 | .no_msp34xx = 1, | 967 | .no_msp34xx = 1, |
1000 | .pll = PLL_28, | 968 | .pll = PLL_28, |
1001 | .tuner_type = TUNER_PHILIPS_PAL_I, | 969 | .tuner_type = TUNER_PHILIPS_PAL_I, |
@@ -1066,7 +1034,6 @@ struct tvcard bttv_tvcards[] = { | |||
1066 | .muxsel = MUXSEL(2, 3, 1, 1), | 1034 | .muxsel = MUXSEL(2, 3, 1, 1), |
1067 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, | 1035 | .gpiomux = { 0x20000, 0x30000, 0x10000, 0 }, |
1068 | .gpiomute = 0x40000, | 1036 | .gpiomute = 0x40000, |
1069 | .needs_tvaudio = 1, | ||
1070 | .no_msp34xx = 1, | 1037 | .no_msp34xx = 1, |
1071 | .pll = PLL_35, | 1038 | .pll = PLL_35, |
1072 | .tuner_type = TUNER_PHILIPS_PAL_I, | 1039 | .tuner_type = TUNER_PHILIPS_PAL_I, |
@@ -1084,7 +1051,6 @@ struct tvcard bttv_tvcards[] = { | |||
1084 | .muxsel = MUXSEL(2, 3, 1, 1), | 1051 | .muxsel = MUXSEL(2, 3, 1, 1), |
1085 | .gpiomux = {2,0,0,0 }, | 1052 | .gpiomux = {2,0,0,0 }, |
1086 | .gpiomute = 1, | 1053 | .gpiomute = 1, |
1087 | .needs_tvaudio = 1, | ||
1088 | .pll = PLL_28, | 1054 | .pll = PLL_28, |
1089 | .tuner_type = UNSET, | 1055 | .tuner_type = UNSET, |
1090 | .tuner_addr = ADDR_UNSET, | 1056 | .tuner_addr = ADDR_UNSET, |
@@ -1163,7 +1129,6 @@ struct tvcard bttv_tvcards[] = { | |||
1163 | MUX2 (mask 0x30000): | 1129 | MUX2 (mask 0x30000): |
1164 | 0,2,3= from MSP34xx | 1130 | 0,2,3= from MSP34xx |
1165 | 1= FM stereo Radio from Tuner */ | 1131 | 1= FM stereo Radio from Tuner */ |
1166 | .needs_tvaudio = 0, | ||
1167 | .pll = PLL_28, | 1132 | .pll = PLL_28, |
1168 | .tuner_type = UNSET, | 1133 | .tuner_type = UNSET, |
1169 | .tuner_addr = ADDR_UNSET, | 1134 | .tuner_addr = ADDR_UNSET, |
@@ -1179,7 +1144,6 @@ struct tvcard bttv_tvcards[] = { | |||
1179 | .muxsel = MUXSEL(2, 3, 1, 1), | 1144 | .muxsel = MUXSEL(2, 3, 1, 1), |
1180 | .gpiomux = { 0, 0, 0x10, 8 }, | 1145 | .gpiomux = { 0, 0, 0x10, 8 }, |
1181 | .gpiomute = 4, | 1146 | .gpiomute = 4, |
1182 | .needs_tvaudio = 1, | ||
1183 | .pll = PLL_28, | 1147 | .pll = PLL_28, |
1184 | .tuner_type = TUNER_PHILIPS_PAL, | 1148 | .tuner_type = TUNER_PHILIPS_PAL, |
1185 | .tuner_addr = ADDR_UNSET, | 1149 | .tuner_addr = ADDR_UNSET, |
@@ -1218,7 +1182,6 @@ struct tvcard bttv_tvcards[] = { | |||
1218 | .muxsel = MUXSEL(2, 3, 1, 0), | 1182 | .muxsel = MUXSEL(2, 3, 1, 0), |
1219 | .gpiomux = { 2, 0, 0, 0 }, | 1183 | .gpiomux = { 2, 0, 0, 0 }, |
1220 | .gpiomute = 10, | 1184 | .gpiomute = 10, |
1221 | .needs_tvaudio = 0, | ||
1222 | .pll = PLL_28, | 1185 | .pll = PLL_28, |
1223 | .tuner_type = TUNER_TEMIC_PAL, | 1186 | .tuner_type = TUNER_TEMIC_PAL, |
1224 | .tuner_addr = ADDR_UNSET, | 1187 | .tuner_addr = ADDR_UNSET, |
@@ -1250,7 +1213,6 @@ struct tvcard bttv_tvcards[] = { | |||
1250 | .gpiomask = 0, | 1213 | .gpiomask = 0, |
1251 | .muxsel = MUXSEL(3, 1), | 1214 | .muxsel = MUXSEL(3, 1), |
1252 | .gpiomux = { 0 }, | 1215 | .gpiomux = { 0 }, |
1253 | .needs_tvaudio = 0, | ||
1254 | .no_msp34xx = 1, | 1216 | .no_msp34xx = 1, |
1255 | .pll = PLL_35, | 1217 | .pll = PLL_35, |
1256 | .tuner_type = TUNER_ABSENT, | 1218 | .tuner_type = TUNER_ABSENT, |
@@ -1266,7 +1228,6 @@ struct tvcard bttv_tvcards[] = { | |||
1266 | .muxsel = MUXSEL(2, 3, 1, 1), | 1228 | .muxsel = MUXSEL(2, 3, 1, 1), |
1267 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, | 1229 | .gpiomux = { 0x400, 0x400, 0x400, 0x400 }, |
1268 | .gpiomute = 0x800, | 1230 | .gpiomute = 0x800, |
1269 | .needs_tvaudio = 1, | ||
1270 | .pll = PLL_28, | 1231 | .pll = PLL_28, |
1271 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, | 1232 | .tuner_type = TUNER_TEMIC_4036FY5_NTSC, |
1272 | .tuner_addr = ADDR_UNSET, | 1233 | .tuner_addr = ADDR_UNSET, |
@@ -1312,7 +1273,6 @@ struct tvcard bttv_tvcards[] = { | |||
1312 | .muxsel = MUXSEL(2, 2), | 1273 | .muxsel = MUXSEL(2, 2), |
1313 | .gpiomux = { }, | 1274 | .gpiomux = { }, |
1314 | .no_msp34xx = 1, | 1275 | .no_msp34xx = 1, |
1315 | .needs_tvaudio = 0, | ||
1316 | .pll = PLL_28, | 1276 | .pll = PLL_28, |
1317 | .tuner_type = TUNER_ABSENT, | 1277 | .tuner_type = TUNER_ABSENT, |
1318 | .tuner_addr = ADDR_UNSET, | 1278 | .tuner_addr = ADDR_UNSET, |
@@ -1329,7 +1289,6 @@ struct tvcard bttv_tvcards[] = { | |||
1329 | .muxsel = MUXSEL(2, 3, 1, 0), | 1289 | .muxsel = MUXSEL(2, 3, 1, 0), |
1330 | .gpiomux = { 1, 0, 4, 4 }, | 1290 | .gpiomux = { 1, 0, 4, 4 }, |
1331 | .gpiomute = 9, | 1291 | .gpiomute = 9, |
1332 | .needs_tvaudio = 0, | ||
1333 | .pll = PLL_28, | 1292 | .pll = PLL_28, |
1334 | .tuner_type = TUNER_PHILIPS_PAL, | 1293 | .tuner_type = TUNER_PHILIPS_PAL, |
1335 | .tuner_addr = ADDR_UNSET, | 1294 | .tuner_addr = ADDR_UNSET, |
@@ -1379,7 +1338,6 @@ struct tvcard bttv_tvcards[] = { | |||
1379 | .gpiomute = 0x1800, | 1338 | .gpiomute = 0x1800, |
1380 | .audio_mode_gpio= fv2000s_audio, | 1339 | .audio_mode_gpio= fv2000s_audio, |
1381 | .no_msp34xx = 1, | 1340 | .no_msp34xx = 1, |
1382 | .needs_tvaudio = 1, | ||
1383 | .pll = PLL_28, | 1341 | .pll = PLL_28, |
1384 | .tuner_type = TUNER_PHILIPS_PAL, | 1342 | .tuner_type = TUNER_PHILIPS_PAL, |
1385 | .tuner_addr = ADDR_UNSET, | 1343 | .tuner_addr = ADDR_UNSET, |
@@ -1393,7 +1351,6 @@ struct tvcard bttv_tvcards[] = { | |||
1393 | .muxsel = MUXSEL(2, 3, 1, 1), | 1351 | .muxsel = MUXSEL(2, 3, 1, 1), |
1394 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, | 1352 | .gpiomux = { 0x500, 0x500, 0x300, 0x900 }, |
1395 | .gpiomute = 0x900, | 1353 | .gpiomute = 0x900, |
1396 | .needs_tvaudio = 1, | ||
1397 | .pll = PLL_28, | 1354 | .pll = PLL_28, |
1398 | .tuner_type = TUNER_PHILIPS_PAL, | 1355 | .tuner_type = TUNER_PHILIPS_PAL, |
1399 | .tuner_addr = ADDR_UNSET, | 1356 | .tuner_addr = ADDR_UNSET, |
@@ -1477,7 +1434,6 @@ struct tvcard bttv_tvcards[] = { | |||
1477 | .muxsel = MUXSEL(2, 3, 1, 1), | 1434 | .muxsel = MUXSEL(2, 3, 1, 1), |
1478 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ | 1435 | .gpiomux = { 0, 0, 11, 7 }, /* TV and Radio with same GPIO ! */ |
1479 | .gpiomute = 13, | 1436 | .gpiomute = 13, |
1480 | .needs_tvaudio = 1, | ||
1481 | .pll = PLL_28, | 1437 | .pll = PLL_28, |
1482 | .tuner_type = TUNER_LG_PAL_I_FM, | 1438 | .tuner_type = TUNER_LG_PAL_I_FM, |
1483 | .tuner_addr = ADDR_UNSET, | 1439 | .tuner_addr = ADDR_UNSET, |
@@ -1514,7 +1470,6 @@ struct tvcard bttv_tvcards[] = { | |||
1514 | .muxsel = MUXSEL(2, 3, 1, 1), | 1470 | .muxsel = MUXSEL(2, 3, 1, 1), |
1515 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, | 1471 | .gpiomux = { 0x01, 0x00, 0x03, 0x03 }, |
1516 | .gpiomute = 0x09, | 1472 | .gpiomute = 0x09, |
1517 | .needs_tvaudio = 1, | ||
1518 | .no_msp34xx = 1, | 1473 | .no_msp34xx = 1, |
1519 | .pll = PLL_28, | 1474 | .pll = PLL_28, |
1520 | .tuner_type = TUNER_PHILIPS_PAL, | 1475 | .tuner_type = TUNER_PHILIPS_PAL, |
@@ -1540,7 +1495,6 @@ struct tvcard bttv_tvcards[] = { | |||
1540 | .gpiomask = 0, | 1495 | .gpiomask = 0, |
1541 | .muxsel = MUXSEL(2, 3, 1, 0, 0), | 1496 | .muxsel = MUXSEL(2, 3, 1, 0, 0), |
1542 | .gpiomux = { 0 }, | 1497 | .gpiomux = { 0 }, |
1543 | .needs_tvaudio = 0, | ||
1544 | .tuner_type = TUNER_ABSENT, | 1498 | .tuner_type = TUNER_ABSENT, |
1545 | .tuner_addr = ADDR_UNSET, | 1499 | .tuner_addr = ADDR_UNSET, |
1546 | }, | 1500 | }, |
@@ -1567,7 +1521,6 @@ struct tvcard bttv_tvcards[] = { | |||
1567 | .muxsel = MUXSEL(2, 1, 1), | 1521 | .muxsel = MUXSEL(2, 1, 1), |
1568 | .gpiomux = { 0, 1, 2, 2 }, | 1522 | .gpiomux = { 0, 1, 2, 2 }, |
1569 | .gpiomute = 4, | 1523 | .gpiomute = 4, |
1570 | .needs_tvaudio = 0, | ||
1571 | .tuner_type = TUNER_PHILIPS_PAL, | 1524 | .tuner_type = TUNER_PHILIPS_PAL, |
1572 | .tuner_addr = ADDR_UNSET, | 1525 | .tuner_addr = ADDR_UNSET, |
1573 | .pll = PLL_28, | 1526 | .pll = PLL_28, |
@@ -1597,7 +1550,6 @@ struct tvcard bttv_tvcards[] = { | |||
1597 | .gpiomask = 0, | 1550 | .gpiomask = 0, |
1598 | .muxsel = MUXSEL(2, 3, 1, 0), | 1551 | .muxsel = MUXSEL(2, 3, 1, 0), |
1599 | .gpiomux = { 0 }, | 1552 | .gpiomux = { 0 }, |
1600 | .needs_tvaudio = 0, | ||
1601 | .no_msp34xx = 1, | 1553 | .no_msp34xx = 1, |
1602 | .pll = PLL_28, | 1554 | .pll = PLL_28, |
1603 | .tuner_type = TUNER_ABSENT, | 1555 | .tuner_type = TUNER_ABSENT, |
@@ -1619,7 +1571,6 @@ struct tvcard bttv_tvcards[] = { | |||
1619 | * btwincap uses 0x80000/0x80003 | 1571 | * btwincap uses 0x80000/0x80003 |
1620 | */ | 1572 | */ |
1621 | .gpiomute = 4, | 1573 | .gpiomute = 4, |
1622 | .needs_tvaudio = 0, | ||
1623 | .no_msp34xx = 1, | 1574 | .no_msp34xx = 1, |
1624 | .pll = PLL_28, | 1575 | .pll = PLL_28, |
1625 | .tuner_type = TUNER_PHILIPS_PAL, | 1576 | .tuner_type = TUNER_PHILIPS_PAL, |
@@ -1655,7 +1606,6 @@ struct tvcard bttv_tvcards[] = { | |||
1655 | /* .audio_inputs= 1, */ | 1606 | /* .audio_inputs= 1, */ |
1656 | .svhs = 2, | 1607 | .svhs = 2, |
1657 | .muxsel = MUXSEL(2, 0, 1, 1), | 1608 | .muxsel = MUXSEL(2, 0, 1, 1), |
1658 | .needs_tvaudio = 1, | ||
1659 | .pll = PLL_28, | 1609 | .pll = PLL_28, |
1660 | .tuner_type = UNSET, | 1610 | .tuner_type = UNSET, |
1661 | .tuner_addr = ADDR_UNSET, | 1611 | .tuner_addr = ADDR_UNSET, |
@@ -1875,7 +1825,6 @@ struct tvcard bttv_tvcards[] = { | |||
1875 | .muxsel = MUXSEL(2, 3, 1, 1), | 1825 | .muxsel = MUXSEL(2, 3, 1, 1), |
1876 | .gpiomux = { 0, 1, 2, 3}, | 1826 | .gpiomux = { 0, 1, 2, 3}, |
1877 | .gpiomute = 4, | 1827 | .gpiomute = 4, |
1878 | .needs_tvaudio = 1, | ||
1879 | .tuner_type = TUNER_PHILIPS_PAL, | 1828 | .tuner_type = TUNER_PHILIPS_PAL, |
1880 | .tuner_addr = ADDR_UNSET, | 1829 | .tuner_addr = ADDR_UNSET, |
1881 | .pll = PLL_28, | 1830 | .pll = PLL_28, |
@@ -1902,7 +1851,6 @@ struct tvcard bttv_tvcards[] = { | |||
1902 | .gpiomask = 0, | 1851 | .gpiomask = 0, |
1903 | .muxsel = MUXSEL(2, 3), | 1852 | .muxsel = MUXSEL(2, 3), |
1904 | .gpiomux = { 0 }, | 1853 | .gpiomux = { 0 }, |
1905 | .needs_tvaudio = 0, | ||
1906 | .no_msp34xx = 1, | 1854 | .no_msp34xx = 1, |
1907 | .pll = PLL_28, | 1855 | .pll = PLL_28, |
1908 | .tuner_type = TUNER_ABSENT, | 1856 | .tuner_type = TUNER_ABSENT, |
@@ -1920,7 +1868,6 @@ struct tvcard bttv_tvcards[] = { | |||
1920 | /* Tuner, Radio, external, internal, off, on */ | 1868 | /* Tuner, Radio, external, internal, off, on */ |
1921 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, | 1869 | .gpiomux = { 0x08, 0x0f, 0x0a, 0x08 }, |
1922 | .gpiomute = 0x0f, | 1870 | .gpiomute = 0x0f, |
1923 | .needs_tvaudio = 0, | ||
1924 | .no_msp34xx = 1, | 1871 | .no_msp34xx = 1, |
1925 | .pll = PLL_28, | 1872 | .pll = PLL_28, |
1926 | .tuner_type = TUNER_PHILIPS_NTSC, | 1873 | .tuner_type = TUNER_PHILIPS_NTSC, |
@@ -1936,7 +1883,6 @@ struct tvcard bttv_tvcards[] = { | |||
1936 | .svhs = 2, | 1883 | .svhs = 2, |
1937 | .gpiomask = 0x00, | 1884 | .gpiomask = 0x00, |
1938 | .muxsel = MUXSEL(2, 3, 1, 1), | 1885 | .muxsel = MUXSEL(2, 3, 1, 1), |
1939 | .needs_tvaudio = 1, | ||
1940 | .no_msp34xx = 1, | 1886 | .no_msp34xx = 1, |
1941 | .pll = PLL_28, | 1887 | .pll = PLL_28, |
1942 | .tuner_type = TUNER_PHILIPS_PAL, | 1888 | .tuner_type = TUNER_PHILIPS_PAL, |
@@ -2034,7 +1980,6 @@ struct tvcard bttv_tvcards[] = { | |||
2034 | .gpiomask = 0, | 1980 | .gpiomask = 0, |
2035 | .muxsel = MUXSEL(2, 3, 1, 0), | 1981 | .muxsel = MUXSEL(2, 3, 1, 0), |
2036 | .gpiomux = { 0 }, | 1982 | .gpiomux = { 0 }, |
2037 | .needs_tvaudio = 0, | ||
2038 | .no_msp34xx = 1, | 1983 | .no_msp34xx = 1, |
2039 | .pll = PLL_28, | 1984 | .pll = PLL_28, |
2040 | .tuner_type = TUNER_ABSENT, | 1985 | .tuner_type = TUNER_ABSENT, |
@@ -2049,7 +1994,6 @@ struct tvcard bttv_tvcards[] = { | |||
2049 | .gpiomask = 0x00, | 1994 | .gpiomask = 0x00, |
2050 | .muxsel = MUXSEL(2, 3, 1, 0), | 1995 | .muxsel = MUXSEL(2, 3, 1, 0), |
2051 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 1996 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2052 | .needs_tvaudio = 0, | ||
2053 | .pll = PLL_28, | 1997 | .pll = PLL_28, |
2054 | .tuner_type = TUNER_ABSENT, | 1998 | .tuner_type = TUNER_ABSENT, |
2055 | .tuner_addr = ADDR_UNSET, | 1999 | .tuner_addr = ADDR_UNSET, |
@@ -2062,7 +2006,6 @@ struct tvcard bttv_tvcards[] = { | |||
2062 | .gpiomask = 0x00, | 2006 | .gpiomask = 0x00, |
2063 | .muxsel = MUXSEL(2, 3, 1, 1), | 2007 | .muxsel = MUXSEL(2, 3, 1, 1), |
2064 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2008 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2065 | .needs_tvaudio = 0, | ||
2066 | .pll = PLL_28, | 2009 | .pll = PLL_28, |
2067 | .tuner_type = TUNER_ABSENT, | 2010 | .tuner_type = TUNER_ABSENT, |
2068 | .tuner_addr = ADDR_UNSET, | 2011 | .tuner_addr = ADDR_UNSET, |
@@ -2079,7 +2022,6 @@ struct tvcard bttv_tvcards[] = { | |||
2079 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), | 2022 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 0), |
2080 | .muxsel_hook = phytec_muxsel, | 2023 | .muxsel_hook = phytec_muxsel, |
2081 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2024 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2082 | .needs_tvaudio = 1, | ||
2083 | .pll = PLL_28, | 2025 | .pll = PLL_28, |
2084 | .tuner_type = TUNER_ABSENT, | 2026 | .tuner_type = TUNER_ABSENT, |
2085 | .tuner_addr = ADDR_UNSET, | 2027 | .tuner_addr = ADDR_UNSET, |
@@ -2094,7 +2036,6 @@ struct tvcard bttv_tvcards[] = { | |||
2094 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), | 2036 | .muxsel = MUXSEL(2, 2, 2, 2, 3, 3, 3, 3, 1, 1), |
2095 | .muxsel_hook = phytec_muxsel, | 2037 | .muxsel_hook = phytec_muxsel, |
2096 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2038 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2097 | .needs_tvaudio = 1, | ||
2098 | .pll = PLL_28, | 2039 | .pll = PLL_28, |
2099 | .tuner_type = TUNER_ABSENT, | 2040 | .tuner_type = TUNER_ABSENT, |
2100 | .tuner_addr = ADDR_UNSET, | 2041 | .tuner_addr = ADDR_UNSET, |
@@ -2118,7 +2059,6 @@ struct tvcard bttv_tvcards[] = { | |||
2118 | .tuner_type = TUNER_ABSENT, | 2059 | .tuner_type = TUNER_ABSENT, |
2119 | .tuner_addr = ADDR_UNSET, | 2060 | .tuner_addr = ADDR_UNSET, |
2120 | .svhs = NO_SVHS, /* card has no svhs */ | 2061 | .svhs = NO_SVHS, /* card has no svhs */ |
2121 | .needs_tvaudio = 0, | ||
2122 | .no_msp34xx = 1, | 2062 | .no_msp34xx = 1, |
2123 | .no_tda7432 = 1, | 2063 | .no_tda7432 = 1, |
2124 | .gpiomask = 0x00, | 2064 | .gpiomask = 0x00, |
@@ -2168,7 +2108,6 @@ struct tvcard bttv_tvcards[] = { | |||
2168 | .gpiomask = 3, | 2108 | .gpiomask = 3, |
2169 | .muxsel = MUXSEL(2, 3, 1, 1), | 2109 | .muxsel = MUXSEL(2, 3, 1, 1), |
2170 | .gpiomux = { 1, 1, 1, 1 }, | 2110 | .gpiomux = { 1, 1, 1, 1 }, |
2171 | .needs_tvaudio = 1, | ||
2172 | .tuner_type = TUNER_PHILIPS_PAL, | 2111 | .tuner_type = TUNER_PHILIPS_PAL, |
2173 | .tuner_addr = ADDR_UNSET, | 2112 | .tuner_addr = ADDR_UNSET, |
2174 | .pll = PLL_35, | 2113 | .pll = PLL_35, |
@@ -2210,7 +2149,6 @@ struct tvcard bttv_tvcards[] = { | |||
2210 | .muxsel = MUXSEL(2, 3, 1, 0), | 2149 | .muxsel = MUXSEL(2, 3, 1, 0), |
2211 | .no_msp34xx = 1, | 2150 | .no_msp34xx = 1, |
2212 | .no_tda7432 = 1, | 2151 | .no_tda7432 = 1, |
2213 | .needs_tvaudio = 0, | ||
2214 | .tuner_type = TUNER_ABSENT, | 2152 | .tuner_type = TUNER_ABSENT, |
2215 | .tuner_addr = ADDR_UNSET, | 2153 | .tuner_addr = ADDR_UNSET, |
2216 | }, | 2154 | }, |
@@ -2222,7 +2160,6 @@ struct tvcard bttv_tvcards[] = { | |||
2222 | .tuner_type = TUNER_PHILIPS_PAL, | 2160 | .tuner_type = TUNER_PHILIPS_PAL, |
2223 | .tuner_addr = ADDR_UNSET, | 2161 | .tuner_addr = ADDR_UNSET, |
2224 | .svhs = 2, | 2162 | .svhs = 2, |
2225 | .needs_tvaudio = 0, | ||
2226 | .gpiomask = 0x68, | 2163 | .gpiomask = 0x68, |
2227 | .muxsel = MUXSEL(2, 3, 1), | 2164 | .muxsel = MUXSEL(2, 3, 1), |
2228 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, | 2165 | .gpiomux = { 0x68, 0x68, 0x61, 0x61 }, |
@@ -2241,7 +2178,6 @@ struct tvcard bttv_tvcards[] = { | |||
2241 | .muxsel = MUXSEL(2, 3, 1, 1), | 2178 | .muxsel = MUXSEL(2, 3, 1, 1), |
2242 | .gpiomux = { 0, 1, 2, 2 }, | 2179 | .gpiomux = { 0, 1, 2, 2 }, |
2243 | .gpiomute = 3, | 2180 | .gpiomute = 3, |
2244 | .needs_tvaudio = 0, | ||
2245 | .pll = PLL_28, | 2181 | .pll = PLL_28, |
2246 | .tuner_type = TUNER_PHILIPS_PAL, | 2182 | .tuner_type = TUNER_PHILIPS_PAL, |
2247 | .tuner_addr = ADDR_UNSET, | 2183 | .tuner_addr = ADDR_UNSET, |
@@ -2265,7 +2201,6 @@ struct tvcard bttv_tvcards[] = { | |||
2265 | .muxsel = MUXSEL(2, 2, 2, 2), | 2201 | .muxsel = MUXSEL(2, 2, 2, 2), |
2266 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2202 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2267 | .pll = PLL_28, | 2203 | .pll = PLL_28, |
2268 | .needs_tvaudio = 0, | ||
2269 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ | 2204 | .muxsel_hook = picolo_tetra_muxsel,/*Required as it doesn't follow the classic input selection policy*/ |
2270 | .tuner_type = TUNER_ABSENT, | 2205 | .tuner_type = TUNER_ABSENT, |
2271 | .tuner_addr = ADDR_UNSET, | 2206 | .tuner_addr = ADDR_UNSET, |
@@ -2358,7 +2293,6 @@ struct tvcard bttv_tvcards[] = { | |||
2358 | .muxsel = MUXSEL(2, 3, 1, 1), | 2293 | .muxsel = MUXSEL(2, 3, 1, 1), |
2359 | .gpiomux = { 2, 0, 0, 0 }, | 2294 | .gpiomux = { 2, 0, 0, 0 }, |
2360 | .gpiomute = 10, | 2295 | .gpiomute = 10, |
2361 | .needs_tvaudio = 0, | ||
2362 | .pll = PLL_28, | 2296 | .pll = PLL_28, |
2363 | .tuner_type = TUNER_PHILIPS_PAL, | 2297 | .tuner_type = TUNER_PHILIPS_PAL, |
2364 | .tuner_addr = ADDR_UNSET, | 2298 | .tuner_addr = ADDR_UNSET, |
@@ -2405,7 +2339,6 @@ struct tvcard bttv_tvcards[] = { | |||
2405 | .tuner_addr = ADDR_UNSET, | 2339 | .tuner_addr = ADDR_UNSET, |
2406 | .gpiomask = 0x008007, | 2340 | .gpiomask = 0x008007, |
2407 | .gpiomux = { 0, 0x000001,0,0 }, | 2341 | .gpiomux = { 0, 0x000001,0,0 }, |
2408 | .needs_tvaudio = 1, | ||
2409 | .has_radio = 1, | 2342 | .has_radio = 1, |
2410 | }, | 2343 | }, |
2411 | [BTTV_BOARD_TIBET_CS16] = { | 2344 | [BTTV_BOARD_TIBET_CS16] = { |
@@ -2518,7 +2451,6 @@ struct tvcard bttv_tvcards[] = { | |||
2518 | .muxsel = MUXSEL(2, 3, 1, 1), | 2451 | .muxsel = MUXSEL(2, 3, 1, 1), |
2519 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, | 2452 | .gpiomux = { 0x001e00, 0, 0x018000, 0x014000 }, |
2520 | .gpiomute = 0x002000, | 2453 | .gpiomute = 0x002000, |
2521 | .needs_tvaudio = 1, | ||
2522 | .pll = PLL_28, | 2454 | .pll = PLL_28, |
2523 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, | 2455 | .tuner_type = TUNER_YMEC_TVF66T5_B_DFF, |
2524 | .tuner_addr = 0xc1 >>1, | 2456 | .tuner_addr = 0xc1 >>1, |
@@ -2534,7 +2466,6 @@ struct tvcard bttv_tvcards[] = { | |||
2534 | .muxsel = MUXSEL(2, 3, 1, 1), | 2466 | .muxsel = MUXSEL(2, 3, 1, 1), |
2535 | .gpiomux = { 0, 1, 2, 2 }, | 2467 | .gpiomux = { 0, 1, 2, 2 }, |
2536 | .gpiomute = 3, | 2468 | .gpiomute = 3, |
2537 | .needs_tvaudio = 0, | ||
2538 | .pll = PLL_28, | 2469 | .pll = PLL_28, |
2539 | .tuner_type = TUNER_TENA_9533_DI, | 2470 | .tuner_type = TUNER_TENA_9533_DI, |
2540 | .tuner_addr = ADDR_UNSET, | 2471 | .tuner_addr = ADDR_UNSET, |
@@ -2615,7 +2546,6 @@ struct tvcard bttv_tvcards[] = { | |||
2615 | .muxsel = MUXSEL(2, 3, 1, 1), | 2546 | .muxsel = MUXSEL(2, 3, 1, 1), |
2616 | .gpiomux = { 2, 0, 0, 0 }, | 2547 | .gpiomux = { 2, 0, 0, 0 }, |
2617 | .gpiomute = 1, | 2548 | .gpiomute = 1, |
2618 | .needs_tvaudio = 1, | ||
2619 | .pll = PLL_28, | 2549 | .pll = PLL_28, |
2620 | .tuner_type = TUNER_PHILIPS_NTSC, | 2550 | .tuner_type = TUNER_PHILIPS_NTSC, |
2621 | .tuner_addr = ADDR_UNSET, | 2551 | .tuner_addr = ADDR_UNSET, |
@@ -2714,7 +2644,6 @@ struct tvcard bttv_tvcards[] = { | |||
2714 | .muxsel = MUXSEL(2, 3, 1, 1), | 2644 | .muxsel = MUXSEL(2, 3, 1, 1), |
2715 | .gpiomux = { 0x20001,0x10001, 0, 0 }, | 2645 | .gpiomux = { 0x20001,0x10001, 0, 0 }, |
2716 | .gpiomute = 10, | 2646 | .gpiomute = 10, |
2717 | .needs_tvaudio = 1, | ||
2718 | .pll = PLL_28, | 2647 | .pll = PLL_28, |
2719 | .tuner_type = TUNER_PHILIPS_PAL_I, | 2648 | .tuner_type = TUNER_PHILIPS_PAL_I, |
2720 | .tuner_addr = ADDR_UNSET, | 2649 | .tuner_addr = ADDR_UNSET, |
@@ -2746,7 +2675,6 @@ struct tvcard bttv_tvcards[] = { | |||
2746 | .muxsel = MUXSEL(2, 3, 1, 1), | 2675 | .muxsel = MUXSEL(2, 3, 1, 1), |
2747 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ | 2676 | .gpiomux = { 0, 1, 2, 2 }, /* CONTVFMi */ |
2748 | .gpiomute = 3, /* CONTVFMi */ | 2677 | .gpiomute = 3, /* CONTVFMi */ |
2749 | .needs_tvaudio = 0, | ||
2750 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ | 2678 | .tuner_type = TUNER_PHILIPS_FM1216ME_MK3, /* TCL MK3 */ |
2751 | .tuner_addr = ADDR_UNSET, | 2679 | .tuner_addr = ADDR_UNSET, |
2752 | .pll = PLL_28, | 2680 | .pll = PLL_28, |
@@ -2785,7 +2713,6 @@ struct tvcard bttv_tvcards[] = { | |||
2785 | .gpiomask = 0x00, | 2713 | .gpiomask = 0x00, |
2786 | .muxsel = MUXSEL(0, 2, 3, 1), | 2714 | .muxsel = MUXSEL(0, 2, 3, 1), |
2787 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2715 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2788 | .needs_tvaudio = 0, | ||
2789 | .pll = PLL_28, | 2716 | .pll = PLL_28, |
2790 | .tuner_type = TUNER_ABSENT, | 2717 | .tuner_type = TUNER_ABSENT, |
2791 | .tuner_addr = ADDR_UNSET, | 2718 | .tuner_addr = ADDR_UNSET, |
@@ -2799,7 +2726,6 @@ struct tvcard bttv_tvcards[] = { | |||
2799 | .gpiomask = 0x00, | 2726 | .gpiomask = 0x00, |
2800 | .muxsel = MUXSEL(2, 3, 1), | 2727 | .muxsel = MUXSEL(2, 3, 1), |
2801 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2728 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2802 | .needs_tvaudio = 0, | ||
2803 | .pll = PLL_28, | 2729 | .pll = PLL_28, |
2804 | .tuner_type = TUNER_ABSENT, | 2730 | .tuner_type = TUNER_ABSENT, |
2805 | .tuner_addr = ADDR_UNSET, | 2731 | .tuner_addr = ADDR_UNSET, |
@@ -2813,7 +2739,6 @@ struct tvcard bttv_tvcards[] = { | |||
2813 | .gpiomask = 0x00, | 2739 | .gpiomask = 0x00, |
2814 | .muxsel = MUXSEL(3, 2, 1), | 2740 | .muxsel = MUXSEL(3, 2, 1), |
2815 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ | 2741 | .gpiomux = { 0, 0, 0, 0 }, /* card has no audio */ |
2816 | .needs_tvaudio = 0, | ||
2817 | .pll = PLL_28, | 2742 | .pll = PLL_28, |
2818 | .tuner_type = TUNER_ABSENT, | 2743 | .tuner_type = TUNER_ABSENT, |
2819 | .tuner_addr = ADDR_UNSET, | 2744 | .tuner_addr = ADDR_UNSET, |
@@ -2877,7 +2802,6 @@ struct tvcard bttv_tvcards[] = { | |||
2877 | .gpiomask = 0, | 2802 | .gpiomask = 0, |
2878 | .muxsel = MUXSEL(2, 3), | 2803 | .muxsel = MUXSEL(2, 3), |
2879 | .gpiomux = { 0 }, | 2804 | .gpiomux = { 0 }, |
2880 | .needs_tvaudio = 0, | ||
2881 | .no_msp34xx = 1, | 2805 | .no_msp34xx = 1, |
2882 | .pll = PLL_28, | 2806 | .pll = PLL_28, |
2883 | .tuner_type = TUNER_ABSENT, | 2807 | .tuner_type = TUNER_ABSENT, |
@@ -3649,7 +3573,7 @@ void __devinit bttv_init_tuner(struct bttv *btv) | |||
3649 | struct tuner_setup tun_setup; | 3573 | struct tuner_setup tun_setup; |
3650 | 3574 | ||
3651 | /* Load tuner module before issuing tuner config call! */ | 3575 | /* Load tuner module before issuing tuner config call! */ |
3652 | if (bttv_tvcards[btv->c.type].has_radio) | 3576 | if (btv->has_radio) |
3653 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, | 3577 | v4l2_i2c_new_subdev(&btv->c.v4l2_dev, |
3654 | &btv->c.i2c_adap, "tuner", | 3578 | &btv->c.i2c_adap, "tuner", |
3655 | 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO)); | 3579 | 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO)); |
@@ -3664,7 +3588,7 @@ void __devinit bttv_init_tuner(struct bttv *btv) | |||
3664 | tun_setup.type = btv->tuner_type; | 3588 | tun_setup.type = btv->tuner_type; |
3665 | tun_setup.addr = addr; | 3589 | tun_setup.addr = addr; |
3666 | 3590 | ||
3667 | if (bttv_tvcards[btv->c.type].has_radio) | 3591 | if (btv->has_radio) |
3668 | tun_setup.mode_mask |= T_RADIO; | 3592 | tun_setup.mode_mask |= T_RADIO; |
3669 | 3593 | ||
3670 | bttv_call_all(btv, tuner, s_type_addr, &tun_setup); | 3594 | bttv_call_all(btv, tuner, s_type_addr, &tun_setup); |
@@ -3724,6 +3648,10 @@ static void __devinit hauppauge_eeprom(struct bttv *btv) | |||
3724 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); | 3648 | bttv_tvcards[BTTV_BOARD_HAUPPAUGE_IMPACTVCB].name); |
3725 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; | 3649 | btv->c.type = BTTV_BOARD_HAUPPAUGE_IMPACTVCB; |
3726 | } | 3650 | } |
3651 | |||
3652 | /* The 61334 needs the msp3410 to do the radio demod to get sound */ | ||
3653 | if (tv.model == 61334) | ||
3654 | btv->radio_uses_msp_demodulator = 1; | ||
3727 | } | 3655 | } |
3728 | 3656 | ||
3729 | static int terratec_active_radio_upgrade(struct bttv *btv) | 3657 | static int terratec_active_radio_upgrade(struct bttv *btv) |
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index a9cfb0f4be48..ff7a589d8e0f 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -1218,6 +1218,11 @@ audio_mux(struct bttv *btv, int input, int mute) | |||
1218 | For now this is sufficient. */ | 1218 | For now this is sufficient. */ |
1219 | switch (input) { | 1219 | switch (input) { |
1220 | case TVAUDIO_INPUT_RADIO: | 1220 | case TVAUDIO_INPUT_RADIO: |
1221 | /* Some boards need the msp do to the radio demod */ | ||
1222 | if (btv->radio_uses_msp_demodulator) { | ||
1223 | in = MSP_INPUT_DEFAULT; | ||
1224 | break; | ||
1225 | } | ||
1221 | in = MSP_INPUT(MSP_IN_SCART2, MSP_IN_TUNER1, | 1226 | in = MSP_INPUT(MSP_IN_SCART2, MSP_IN_TUNER1, |
1222 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART); | 1227 | MSP_DSP_IN_SCART, MSP_DSP_IN_SCART); |
1223 | break; | 1228 | break; |
diff --git a/drivers/media/video/bt8xx/bttv.h b/drivers/media/video/bt8xx/bttv.h index c5171619ac79..acfe2f3b92d9 100644 --- a/drivers/media/video/bt8xx/bttv.h +++ b/drivers/media/video/bt8xx/bttv.h | |||
@@ -236,7 +236,6 @@ struct tvcard { | |||
236 | /* i2c audio flags */ | 236 | /* i2c audio flags */ |
237 | unsigned int no_msp34xx:1; | 237 | unsigned int no_msp34xx:1; |
238 | unsigned int no_tda7432:1; | 238 | unsigned int no_tda7432:1; |
239 | unsigned int needs_tvaudio:1; | ||
240 | unsigned int msp34xx_alt:1; | 239 | unsigned int msp34xx_alt:1; |
241 | /* Note: currently no card definition needs to mark the presence | 240 | /* Note: currently no card definition needs to mark the presence |
242 | of a RDS saa6588 chip. If this is ever needed, then add a new | 241 | of a RDS saa6588 chip. If this is ever needed, then add a new |
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index db943a8d580d..70fd4f23f605 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
@@ -440,6 +440,7 @@ struct bttv { | |||
440 | /* radio data/state */ | 440 | /* radio data/state */ |
441 | int has_radio; | 441 | int has_radio; |
442 | int radio_user; | 442 | int radio_user; |
443 | int radio_uses_msp_demodulator; | ||
443 | 444 | ||
444 | /* miro/pinnacle + Aimslab VHX | 445 | /* miro/pinnacle + Aimslab VHX |
445 | philips matchbox (tea5757 radio tuner) support */ | 446 | philips matchbox (tea5757 radio tuner) support */ |
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c index 2520219f01ba..5b75a64b199b 100644 --- a/drivers/media/video/bw-qcam.c +++ b/drivers/media/video/bw-qcam.c | |||
@@ -607,8 +607,9 @@ static long qc_capture(struct qcam *q, char __user *buf, unsigned long len) | |||
607 | } | 607 | } |
608 | o = i * pixels_per_line + pixels_read + k; | 608 | o = i * pixels_per_line + pixels_read + k; |
609 | if (o < len) { | 609 | if (o < len) { |
610 | u8 ch = invert - buffer[k]; | ||
610 | got++; | 611 | got++; |
611 | put_user((invert - buffer[k]) << shift, buf + o); | 612 | put_user(ch << shift, buf + o); |
612 | } | 613 | } |
613 | } | 614 | } |
614 | pixels_read += bytes; | 615 | pixels_read += bytes; |
@@ -648,8 +649,8 @@ static int qcam_querycap(struct file *file, void *priv, | |||
648 | struct qcam *qcam = video_drvdata(file); | 649 | struct qcam *qcam = video_drvdata(file); |
649 | 650 | ||
650 | strlcpy(vcap->driver, qcam->v4l2_dev.name, sizeof(vcap->driver)); | 651 | strlcpy(vcap->driver, qcam->v4l2_dev.name, sizeof(vcap->driver)); |
651 | strlcpy(vcap->card, "B&W Quickcam", sizeof(vcap->card)); | 652 | strlcpy(vcap->card, "Connectix B&W Quickcam", sizeof(vcap->card)); |
652 | strlcpy(vcap->bus_info, "parport", sizeof(vcap->bus_info)); | 653 | strlcpy(vcap->bus_info, qcam->pport->name, sizeof(vcap->bus_info)); |
653 | vcap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE; | 654 | vcap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE; |
654 | vcap->capabilities = vcap->device_caps | V4L2_CAP_DEVICE_CAPS; | 655 | vcap->capabilities = vcap->device_caps | V4L2_CAP_DEVICE_CAPS; |
655 | return 0; | 656 | return 0; |
@@ -688,8 +689,8 @@ static int qcam_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f | |||
688 | pix->height = qcam->height / qcam->transfer_scale; | 689 | pix->height = qcam->height / qcam->transfer_scale; |
689 | pix->pixelformat = (qcam->bpp == 4) ? V4L2_PIX_FMT_Y4 : V4L2_PIX_FMT_Y6; | 690 | pix->pixelformat = (qcam->bpp == 4) ? V4L2_PIX_FMT_Y4 : V4L2_PIX_FMT_Y6; |
690 | pix->field = V4L2_FIELD_NONE; | 691 | pix->field = V4L2_FIELD_NONE; |
691 | pix->bytesperline = qcam->width; | 692 | pix->bytesperline = pix->width; |
692 | pix->sizeimage = qcam->width * qcam->height; | 693 | pix->sizeimage = pix->width * pix->height; |
693 | /* Just a guess */ | 694 | /* Just a guess */ |
694 | pix->colorspace = V4L2_COLORSPACE_SRGB; | 695 | pix->colorspace = V4L2_COLORSPACE_SRGB; |
695 | return 0; | 696 | return 0; |
@@ -757,7 +758,7 @@ static int qcam_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdes | |||
757 | "4-Bit Monochrome", V4L2_PIX_FMT_Y4, | 758 | "4-Bit Monochrome", V4L2_PIX_FMT_Y4, |
758 | { 0, 0, 0, 0 } | 759 | { 0, 0, 0, 0 } |
759 | }, | 760 | }, |
760 | { 0, 0, 0, | 761 | { 1, 0, 0, |
761 | "6-Bit Monochrome", V4L2_PIX_FMT_Y6, | 762 | "6-Bit Monochrome", V4L2_PIX_FMT_Y6, |
762 | { 0, 0, 0, 0 } | 763 | { 0, 0, 0, 0 } |
763 | }, | 764 | }, |
@@ -772,6 +773,25 @@ static int qcam_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdes | |||
772 | return 0; | 773 | return 0; |
773 | } | 774 | } |
774 | 775 | ||
776 | static int qcam_enum_framesizes(struct file *file, void *fh, | ||
777 | struct v4l2_frmsizeenum *fsize) | ||
778 | { | ||
779 | static const struct v4l2_frmsize_discrete sizes[] = { | ||
780 | { 80, 60 }, | ||
781 | { 160, 120 }, | ||
782 | { 320, 240 }, | ||
783 | }; | ||
784 | |||
785 | if (fsize->index > 2) | ||
786 | return -EINVAL; | ||
787 | if (fsize->pixel_format != V4L2_PIX_FMT_Y4 && | ||
788 | fsize->pixel_format != V4L2_PIX_FMT_Y6) | ||
789 | return -EINVAL; | ||
790 | fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; | ||
791 | fsize->discrete = sizes[fsize->index]; | ||
792 | return 0; | ||
793 | } | ||
794 | |||
775 | static ssize_t qcam_read(struct file *file, char __user *buf, | 795 | static ssize_t qcam_read(struct file *file, char __user *buf, |
776 | size_t count, loff_t *ppos) | 796 | size_t count, loff_t *ppos) |
777 | { | 797 | { |
@@ -795,6 +815,11 @@ static ssize_t qcam_read(struct file *file, char __user *buf, | |||
795 | return len; | 815 | return len; |
796 | } | 816 | } |
797 | 817 | ||
818 | static unsigned int qcam_poll(struct file *filp, poll_table *wait) | ||
819 | { | ||
820 | return v4l2_ctrl_poll(filp, wait) | POLLIN | POLLRDNORM; | ||
821 | } | ||
822 | |||
798 | static int qcam_s_ctrl(struct v4l2_ctrl *ctrl) | 823 | static int qcam_s_ctrl(struct v4l2_ctrl *ctrl) |
799 | { | 824 | { |
800 | struct qcam *qcam = | 825 | struct qcam *qcam = |
@@ -828,7 +853,7 @@ static const struct v4l2_file_operations qcam_fops = { | |||
828 | .owner = THIS_MODULE, | 853 | .owner = THIS_MODULE, |
829 | .open = v4l2_fh_open, | 854 | .open = v4l2_fh_open, |
830 | .release = v4l2_fh_release, | 855 | .release = v4l2_fh_release, |
831 | .poll = v4l2_ctrl_poll, | 856 | .poll = qcam_poll, |
832 | .unlocked_ioctl = video_ioctl2, | 857 | .unlocked_ioctl = video_ioctl2, |
833 | .read = qcam_read, | 858 | .read = qcam_read, |
834 | }; | 859 | }; |
@@ -839,6 +864,7 @@ static const struct v4l2_ioctl_ops qcam_ioctl_ops = { | |||
839 | .vidioc_s_input = qcam_s_input, | 864 | .vidioc_s_input = qcam_s_input, |
840 | .vidioc_enum_input = qcam_enum_input, | 865 | .vidioc_enum_input = qcam_enum_input, |
841 | .vidioc_enum_fmt_vid_cap = qcam_enum_fmt_vid_cap, | 866 | .vidioc_enum_fmt_vid_cap = qcam_enum_fmt_vid_cap, |
867 | .vidioc_enum_framesizes = qcam_enum_framesizes, | ||
842 | .vidioc_g_fmt_vid_cap = qcam_g_fmt_vid_cap, | 868 | .vidioc_g_fmt_vid_cap = qcam_g_fmt_vid_cap, |
843 | .vidioc_s_fmt_vid_cap = qcam_s_fmt_vid_cap, | 869 | .vidioc_s_fmt_vid_cap = qcam_s_fmt_vid_cap, |
844 | .vidioc_try_fmt_vid_cap = qcam_try_fmt_vid_cap, | 870 | .vidioc_try_fmt_vid_cap = qcam_try_fmt_vid_cap, |
@@ -864,9 +890,9 @@ static struct qcam *qcam_init(struct parport *port) | |||
864 | return NULL; | 890 | return NULL; |
865 | 891 | ||
866 | v4l2_dev = &qcam->v4l2_dev; | 892 | v4l2_dev = &qcam->v4l2_dev; |
867 | strlcpy(v4l2_dev->name, "bw-qcam", sizeof(v4l2_dev->name)); | 893 | snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "bw-qcam%d", num_cams); |
868 | 894 | ||
869 | if (v4l2_device_register(NULL, v4l2_dev) < 0) { | 895 | if (v4l2_device_register(port->dev, v4l2_dev) < 0) { |
870 | v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); | 896 | v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); |
871 | kfree(qcam); | 897 | kfree(qcam); |
872 | return NULL; | 898 | return NULL; |
@@ -886,7 +912,7 @@ static struct qcam *qcam_init(struct parport *port) | |||
886 | return NULL; | 912 | return NULL; |
887 | } | 913 | } |
888 | qcam->pport = port; | 914 | qcam->pport = port; |
889 | qcam->pdev = parport_register_device(port, "bw-qcam", NULL, NULL, | 915 | qcam->pdev = parport_register_device(port, v4l2_dev->name, NULL, NULL, |
890 | NULL, 0, NULL); | 916 | NULL, 0, NULL); |
891 | if (qcam->pdev == NULL) { | 917 | if (qcam->pdev == NULL) { |
892 | v4l2_err(v4l2_dev, "couldn't register for %s.\n", port->name); | 918 | v4l2_err(v4l2_dev, "couldn't register for %s.\n", port->name); |
@@ -975,6 +1001,7 @@ static int init_bwqcam(struct parport *port) | |||
975 | return -ENODEV; | 1001 | return -ENODEV; |
976 | } | 1002 | } |
977 | qc_calibrate(qcam); | 1003 | qc_calibrate(qcam); |
1004 | v4l2_ctrl_handler_setup(&qcam->hdl); | ||
978 | 1005 | ||
979 | parport_release(qcam->pdev); | 1006 | parport_release(qcam->pdev); |
980 | 1007 | ||
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index b55d57cc1a1c..7e5ffd6f5178 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -838,10 +838,10 @@ static int cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev, | |||
838 | } | 838 | } |
839 | 839 | ||
840 | CX18_DEBUG_INFO("cx%d (rev %d) at %02x:%02x.%x, " | 840 | CX18_DEBUG_INFO("cx%d (rev %d) at %02x:%02x.%x, " |
841 | "irq: %d, latency: %d, memory: 0x%lx\n", | 841 | "irq: %d, latency: %d, memory: 0x%llx\n", |
842 | cx->pci_dev->device, cx->card_rev, pci_dev->bus->number, | 842 | cx->pci_dev->device, cx->card_rev, pci_dev->bus->number, |
843 | PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn), | 843 | PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn), |
844 | cx->pci_dev->irq, pci_latency, (unsigned long)cx->base_addr); | 844 | cx->pci_dev->irq, pci_latency, (u64)cx->base_addr); |
845 | 845 | ||
846 | return 0; | 846 | return 0; |
847 | } | 847 | } |
@@ -938,7 +938,7 @@ static int __devinit cx18_probe(struct pci_dev *pci_dev, | |||
938 | if (retval) | 938 | if (retval) |
939 | goto err; | 939 | goto err; |
940 | 940 | ||
941 | CX18_DEBUG_INFO("base addr: 0x%08x\n", cx->base_addr); | 941 | CX18_DEBUG_INFO("base addr: 0x%llx\n", (u64)cx->base_addr); |
942 | 942 | ||
943 | /* PCI Device Setup */ | 943 | /* PCI Device Setup */ |
944 | retval = cx18_setup_pci(cx, pci_dev, pci_id); | 944 | retval = cx18_setup_pci(cx, pci_dev, pci_id); |
@@ -946,8 +946,8 @@ static int __devinit cx18_probe(struct pci_dev *pci_dev, | |||
946 | goto free_workqueues; | 946 | goto free_workqueues; |
947 | 947 | ||
948 | /* map io memory */ | 948 | /* map io memory */ |
949 | CX18_DEBUG_INFO("attempting ioremap at 0x%08x len 0x%08x\n", | 949 | CX18_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n", |
950 | cx->base_addr + CX18_MEM_OFFSET, CX18_MEM_SIZE); | 950 | (u64)cx->base_addr + CX18_MEM_OFFSET, CX18_MEM_SIZE); |
951 | cx->enc_mem = ioremap_nocache(cx->base_addr + CX18_MEM_OFFSET, | 951 | cx->enc_mem = ioremap_nocache(cx->base_addr + CX18_MEM_OFFSET, |
952 | CX18_MEM_SIZE); | 952 | CX18_MEM_SIZE); |
953 | if (!cx->enc_mem) { | 953 | if (!cx->enc_mem) { |
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h index 7a37e0ee136f..2767c64df0c8 100644 --- a/drivers/media/video/cx18/cx18-driver.h +++ b/drivers/media/video/cx18/cx18-driver.h | |||
@@ -622,7 +622,7 @@ struct cx18 { | |||
622 | unique ID. Starts at 1, so 0 can be used as | 622 | unique ID. Starts at 1, so 0 can be used as |
623 | uninitialized value in the stream->id. */ | 623 | uninitialized value in the stream->id. */ |
624 | 624 | ||
625 | u32 base_addr; | 625 | resource_size_t base_addr; |
626 | 626 | ||
627 | u8 card_rev; | 627 | u8 card_rev; |
628 | void __iomem *enc_mem, *reg_mem; | 628 | void __iomem *enc_mem, *reg_mem; |
diff --git a/drivers/media/video/cx18/cx18-firmware.c b/drivers/media/video/cx18/cx18-firmware.c index 1b3fb502e6be..b85c292a849a 100644 --- a/drivers/media/video/cx18/cx18-firmware.c +++ b/drivers/media/video/cx18/cx18-firmware.c | |||
@@ -164,8 +164,13 @@ static int load_apu_fw_direct(const char *fn, u8 __iomem *dst, struct cx18 *cx, | |||
164 | 164 | ||
165 | apu_version = (vers[0] << 24) | (vers[4] << 16) | vers[32]; | 165 | apu_version = (vers[0] << 24) | (vers[4] << 16) | vers[32]; |
166 | while (offset + sizeof(seghdr) < fw->size) { | 166 | while (offset + sizeof(seghdr) < fw->size) { |
167 | /* TODO: byteswapping */ | 167 | const u32 *shptr = src + offset / 4; |
168 | memcpy(&seghdr, src + offset / 4, sizeof(seghdr)); | 168 | |
169 | seghdr.sync1 = le32_to_cpu(shptr[0]); | ||
170 | seghdr.sync2 = le32_to_cpu(shptr[1]); | ||
171 | seghdr.addr = le32_to_cpu(shptr[2]); | ||
172 | seghdr.size = le32_to_cpu(shptr[3]); | ||
173 | |||
169 | offset += sizeof(seghdr); | 174 | offset += sizeof(seghdr); |
170 | if (seghdr.sync1 != APU_ROM_SYNC1 || | 175 | if (seghdr.sync1 != APU_ROM_SYNC1 || |
171 | seghdr.sync2 != APU_ROM_SYNC2) { | 176 | seghdr.sync2 != APU_ROM_SYNC2) { |
diff --git a/drivers/media/video/cx18/cx18-mailbox.c b/drivers/media/video/cx18/cx18-mailbox.c index ed8118390b02..eabf00c6351b 100644 --- a/drivers/media/video/cx18/cx18-mailbox.c +++ b/drivers/media/video/cx18/cx18-mailbox.c | |||
@@ -434,6 +434,7 @@ static int epu_dma_done_irq(struct cx18 *cx, struct cx18_in_work_order *order) | |||
434 | { | 434 | { |
435 | u32 handle, mdl_ack_offset, mdl_ack_count; | 435 | u32 handle, mdl_ack_offset, mdl_ack_count; |
436 | struct cx18_mailbox *mb; | 436 | struct cx18_mailbox *mb; |
437 | int i; | ||
437 | 438 | ||
438 | mb = &order->mb; | 439 | mb = &order->mb; |
439 | handle = mb->args[0]; | 440 | handle = mb->args[0]; |
@@ -447,8 +448,9 @@ static int epu_dma_done_irq(struct cx18 *cx, struct cx18_in_work_order *order) | |||
447 | return -1; | 448 | return -1; |
448 | } | 449 | } |
449 | 450 | ||
450 | cx18_memcpy_fromio(cx, order->mdl_ack, cx->enc_mem + mdl_ack_offset, | 451 | for (i = 0; i < sizeof(struct cx18_mdl_ack) * mdl_ack_count; i += sizeof(u32)) |
451 | sizeof(struct cx18_mdl_ack) * mdl_ack_count); | 452 | ((u32 *)order->mdl_ack)[i / sizeof(u32)] = |
453 | cx18_readl(cx, cx->enc_mem + mdl_ack_offset + i); | ||
452 | 454 | ||
453 | if ((order->flags & CX18_F_EWO_MB_STALE) == 0) | 455 | if ((order->flags & CX18_F_EWO_MB_STALE) == 0) |
454 | mb_ack_irq(cx, order); | 456 | mb_ack_irq(cx, order); |
@@ -538,6 +540,7 @@ void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu) | |||
538 | struct cx18_mailbox *order_mb; | 540 | struct cx18_mailbox *order_mb; |
539 | struct cx18_in_work_order *order; | 541 | struct cx18_in_work_order *order; |
540 | int submit; | 542 | int submit; |
543 | int i; | ||
541 | 544 | ||
542 | switch (rpu) { | 545 | switch (rpu) { |
543 | case CPU: | 546 | case CPU: |
@@ -562,10 +565,12 @@ void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu) | |||
562 | order_mb = &order->mb; | 565 | order_mb = &order->mb; |
563 | 566 | ||
564 | /* mb->cmd and mb->args[0] through mb->args[2] */ | 567 | /* mb->cmd and mb->args[0] through mb->args[2] */ |
565 | cx18_memcpy_fromio(cx, &order_mb->cmd, &mb->cmd, 4 * sizeof(u32)); | 568 | for (i = 0; i < 4; i++) |
569 | (&order_mb->cmd)[i] = cx18_readl(cx, &mb->cmd + i); | ||
570 | |||
566 | /* mb->request and mb->ack. N.B. we want to read mb->ack last */ | 571 | /* mb->request and mb->ack. N.B. we want to read mb->ack last */ |
567 | cx18_memcpy_fromio(cx, &order_mb->request, &mb->request, | 572 | for (i = 0; i < 2; i++) |
568 | 2 * sizeof(u32)); | 573 | (&order_mb->request)[i] = cx18_readl(cx, &mb->request + i); |
569 | 574 | ||
570 | if (order_mb->request == order_mb->ack) { | 575 | if (order_mb->request == order_mb->ack) { |
571 | CX18_DEBUG_WARN("Possibly falling behind: %s self-ack'ed our " | 576 | CX18_DEBUG_WARN("Possibly falling behind: %s self-ack'ed our " |
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index e46446a449c0..ed7b2aa1ed83 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -471,7 +471,7 @@ static int blackbird_load_firmware(struct cx8802_dev *dev) | |||
471 | dprintk(1,"Loading firmware ...\n"); | 471 | dprintk(1,"Loading firmware ...\n"); |
472 | dataptr = (u32*)firmware->data; | 472 | dataptr = (u32*)firmware->data; |
473 | for (i = 0; i < (firmware->size >> 2); i++) { | 473 | for (i = 0; i < (firmware->size >> 2); i++) { |
474 | value = *dataptr; | 474 | value = le32_to_cpu(*dataptr); |
475 | checksum += ~value; | 475 | checksum += ~value; |
476 | memory_write(dev->core, i, value); | 476 | memory_write(dev->core, i, value); |
477 | dataptr++; | 477 | dataptr++; |
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 20a7e24de6fb..92da7c28b6f0 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -974,6 +974,7 @@ struct em28xx_board em28xx_boards[] = { | |||
974 | [EM2884_BOARD_CINERGY_HTC_STICK] = { | 974 | [EM2884_BOARD_CINERGY_HTC_STICK] = { |
975 | .name = "Terratec Cinergy HTC Stick", | 975 | .name = "Terratec Cinergy HTC Stick", |
976 | .has_dvb = 1, | 976 | .has_dvb = 1, |
977 | .ir_codes = RC_MAP_NEC_TERRATEC_CINERGY_XS, | ||
977 | #if 0 | 978 | #if 0 |
978 | .tuner_type = TUNER_PHILIPS_TDA8290, | 979 | .tuner_type = TUNER_PHILIPS_TDA8290, |
979 | .tuner_addr = 0x41, | 980 | .tuner_addr = 0x41, |
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index fce5f7680c99..5e30c4f3f248 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -527,6 +527,8 @@ static int em28xx_ir_init(struct em28xx *dev) | |||
527 | 527 | ||
528 | if (dev->board.ir_codes == NULL) { | 528 | if (dev->board.ir_codes == NULL) { |
529 | /* No remote control support */ | 529 | /* No remote control support */ |
530 | em28xx_warn("Remote control support is not available for " | ||
531 | "this card.\n"); | ||
530 | return 0; | 532 | return 0; |
531 | } | 533 | } |
532 | 534 | ||
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 137166d73945..31721eadc597 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -1653,7 +1653,7 @@ static int vidioc_streamoff(struct file *file, void *priv, | |||
1653 | enum v4l2_buf_type buf_type) | 1653 | enum v4l2_buf_type buf_type) |
1654 | { | 1654 | { |
1655 | struct gspca_dev *gspca_dev = video_drvdata(file); | 1655 | struct gspca_dev *gspca_dev = video_drvdata(file); |
1656 | int ret; | 1656 | int i, ret; |
1657 | 1657 | ||
1658 | if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | 1658 | if (buf_type != V4L2_BUF_TYPE_VIDEO_CAPTURE) |
1659 | return -EINVAL; | 1659 | return -EINVAL; |
@@ -1678,6 +1678,8 @@ static int vidioc_streamoff(struct file *file, void *priv, | |||
1678 | wake_up_interruptible(&gspca_dev->wq); | 1678 | wake_up_interruptible(&gspca_dev->wq); |
1679 | 1679 | ||
1680 | /* empty the transfer queues */ | 1680 | /* empty the transfer queues */ |
1681 | for (i = 0; i < gspca_dev->nframes; i++) | ||
1682 | gspca_dev->frame[i].v4l2_buf.flags &= ~BUF_ALL_FLAGS; | ||
1681 | atomic_set(&gspca_dev->fr_q, 0); | 1683 | atomic_set(&gspca_dev->fr_q, 0); |
1682 | atomic_set(&gspca_dev->fr_i, 0); | 1684 | atomic_set(&gspca_dev->fr_i, 0); |
1683 | gspca_dev->fr_o = 0; | 1685 | gspca_dev->fr_o = 0; |
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index b5acb1e4b4e7..80c81dd6d68b 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -96,7 +96,7 @@ static void setbrightness(struct gspca_dev *gspca_dev); | |||
96 | static void setcontrast(struct gspca_dev *gspca_dev); | 96 | static void setcontrast(struct gspca_dev *gspca_dev); |
97 | static void setgain(struct gspca_dev *gspca_dev); | 97 | static void setgain(struct gspca_dev *gspca_dev); |
98 | static void setexposure(struct gspca_dev *gspca_dev); | 98 | static void setexposure(struct gspca_dev *gspca_dev); |
99 | static int sd_setagc(struct gspca_dev *gspca_dev, __s32 val); | 99 | static void setagc(struct gspca_dev *gspca_dev); |
100 | static void setawb(struct gspca_dev *gspca_dev); | 100 | static void setawb(struct gspca_dev *gspca_dev); |
101 | static void setaec(struct gspca_dev *gspca_dev); | 101 | static void setaec(struct gspca_dev *gspca_dev); |
102 | static void setsharpness(struct gspca_dev *gspca_dev); | 102 | static void setsharpness(struct gspca_dev *gspca_dev); |
@@ -189,7 +189,7 @@ static const struct ctrl sd_ctrls[] = { | |||
189 | .step = 1, | 189 | .step = 1, |
190 | .default_value = 1, | 190 | .default_value = 1, |
191 | }, | 191 | }, |
192 | .set = sd_setagc | 192 | .set_control = setagc |
193 | }, | 193 | }, |
194 | [AWB] = { | 194 | [AWB] = { |
195 | { | 195 | { |
@@ -851,6 +851,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev) | |||
851 | int i; | 851 | int i; |
852 | 852 | ||
853 | for (i = 0; i < 5; i++) { | 853 | for (i = 0; i < 5; i++) { |
854 | msleep(10); | ||
854 | data = ov534_reg_read(gspca_dev, OV534_REG_STATUS); | 855 | data = ov534_reg_read(gspca_dev, OV534_REG_STATUS); |
855 | 856 | ||
856 | switch (data) { | 857 | switch (data) { |
@@ -1242,10 +1243,6 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
1242 | 1243 | ||
1243 | cam->ctrls = sd->ctrls; | 1244 | cam->ctrls = sd->ctrls; |
1244 | 1245 | ||
1245 | /* the auto white balance control works only when auto gain is set */ | ||
1246 | if (sd_ctrls[AGC].qctrl.default_value == 0) | ||
1247 | gspca_dev->ctrl_inac |= (1 << AWB); | ||
1248 | |||
1249 | cam->cam_mode = ov772x_mode; | 1246 | cam->cam_mode = ov772x_mode; |
1250 | cam->nmodes = ARRAY_SIZE(ov772x_mode); | 1247 | cam->nmodes = ARRAY_SIZE(ov772x_mode); |
1251 | 1248 | ||
@@ -1486,29 +1483,6 @@ scan_next: | |||
1486 | } while (remaining_len > 0); | 1483 | } while (remaining_len > 0); |
1487 | } | 1484 | } |
1488 | 1485 | ||
1489 | static int sd_setagc(struct gspca_dev *gspca_dev, __s32 val) | ||
1490 | { | ||
1491 | struct sd *sd = (struct sd *) gspca_dev; | ||
1492 | |||
1493 | sd->ctrls[AGC].val = val; | ||
1494 | |||
1495 | /* the auto white balance control works only | ||
1496 | * when auto gain is set */ | ||
1497 | if (val) { | ||
1498 | gspca_dev->ctrl_inac &= ~(1 << AWB); | ||
1499 | } else { | ||
1500 | gspca_dev->ctrl_inac |= (1 << AWB); | ||
1501 | if (sd->ctrls[AWB].val) { | ||
1502 | sd->ctrls[AWB].val = 0; | ||
1503 | if (gspca_dev->streaming) | ||
1504 | setawb(gspca_dev); | ||
1505 | } | ||
1506 | } | ||
1507 | if (gspca_dev->streaming) | ||
1508 | setagc(gspca_dev); | ||
1509 | return gspca_dev->usb_err; | ||
1510 | } | ||
1511 | |||
1512 | static int sd_querymenu(struct gspca_dev *gspca_dev, | 1486 | static int sd_querymenu(struct gspca_dev *gspca_dev, |
1513 | struct v4l2_querymenu *menu) | 1487 | struct v4l2_querymenu *menu) |
1514 | { | 1488 | { |
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c index b5797308a39b..1fd41f0d2e95 100644 --- a/drivers/media/video/gspca/ov534_9.c +++ b/drivers/media/video/gspca/ov534_9.c | |||
@@ -1008,6 +1008,7 @@ static int sccb_check_status(struct gspca_dev *gspca_dev) | |||
1008 | int i; | 1008 | int i; |
1009 | 1009 | ||
1010 | for (i = 0; i < 5; i++) { | 1010 | for (i = 0; i < 5; i++) { |
1011 | msleep(10); | ||
1011 | data = reg_r(gspca_dev, OV534_REG_STATUS); | 1012 | data = reg_r(gspca_dev, OV534_REG_STATUS); |
1012 | 1013 | ||
1013 | switch (data) { | 1014 | switch (data) { |
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 2cb7d95f7be7..115da169f32a 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -418,7 +418,7 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
418 | struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; | 418 | struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; |
419 | 419 | ||
420 | gspca_dev->vdev.ctrl_handler = hdl; | 420 | gspca_dev->vdev.ctrl_handler = hdl; |
421 | v4l2_ctrl_handler_init(hdl, 4); | 421 | v4l2_ctrl_handler_init(hdl, 5); |
422 | 422 | ||
423 | sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 423 | sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
424 | V4L2_CID_CONTRAST, 0, 15, 1, 7); | 424 | V4L2_CID_CONTRAST, 0, 15, 1, 7); |
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index ad098202d7f0..6c31e46a1fd2 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -1761,7 +1761,6 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
1761 | V4L2_CID_SATURATION, 0, 255, 1, 127); | 1761 | V4L2_CID_SATURATION, 0, 255, 1, 127); |
1762 | sd->hue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 1762 | sd->hue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
1763 | V4L2_CID_HUE, -180, 180, 1, 0); | 1763 | V4L2_CID_HUE, -180, 180, 1, 0); |
1764 | v4l2_ctrl_cluster(4, &sd->brightness); | ||
1765 | 1764 | ||
1766 | sd->gamma = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 1765 | sd->gamma = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
1767 | V4L2_CID_GAMMA, 0, 255, 1, 0x10); | 1766 | V4L2_CID_GAMMA, 0, 255, 1, 0x10); |
@@ -1770,7 +1769,6 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
1770 | V4L2_CID_BLUE_BALANCE, 0, 127, 1, 0x28); | 1769 | V4L2_CID_BLUE_BALANCE, 0, 127, 1, 0x28); |
1771 | sd->red = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 1770 | sd->red = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
1772 | V4L2_CID_RED_BALANCE, 0, 127, 1, 0x28); | 1771 | V4L2_CID_RED_BALANCE, 0, 127, 1, 0x28); |
1773 | v4l2_ctrl_cluster(2, &sd->blue); | ||
1774 | 1772 | ||
1775 | if (sd->sensor != SENSOR_OV9655 && sd->sensor != SENSOR_SOI968 && | 1773 | if (sd->sensor != SENSOR_OV9655 && sd->sensor != SENSOR_SOI968 && |
1776 | sd->sensor != SENSOR_OV7670 && sd->sensor != SENSOR_MT9M001 && | 1774 | sd->sensor != SENSOR_OV7670 && sd->sensor != SENSOR_MT9M001 && |
@@ -1779,7 +1777,6 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
1779 | V4L2_CID_HFLIP, 0, 1, 1, 0); | 1777 | V4L2_CID_HFLIP, 0, 1, 1, 0); |
1780 | sd->vflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 1778 | sd->vflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
1781 | V4L2_CID_VFLIP, 0, 1, 1, 0); | 1779 | V4L2_CID_VFLIP, 0, 1, 1, 0); |
1782 | v4l2_ctrl_cluster(2, &sd->hflip); | ||
1783 | } | 1780 | } |
1784 | 1781 | ||
1785 | if (sd->sensor != SENSOR_SOI968 && sd->sensor != SENSOR_MT9VPRB && | 1782 | if (sd->sensor != SENSOR_SOI968 && sd->sensor != SENSOR_MT9VPRB && |
@@ -1794,6 +1791,20 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
1794 | V4L2_CID_GAIN, 0, 28, 1, 0); | 1791 | V4L2_CID_GAIN, 0, 28, 1, 0); |
1795 | sd->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | 1792 | sd->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, |
1796 | V4L2_CID_AUTOGAIN, 0, 1, 1, 1); | 1793 | V4L2_CID_AUTOGAIN, 0, 1, 1, 1); |
1794 | } | ||
1795 | |||
1796 | sd->jpegqual = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | ||
1797 | V4L2_CID_JPEG_COMPRESSION_QUALITY, 50, 90, 1, 80); | ||
1798 | if (hdl->error) { | ||
1799 | pr_err("Could not initialize controls\n"); | ||
1800 | return hdl->error; | ||
1801 | } | ||
1802 | |||
1803 | v4l2_ctrl_cluster(4, &sd->brightness); | ||
1804 | v4l2_ctrl_cluster(2, &sd->blue); | ||
1805 | if (sd->hflip) | ||
1806 | v4l2_ctrl_cluster(2, &sd->hflip); | ||
1807 | if (sd->autogain) { | ||
1797 | if (sd->sensor == SENSOR_SOI968) | 1808 | if (sd->sensor == SENSOR_SOI968) |
1798 | /* this sensor doesn't have the exposure control and | 1809 | /* this sensor doesn't have the exposure control and |
1799 | autogain is clustered with gain instead. This works | 1810 | autogain is clustered with gain instead. This works |
@@ -1803,13 +1814,6 @@ static int sd_init_controls(struct gspca_dev *gspca_dev) | |||
1803 | /* Otherwise autogain is clustered with exposure. */ | 1814 | /* Otherwise autogain is clustered with exposure. */ |
1804 | v4l2_ctrl_auto_cluster(2, &sd->autogain, 0, false); | 1815 | v4l2_ctrl_auto_cluster(2, &sd->autogain, 0, false); |
1805 | } | 1816 | } |
1806 | |||
1807 | sd->jpegqual = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, | ||
1808 | V4L2_CID_JPEG_COMPRESSION_QUALITY, 50, 90, 1, 80); | ||
1809 | if (hdl->error) { | ||
1810 | pr_err("Could not initialize controls\n"); | ||
1811 | return hdl->error; | ||
1812 | } | ||
1813 | return 0; | 1817 | return 0; |
1814 | } | 1818 | } |
1815 | 1819 | ||
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 4d1696d1a7f4..f38faa9b37c3 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -3120,7 +3120,7 @@ static const struct sd_desc sd_desc = { | |||
3120 | | (SENSOR_ ## sensor << 8) \ | 3120 | | (SENSOR_ ## sensor << 8) \ |
3121 | | (flags) | 3121 | | (flags) |
3122 | static const struct usb_device_id device_table[] = { | 3122 | static const struct usb_device_id device_table[] = { |
3123 | {USB_DEVICE(0x0458, 0x7025), BS(SN9C120, MI0360)}, | 3123 | {USB_DEVICE(0x0458, 0x7025), BSF(SN9C120, MI0360B, F_PDN_INV)}, |
3124 | {USB_DEVICE(0x0458, 0x702e), BS(SN9C120, OV7660)}, | 3124 | {USB_DEVICE(0x0458, 0x702e), BS(SN9C120, OV7660)}, |
3125 | {USB_DEVICE(0x045e, 0x00f5), BSF(SN9C105, OV7660, F_PDN_INV)}, | 3125 | {USB_DEVICE(0x045e, 0x00f5), BSF(SN9C105, OV7660, F_PDN_INV)}, |
3126 | {USB_DEVICE(0x045e, 0x00f7), BSF(SN9C105, OV7660, F_PDN_INV)}, | 3126 | {USB_DEVICE(0x045e, 0x00f7), BSF(SN9C105, OV7660, F_PDN_INV)}, |
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 057929e165ab..5462ce2f60ea 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -866,10 +866,10 @@ static int ivtv_setup_pci(struct ivtv *itv, struct pci_dev *pdev, | |||
866 | pci_write_config_dword(pdev, 0x40, 0xffff); | 866 | pci_write_config_dword(pdev, 0x40, 0xffff); |
867 | 867 | ||
868 | IVTV_DEBUG_INFO("%d (rev %d) at %02x:%02x.%x, " | 868 | IVTV_DEBUG_INFO("%d (rev %d) at %02x:%02x.%x, " |
869 | "irq: %d, latency: %d, memory: 0x%lx\n", | 869 | "irq: %d, latency: %d, memory: 0x%llx\n", |
870 | pdev->device, pdev->revision, pdev->bus->number, | 870 | pdev->device, pdev->revision, pdev->bus->number, |
871 | PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), | 871 | PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), |
872 | pdev->irq, pci_latency, (unsigned long)itv->base_addr); | 872 | pdev->irq, pci_latency, (u64)itv->base_addr); |
873 | 873 | ||
874 | return 0; | 874 | return 0; |
875 | } | 875 | } |
@@ -1007,7 +1007,7 @@ static int __devinit ivtv_probe(struct pci_dev *pdev, | |||
1007 | itv->cxhdl.priv = itv; | 1007 | itv->cxhdl.priv = itv; |
1008 | itv->cxhdl.func = ivtv_api_func; | 1008 | itv->cxhdl.func = ivtv_api_func; |
1009 | 1009 | ||
1010 | IVTV_DEBUG_INFO("base addr: 0x%08x\n", itv->base_addr); | 1010 | IVTV_DEBUG_INFO("base addr: 0x%llx\n", (u64)itv->base_addr); |
1011 | 1011 | ||
1012 | /* PCI Device Setup */ | 1012 | /* PCI Device Setup */ |
1013 | retval = ivtv_setup_pci(itv, pdev, pci_id); | 1013 | retval = ivtv_setup_pci(itv, pdev, pci_id); |
@@ -1017,8 +1017,8 @@ static int __devinit ivtv_probe(struct pci_dev *pdev, | |||
1017 | goto free_mem; | 1017 | goto free_mem; |
1018 | 1018 | ||
1019 | /* map io memory */ | 1019 | /* map io memory */ |
1020 | IVTV_DEBUG_INFO("attempting ioremap at 0x%08x len 0x%08x\n", | 1020 | IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n", |
1021 | itv->base_addr + IVTV_ENCODER_OFFSET, IVTV_ENCODER_SIZE); | 1021 | (u64)itv->base_addr + IVTV_ENCODER_OFFSET, IVTV_ENCODER_SIZE); |
1022 | itv->enc_mem = ioremap_nocache(itv->base_addr + IVTV_ENCODER_OFFSET, | 1022 | itv->enc_mem = ioremap_nocache(itv->base_addr + IVTV_ENCODER_OFFSET, |
1023 | IVTV_ENCODER_SIZE); | 1023 | IVTV_ENCODER_SIZE); |
1024 | if (!itv->enc_mem) { | 1024 | if (!itv->enc_mem) { |
@@ -1034,8 +1034,8 @@ static int __devinit ivtv_probe(struct pci_dev *pdev, | |||
1034 | } | 1034 | } |
1035 | 1035 | ||
1036 | if (itv->has_cx23415) { | 1036 | if (itv->has_cx23415) { |
1037 | IVTV_DEBUG_INFO("attempting ioremap at 0x%08x len 0x%08x\n", | 1037 | IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n", |
1038 | itv->base_addr + IVTV_DECODER_OFFSET, IVTV_DECODER_SIZE); | 1038 | (u64)itv->base_addr + IVTV_DECODER_OFFSET, IVTV_DECODER_SIZE); |
1039 | itv->dec_mem = ioremap_nocache(itv->base_addr + IVTV_DECODER_OFFSET, | 1039 | itv->dec_mem = ioremap_nocache(itv->base_addr + IVTV_DECODER_OFFSET, |
1040 | IVTV_DECODER_SIZE); | 1040 | IVTV_DECODER_SIZE); |
1041 | if (!itv->dec_mem) { | 1041 | if (!itv->dec_mem) { |
@@ -1056,8 +1056,8 @@ static int __devinit ivtv_probe(struct pci_dev *pdev, | |||
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | /* map registers memory */ | 1058 | /* map registers memory */ |
1059 | IVTV_DEBUG_INFO("attempting ioremap at 0x%08x len 0x%08x\n", | 1059 | IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n", |
1060 | itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE); | 1060 | (u64)itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE); |
1061 | itv->reg_mem = | 1061 | itv->reg_mem = |
1062 | ioremap_nocache(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE); | 1062 | ioremap_nocache(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE); |
1063 | if (!itv->reg_mem) { | 1063 | if (!itv->reg_mem) { |
diff --git a/drivers/media/video/ivtv/ivtv-driver.h b/drivers/media/video/ivtv/ivtv-driver.h index 2e220028aad2..a7e00f8938f8 100644 --- a/drivers/media/video/ivtv/ivtv-driver.h +++ b/drivers/media/video/ivtv/ivtv-driver.h | |||
@@ -622,7 +622,7 @@ struct ivtv { | |||
622 | struct v4l2_subdev *sd_video; /* controlling video decoder subdev */ | 622 | struct v4l2_subdev *sd_video; /* controlling video decoder subdev */ |
623 | struct v4l2_subdev *sd_audio; /* controlling audio subdev */ | 623 | struct v4l2_subdev *sd_audio; /* controlling audio subdev */ |
624 | struct v4l2_subdev *sd_muxer; /* controlling audio muxer subdev */ | 624 | struct v4l2_subdev *sd_muxer; /* controlling audio muxer subdev */ |
625 | u32 base_addr; /* PCI resource base address */ | 625 | resource_size_t base_addr; /* PCI resource base address */ |
626 | volatile void __iomem *enc_mem; /* pointer to mapped encoder memory */ | 626 | volatile void __iomem *enc_mem; /* pointer to mapped encoder memory */ |
627 | volatile void __iomem *dec_mem; /* pointer to mapped decoder memory */ | 627 | volatile void __iomem *dec_mem; /* pointer to mapped decoder memory */ |
628 | volatile void __iomem *reg_mem; /* pointer to mapped registers */ | 628 | volatile void __iomem *reg_mem; /* pointer to mapped registers */ |
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c index d2dec585e61b..3945556f5733 100644 --- a/drivers/media/video/mem2mem_testdev.c +++ b/drivers/media/video/mem2mem_testdev.c | |||
@@ -110,22 +110,6 @@ enum { | |||
110 | V4L2_M2M_DST = 1, | 110 | V4L2_M2M_DST = 1, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | /* Source and destination queue data */ | ||
114 | static struct m2mtest_q_data q_data[2]; | ||
115 | |||
116 | static struct m2mtest_q_data *get_q_data(enum v4l2_buf_type type) | ||
117 | { | ||
118 | switch (type) { | ||
119 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: | ||
120 | return &q_data[V4L2_M2M_SRC]; | ||
121 | case V4L2_BUF_TYPE_VIDEO_CAPTURE: | ||
122 | return &q_data[V4L2_M2M_DST]; | ||
123 | default: | ||
124 | BUG(); | ||
125 | } | ||
126 | return NULL; | ||
127 | } | ||
128 | |||
129 | #define V4L2_CID_TRANS_TIME_MSEC V4L2_CID_PRIVATE_BASE | 113 | #define V4L2_CID_TRANS_TIME_MSEC V4L2_CID_PRIVATE_BASE |
130 | #define V4L2_CID_TRANS_NUM_BUFS (V4L2_CID_PRIVATE_BASE + 1) | 114 | #define V4L2_CID_TRANS_NUM_BUFS (V4L2_CID_PRIVATE_BASE + 1) |
131 | 115 | ||
@@ -198,8 +182,26 @@ struct m2mtest_ctx { | |||
198 | int aborting; | 182 | int aborting; |
199 | 183 | ||
200 | struct v4l2_m2m_ctx *m2m_ctx; | 184 | struct v4l2_m2m_ctx *m2m_ctx; |
185 | |||
186 | /* Source and destination queue data */ | ||
187 | struct m2mtest_q_data q_data[2]; | ||
201 | }; | 188 | }; |
202 | 189 | ||
190 | static struct m2mtest_q_data *get_q_data(struct m2mtest_ctx *ctx, | ||
191 | enum v4l2_buf_type type) | ||
192 | { | ||
193 | switch (type) { | ||
194 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: | ||
195 | return &ctx->q_data[V4L2_M2M_SRC]; | ||
196 | case V4L2_BUF_TYPE_VIDEO_CAPTURE: | ||
197 | return &ctx->q_data[V4L2_M2M_DST]; | ||
198 | default: | ||
199 | BUG(); | ||
200 | } | ||
201 | return NULL; | ||
202 | } | ||
203 | |||
204 | |||
203 | static struct v4l2_queryctrl *get_ctrl(int id) | 205 | static struct v4l2_queryctrl *get_ctrl(int id) |
204 | { | 206 | { |
205 | int i; | 207 | int i; |
@@ -223,7 +225,7 @@ static int device_process(struct m2mtest_ctx *ctx, | |||
223 | int tile_w, bytes_left; | 225 | int tile_w, bytes_left; |
224 | int width, height, bytesperline; | 226 | int width, height, bytesperline; |
225 | 227 | ||
226 | q_data = get_q_data(V4L2_BUF_TYPE_VIDEO_OUTPUT); | 228 | q_data = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); |
227 | 229 | ||
228 | width = q_data->width; | 230 | width = q_data->width; |
229 | height = q_data->height; | 231 | height = q_data->height; |
@@ -436,7 +438,7 @@ static int vidioc_g_fmt(struct m2mtest_ctx *ctx, struct v4l2_format *f) | |||
436 | if (!vq) | 438 | if (!vq) |
437 | return -EINVAL; | 439 | return -EINVAL; |
438 | 440 | ||
439 | q_data = get_q_data(f->type); | 441 | q_data = get_q_data(ctx, f->type); |
440 | 442 | ||
441 | f->fmt.pix.width = q_data->width; | 443 | f->fmt.pix.width = q_data->width; |
442 | f->fmt.pix.height = q_data->height; | 444 | f->fmt.pix.height = q_data->height; |
@@ -535,7 +537,7 @@ static int vidioc_s_fmt(struct m2mtest_ctx *ctx, struct v4l2_format *f) | |||
535 | if (!vq) | 537 | if (!vq) |
536 | return -EINVAL; | 538 | return -EINVAL; |
537 | 539 | ||
538 | q_data = get_q_data(f->type); | 540 | q_data = get_q_data(ctx, f->type); |
539 | if (!q_data) | 541 | if (!q_data) |
540 | return -EINVAL; | 542 | return -EINVAL; |
541 | 543 | ||
@@ -747,7 +749,7 @@ static int m2mtest_queue_setup(struct vb2_queue *vq, | |||
747 | struct m2mtest_q_data *q_data; | 749 | struct m2mtest_q_data *q_data; |
748 | unsigned int size, count = *nbuffers; | 750 | unsigned int size, count = *nbuffers; |
749 | 751 | ||
750 | q_data = get_q_data(vq->type); | 752 | q_data = get_q_data(ctx, vq->type); |
751 | 753 | ||
752 | size = q_data->width * q_data->height * q_data->fmt->depth >> 3; | 754 | size = q_data->width * q_data->height * q_data->fmt->depth >> 3; |
753 | 755 | ||
@@ -775,7 +777,7 @@ static int m2mtest_buf_prepare(struct vb2_buffer *vb) | |||
775 | 777 | ||
776 | dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); | 778 | dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); |
777 | 779 | ||
778 | q_data = get_q_data(vb->vb2_queue->type); | 780 | q_data = get_q_data(ctx, vb->vb2_queue->type); |
779 | 781 | ||
780 | if (vb2_plane_size(vb, 0) < q_data->sizeimage) { | 782 | if (vb2_plane_size(vb, 0) < q_data->sizeimage) { |
781 | dprintk(ctx->dev, "%s data will not fit into plane (%lu < %lu)\n", | 783 | dprintk(ctx->dev, "%s data will not fit into plane (%lu < %lu)\n", |
@@ -860,6 +862,9 @@ static int m2mtest_open(struct file *file) | |||
860 | ctx->transtime = MEM2MEM_DEF_TRANSTIME; | 862 | ctx->transtime = MEM2MEM_DEF_TRANSTIME; |
861 | ctx->num_processed = 0; | 863 | ctx->num_processed = 0; |
862 | 864 | ||
865 | ctx->q_data[V4L2_M2M_SRC].fmt = &formats[0]; | ||
866 | ctx->q_data[V4L2_M2M_DST].fmt = &formats[0]; | ||
867 | |||
863 | ctx->m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); | 868 | ctx->m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); |
864 | 869 | ||
865 | if (IS_ERR(ctx->m2m_ctx)) { | 870 | if (IS_ERR(ctx->m2m_ctx)) { |
@@ -986,9 +991,6 @@ static int m2mtest_probe(struct platform_device *pdev) | |||
986 | goto err_m2m; | 991 | goto err_m2m; |
987 | } | 992 | } |
988 | 993 | ||
989 | q_data[V4L2_M2M_SRC].fmt = &formats[0]; | ||
990 | q_data[V4L2_M2M_DST].fmt = &formats[0]; | ||
991 | |||
992 | return 0; | 994 | return 0; |
993 | 995 | ||
994 | v4l2_m2m_release(dev->m2m_dev); | 996 | v4l2_m2m_release(dev->m2m_dev); |
diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index ded26b7286fa..41f9a254b245 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c | |||
@@ -345,19 +345,6 @@ static struct mx2_fmt_cfg mx27_emma_prp_table[] = { | |||
345 | PRP_INTR_CH2OVF, | 345 | PRP_INTR_CH2OVF, |
346 | } | 346 | } |
347 | }, | 347 | }, |
348 | { | ||
349 | .in_fmt = V4L2_MBUS_FMT_UYVY8_2X8, | ||
350 | .out_fmt = V4L2_PIX_FMT_YUV420, | ||
351 | .cfg = { | ||
352 | .channel = 2, | ||
353 | .in_fmt = PRP_CNTL_DATA_IN_YUV422, | ||
354 | .out_fmt = PRP_CNTL_CH2_OUT_YUV420, | ||
355 | .src_pixel = 0x22000888, /* YUV422 (YUYV) */ | ||
356 | .irq_flags = PRP_INTR_RDERR | PRP_INTR_CH2WERR | | ||
357 | PRP_INTR_CH2FC | PRP_INTR_LBOVF | | ||
358 | PRP_INTR_CH2OVF, | ||
359 | } | ||
360 | }, | ||
361 | }; | 348 | }; |
362 | 349 | ||
363 | static struct mx2_fmt_cfg *mx27_emma_prp_get_format( | 350 | static struct mx2_fmt_cfg *mx27_emma_prp_get_format( |
@@ -984,7 +971,6 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd) | |||
984 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 971 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
985 | struct mx2_camera_dev *pcdev = ici->priv; | 972 | struct mx2_camera_dev *pcdev = ici->priv; |
986 | struct v4l2_mbus_config cfg = {.type = V4L2_MBUS_PARALLEL,}; | 973 | struct v4l2_mbus_config cfg = {.type = V4L2_MBUS_PARALLEL,}; |
987 | const struct soc_camera_format_xlate *xlate; | ||
988 | unsigned long common_flags; | 974 | unsigned long common_flags; |
989 | int ret; | 975 | int ret; |
990 | int bytesperline; | 976 | int bytesperline; |
@@ -1029,31 +1015,14 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd) | |||
1029 | return ret; | 1015 | return ret; |
1030 | } | 1016 | } |
1031 | 1017 | ||
1032 | xlate = soc_camera_xlate_by_fourcc(icd, pixfmt); | ||
1033 | if (!xlate) { | ||
1034 | dev_warn(icd->parent, "Format %x not found\n", pixfmt); | ||
1035 | return -EINVAL; | ||
1036 | } | ||
1037 | |||
1038 | if (xlate->code == V4L2_MBUS_FMT_YUYV8_2X8) { | ||
1039 | csicr1 |= CSICR1_PACK_DIR; | ||
1040 | csicr1 &= ~CSICR1_SWAP16_EN; | ||
1041 | dev_dbg(icd->parent, "already yuyv format, don't convert\n"); | ||
1042 | } else if (xlate->code == V4L2_MBUS_FMT_UYVY8_2X8) { | ||
1043 | csicr1 &= ~CSICR1_PACK_DIR; | ||
1044 | csicr1 |= CSICR1_SWAP16_EN; | ||
1045 | dev_dbg(icd->parent, "convert uyvy mbus format into yuyv\n"); | ||
1046 | } else { | ||
1047 | dev_warn(icd->parent, "mbus format not supported\n"); | ||
1048 | return -EINVAL; | ||
1049 | } | ||
1050 | |||
1051 | if (common_flags & V4L2_MBUS_PCLK_SAMPLE_RISING) | 1018 | if (common_flags & V4L2_MBUS_PCLK_SAMPLE_RISING) |
1052 | csicr1 |= CSICR1_REDGE; | 1019 | csicr1 |= CSICR1_REDGE; |
1053 | if (common_flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) | 1020 | if (common_flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) |
1054 | csicr1 |= CSICR1_SOF_POL; | 1021 | csicr1 |= CSICR1_SOF_POL; |
1055 | if (common_flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) | 1022 | if (common_flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) |
1056 | csicr1 |= CSICR1_HSYNC_POL; | 1023 | csicr1 |= CSICR1_HSYNC_POL; |
1024 | if (pcdev->platform_flags & MX2_CAMERA_SWAP16) | ||
1025 | csicr1 |= CSICR1_SWAP16_EN; | ||
1057 | if (pcdev->platform_flags & MX2_CAMERA_EXT_VSYNC) | 1026 | if (pcdev->platform_flags & MX2_CAMERA_EXT_VSYNC) |
1058 | csicr1 |= CSICR1_EXT_VSYNC; | 1027 | csicr1 |= CSICR1_EXT_VSYNC; |
1059 | if (pcdev->platform_flags & MX2_CAMERA_CCIR) | 1028 | if (pcdev->platform_flags & MX2_CAMERA_CCIR) |
@@ -1064,6 +1033,8 @@ static int mx2_camera_set_bus_param(struct soc_camera_device *icd) | |||
1064 | csicr1 |= CSICR1_GCLK_MODE; | 1033 | csicr1 |= CSICR1_GCLK_MODE; |
1065 | if (pcdev->platform_flags & MX2_CAMERA_INV_DATA) | 1034 | if (pcdev->platform_flags & MX2_CAMERA_INV_DATA) |
1066 | csicr1 |= CSICR1_INV_DATA; | 1035 | csicr1 |= CSICR1_INV_DATA; |
1036 | if (pcdev->platform_flags & MX2_CAMERA_PACK_DIR_MSB) | ||
1037 | csicr1 |= CSICR1_PACK_DIR; | ||
1067 | 1038 | ||
1068 | pcdev->csicr1 = csicr1; | 1039 | pcdev->csicr1 = csicr1; |
1069 | 1040 | ||
@@ -1138,8 +1109,7 @@ static int mx2_camera_get_formats(struct soc_camera_device *icd, | |||
1138 | return 0; | 1109 | return 0; |
1139 | } | 1110 | } |
1140 | 1111 | ||
1141 | if (code == V4L2_MBUS_FMT_YUYV8_2X8 || | 1112 | if (code == V4L2_MBUS_FMT_YUYV8_2X8) { |
1142 | code == V4L2_MBUS_FMT_UYVY8_2X8) { | ||
1143 | formats++; | 1113 | formats++; |
1144 | if (xlate) { | 1114 | if (xlate) { |
1145 | /* | 1115 | /* |
@@ -1155,18 +1125,6 @@ static int mx2_camera_get_formats(struct soc_camera_device *icd, | |||
1155 | } | 1125 | } |
1156 | } | 1126 | } |
1157 | 1127 | ||
1158 | if (code == V4L2_MBUS_FMT_UYVY8_2X8) { | ||
1159 | formats++; | ||
1160 | if (xlate) { | ||
1161 | xlate->host_fmt = | ||
1162 | soc_mbus_get_fmtdesc(V4L2_MBUS_FMT_YUYV8_2X8); | ||
1163 | xlate->code = code; | ||
1164 | dev_dbg(dev, "Providing host format %s for sensor code %d\n", | ||
1165 | xlate->host_fmt->name, code); | ||
1166 | xlate++; | ||
1167 | } | ||
1168 | } | ||
1169 | |||
1170 | /* Generic pass-trough */ | 1128 | /* Generic pass-trough */ |
1171 | formats++; | 1129 | formats++; |
1172 | if (xlate) { | 1130 | if (xlate) { |
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c index fedcd561ba27..92fc5a20fb76 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.c +++ b/drivers/media/video/s5p-fimc/fimc-core.c | |||
@@ -615,7 +615,7 @@ int fimc_ctrls_create(struct fimc_ctx *ctx) | |||
615 | ctx->effect.type = FIMC_REG_CIIMGEFF_FIN_BYPASS; | 615 | ctx->effect.type = FIMC_REG_CIIMGEFF_FIN_BYPASS; |
616 | 616 | ||
617 | if (!handler->error) { | 617 | if (!handler->error) { |
618 | v4l2_ctrl_cluster(3, &ctrls->colorfx); | 618 | v4l2_ctrl_cluster(2, &ctrls->colorfx); |
619 | ctrls->ready = true; | 619 | ctrls->ready = true; |
620 | } | 620 | } |
621 | 621 | ||
diff --git a/drivers/media/video/s5p-mfc/regs-mfc.h b/drivers/media/video/s5p-mfc/regs-mfc.h index 053a8a872fd7..a19bece41ba9 100644 --- a/drivers/media/video/s5p-mfc/regs-mfc.h +++ b/drivers/media/video/s5p-mfc/regs-mfc.h | |||
@@ -164,10 +164,15 @@ | |||
164 | decoded pic */ | 164 | decoded pic */ |
165 | #define S5P_FIMV_SI_DISPLAY_Y_ADR 0x2010 /* luma addr of displayed pic */ | 165 | #define S5P_FIMV_SI_DISPLAY_Y_ADR 0x2010 /* luma addr of displayed pic */ |
166 | #define S5P_FIMV_SI_DISPLAY_C_ADR 0x2014 /* chroma addrof displayed pic */ | 166 | #define S5P_FIMV_SI_DISPLAY_C_ADR 0x2014 /* chroma addrof displayed pic */ |
167 | |||
167 | #define S5P_FIMV_SI_CONSUMED_BYTES 0x2018 /* Consumed number of bytes to | 168 | #define S5P_FIMV_SI_CONSUMED_BYTES 0x2018 /* Consumed number of bytes to |
168 | decode a frame */ | 169 | decode a frame */ |
169 | #define S5P_FIMV_SI_DISPLAY_STATUS 0x201c /* status of decoded picture */ | 170 | #define S5P_FIMV_SI_DISPLAY_STATUS 0x201c /* status of decoded picture */ |
170 | 171 | ||
172 | #define S5P_FIMV_SI_DECODE_Y_ADR 0x2024 /* luma addr of decoded pic */ | ||
173 | #define S5P_FIMV_SI_DECODE_C_ADR 0x2028 /* chroma addrof decoded pic */ | ||
174 | #define S5P_FIMV_SI_DECODE_STATUS 0x202c /* status of decoded picture */ | ||
175 | |||
171 | #define S5P_FIMV_SI_CH0_SB_ST_ADR 0x2044 /* start addr of stream buf */ | 176 | #define S5P_FIMV_SI_CH0_SB_ST_ADR 0x2044 /* start addr of stream buf */ |
172 | #define S5P_FIMV_SI_CH0_SB_FRM_SIZE 0x2048 /* size of stream buf */ | 177 | #define S5P_FIMV_SI_CH0_SB_FRM_SIZE 0x2048 /* size of stream buf */ |
173 | #define S5P_FIMV_SI_CH0_DESC_ADR 0x204c /* addr of descriptor buf */ | 178 | #define S5P_FIMV_SI_CH0_DESC_ADR 0x204c /* addr of descriptor buf */ |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c index c25ec022d267..4dd32fc8fd82 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c | |||
@@ -627,13 +627,13 @@ static int s5p_mfc_dec_s_ctrl(struct v4l2_ctrl *ctrl) | |||
627 | 627 | ||
628 | switch (ctrl->id) { | 628 | switch (ctrl->id) { |
629 | case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY: | 629 | case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY: |
630 | ctx->loop_filter_mpeg4 = ctrl->val; | 630 | ctx->display_delay = ctrl->val; |
631 | break; | 631 | break; |
632 | case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE: | 632 | case V4L2_CID_MPEG_MFC51_VIDEO_DECODER_H264_DISPLAY_DELAY_ENABLE: |
633 | ctx->display_delay_enable = ctrl->val; | 633 | ctx->display_delay_enable = ctrl->val; |
634 | break; | 634 | break; |
635 | case V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER: | 635 | case V4L2_CID_MPEG_VIDEO_DECODER_MPEG4_DEBLOCK_FILTER: |
636 | ctx->display_delay = ctrl->val; | 636 | ctx->loop_filter_mpeg4 = ctrl->val; |
637 | break; | 637 | break; |
638 | case V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE: | 638 | case V4L2_CID_MPEG_VIDEO_DECODER_SLICE_INTERFACE: |
639 | ctx->slice_interface = ctrl->val; | 639 | ctx->slice_interface = ctrl->val; |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c index acedb2004be3..03d83340e7fb 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c | |||
@@ -243,12 +243,6 @@ static struct mfc_control controls[] = { | |||
243 | .minimum = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, | 243 | .minimum = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, |
244 | .maximum = V4L2_MPEG_VIDEO_H264_LEVEL_4_0, | 244 | .maximum = V4L2_MPEG_VIDEO_H264_LEVEL_4_0, |
245 | .default_value = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, | 245 | .default_value = V4L2_MPEG_VIDEO_H264_LEVEL_1_0, |
246 | .menu_skip_mask = ~( | ||
247 | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_1) | | ||
248 | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_4_2) | | ||
249 | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_5_0) | | ||
250 | (1 << V4L2_MPEG_VIDEO_H264_LEVEL_5_1) | ||
251 | ), | ||
252 | }, | 246 | }, |
253 | { | 247 | { |
254 | .id = V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL, | 248 | .id = V4L2_CID_MPEG_VIDEO_MPEG4_LEVEL, |
@@ -494,7 +488,7 @@ static struct mfc_control controls[] = { | |||
494 | .type = V4L2_CTRL_TYPE_MENU, | 488 | .type = V4L2_CTRL_TYPE_MENU, |
495 | .minimum = V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED, | 489 | .minimum = V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED, |
496 | .maximum = V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED, | 490 | .maximum = V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_EXTENDED, |
497 | .default_value = 0, | 491 | .default_value = V4L2_MPEG_VIDEO_H264_VUI_SAR_IDC_UNSPECIFIED, |
498 | .menu_skip_mask = 0, | 492 | .menu_skip_mask = 0, |
499 | }, | 493 | }, |
500 | { | 494 | { |
@@ -534,7 +528,7 @@ static struct mfc_control controls[] = { | |||
534 | .type = V4L2_CTRL_TYPE_MENU, | 528 | .type = V4L2_CTRL_TYPE_MENU, |
535 | .minimum = V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE, | 529 | .minimum = V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE, |
536 | .maximum = V4L2_MPEG_VIDEO_MPEG4_PROFILE_ADVANCED_SIMPLE, | 530 | .maximum = V4L2_MPEG_VIDEO_MPEG4_PROFILE_ADVANCED_SIMPLE, |
537 | .default_value = 0, | 531 | .default_value = V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE, |
538 | .menu_skip_mask = 0, | 532 | .menu_skip_mask = 0, |
539 | }, | 533 | }, |
540 | { | 534 | { |
@@ -907,6 +901,8 @@ static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f) | |||
907 | mfc_err("failed to try output format\n"); | 901 | mfc_err("failed to try output format\n"); |
908 | return -EINVAL; | 902 | return -EINVAL; |
909 | } | 903 | } |
904 | v4l_bound_align_image(&pix_fmt_mp->width, 8, 1920, 1, | ||
905 | &pix_fmt_mp->height, 4, 1080, 1, 0); | ||
910 | } else { | 906 | } else { |
911 | mfc_err("invalid buf type\n"); | 907 | mfc_err("invalid buf type\n"); |
912 | return -EINVAL; | 908 | return -EINVAL; |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_opr.h b/drivers/media/video/s5p-mfc/s5p_mfc_opr.h index db83836e6a9f..5932d1c782c5 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_opr.h +++ b/drivers/media/video/s5p-mfc/s5p_mfc_opr.h | |||
@@ -57,10 +57,12 @@ void s5p_mfc_cleanup_queue(struct list_head *lh, struct vb2_queue *vq); | |||
57 | S5P_FIMV_SI_DISPLAY_Y_ADR) << \ | 57 | S5P_FIMV_SI_DISPLAY_Y_ADR) << \ |
58 | MFC_OFFSET_SHIFT) | 58 | MFC_OFFSET_SHIFT) |
59 | #define s5p_mfc_get_dec_y_adr() (readl(dev->regs_base + \ | 59 | #define s5p_mfc_get_dec_y_adr() (readl(dev->regs_base + \ |
60 | S5P_FIMV_SI_DISPLAY_Y_ADR) << \ | 60 | S5P_FIMV_SI_DECODE_Y_ADR) << \ |
61 | MFC_OFFSET_SHIFT) | 61 | MFC_OFFSET_SHIFT) |
62 | #define s5p_mfc_get_dspl_status() readl(dev->regs_base + \ | 62 | #define s5p_mfc_get_dspl_status() readl(dev->regs_base + \ |
63 | S5P_FIMV_SI_DISPLAY_STATUS) | 63 | S5P_FIMV_SI_DISPLAY_STATUS) |
64 | #define s5p_mfc_get_dec_status() readl(dev->regs_base + \ | ||
65 | S5P_FIMV_SI_DECODE_STATUS) | ||
64 | #define s5p_mfc_get_frame_type() (readl(dev->regs_base + \ | 66 | #define s5p_mfc_get_frame_type() (readl(dev->regs_base + \ |
65 | S5P_FIMV_DECODE_FRAME_TYPE) \ | 67 | S5P_FIMV_DECODE_FRAME_TYPE) \ |
66 | & S5P_FIMV_DECODE_FRAME_MASK) | 68 | & S5P_FIMV_DECODE_FRAME_MASK) |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_shm.h b/drivers/media/video/s5p-mfc/s5p_mfc_shm.h index 764eac6bcc4c..cf962a466276 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_shm.h +++ b/drivers/media/video/s5p-mfc/s5p_mfc_shm.h | |||
@@ -13,8 +13,7 @@ | |||
13 | #ifndef S5P_MFC_SHM_H_ | 13 | #ifndef S5P_MFC_SHM_H_ |
14 | #define S5P_MFC_SHM_H_ | 14 | #define S5P_MFC_SHM_H_ |
15 | 15 | ||
16 | enum MFC_SHM_OFS | 16 | enum MFC_SHM_OFS { |
17 | { | ||
18 | EXTENEDED_DECODE_STATUS = 0x00, /* D */ | 17 | EXTENEDED_DECODE_STATUS = 0x00, /* D */ |
19 | SET_FRAME_TAG = 0x04, /* D */ | 18 | SET_FRAME_TAG = 0x04, /* D */ |
20 | GET_FRAME_TAG_TOP = 0x08, /* D */ | 19 | GET_FRAME_TAG_TOP = 0x08, /* D */ |
diff --git a/drivers/media/video/smiapp/Kconfig b/drivers/media/video/smiapp/Kconfig index f7b35ff443bf..fb99ff18be07 100644 --- a/drivers/media/video/smiapp/Kconfig +++ b/drivers/media/video/smiapp/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | config VIDEO_SMIAPP | 1 | config VIDEO_SMIAPP |
2 | tristate "SMIA++/SMIA sensor support" | 2 | tristate "SMIA++/SMIA sensor support" |
3 | depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API | 3 | depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAVE_CLK |
4 | select VIDEO_SMIAPP_PLL | 4 | select VIDEO_SMIAPP_PLL |
5 | ---help--- | 5 | ---help--- |
6 | This is a generic driver for SMIA++/SMIA camera modules. | 6 | This is a generic driver for SMIA++/SMIA camera modules. |
diff --git a/drivers/media/video/smiapp/smiapp-core.c b/drivers/media/video/smiapp/smiapp-core.c index f518026cb67b..e8c93c89265a 100644 --- a/drivers/media/video/smiapp/smiapp-core.c +++ b/drivers/media/video/smiapp/smiapp-core.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/gpio.h> | 32 | #include <linux/gpio.h> |
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/regulator/consumer.h> | 34 | #include <linux/regulator/consumer.h> |
35 | #include <linux/slab.h> | ||
35 | #include <linux/v4l2-mediabus.h> | 36 | #include <linux/v4l2-mediabus.h> |
36 | #include <media/v4l2-device.h> | 37 | #include <media/v4l2-device.h> |
37 | 38 | ||
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c index 3e050e12153b..1ad5ab6ce5cf 100644 --- a/drivers/media/video/tuner-core.c +++ b/drivers/media/video/tuner-core.c | |||
@@ -1178,7 +1178,7 @@ static int tuner_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) | |||
1178 | return 0; | 1178 | return 0; |
1179 | if (vt->type == t->mode && analog_ops->get_afc) | 1179 | if (vt->type == t->mode && analog_ops->get_afc) |
1180 | vt->afc = analog_ops->get_afc(&t->fe); | 1180 | vt->afc = analog_ops->get_afc(&t->fe); |
1181 | if (t->mode != V4L2_TUNER_RADIO) { | 1181 | if (vt->type != V4L2_TUNER_RADIO) { |
1182 | vt->capability |= V4L2_TUNER_CAP_NORM; | 1182 | vt->capability |= V4L2_TUNER_CAP_NORM; |
1183 | vt->rangelow = tv_range[0] * 16; | 1183 | vt->rangelow = tv_range[0] * 16; |
1184 | vt->rangehigh = tv_range[1] * 16; | 1184 | vt->rangehigh = tv_range[1] * 16; |
diff --git a/drivers/media/video/v4l2-dev.c b/drivers/media/video/v4l2-dev.c index 5ccbd4629f9c..83dbb2ddff10 100644 --- a/drivers/media/video/v4l2-dev.c +++ b/drivers/media/video/v4l2-dev.c | |||
@@ -656,7 +656,7 @@ static void determine_valid_ioctls(struct video_device *vdev) | |||
656 | SET_VALID_IOCTL(ops, VIDIOC_TRY_ENCODER_CMD, vidioc_try_encoder_cmd); | 656 | SET_VALID_IOCTL(ops, VIDIOC_TRY_ENCODER_CMD, vidioc_try_encoder_cmd); |
657 | SET_VALID_IOCTL(ops, VIDIOC_DECODER_CMD, vidioc_decoder_cmd); | 657 | SET_VALID_IOCTL(ops, VIDIOC_DECODER_CMD, vidioc_decoder_cmd); |
658 | SET_VALID_IOCTL(ops, VIDIOC_TRY_DECODER_CMD, vidioc_try_decoder_cmd); | 658 | SET_VALID_IOCTL(ops, VIDIOC_TRY_DECODER_CMD, vidioc_try_decoder_cmd); |
659 | if (ops->vidioc_g_parm || vdev->current_norm) | 659 | if (ops->vidioc_g_parm || vdev->vfl_type == VFL_TYPE_GRABBER) |
660 | set_bit(_IOC_NR(VIDIOC_G_PARM), valid_ioctls); | 660 | set_bit(_IOC_NR(VIDIOC_G_PARM), valid_ioctls); |
661 | SET_VALID_IOCTL(ops, VIDIOC_S_PARM, vidioc_s_parm); | 661 | SET_VALID_IOCTL(ops, VIDIOC_S_PARM, vidioc_s_parm); |
662 | SET_VALID_IOCTL(ops, VIDIOC_G_TUNER, vidioc_g_tuner); | 662 | SET_VALID_IOCTL(ops, VIDIOC_G_TUNER, vidioc_g_tuner); |
@@ -679,6 +679,8 @@ static void determine_valid_ioctls(struct video_device *vdev) | |||
679 | SET_VALID_IOCTL(ops, VIDIOC_QUERY_DV_PRESET, vidioc_query_dv_preset); | 679 | SET_VALID_IOCTL(ops, VIDIOC_QUERY_DV_PRESET, vidioc_query_dv_preset); |
680 | SET_VALID_IOCTL(ops, VIDIOC_S_DV_TIMINGS, vidioc_s_dv_timings); | 680 | SET_VALID_IOCTL(ops, VIDIOC_S_DV_TIMINGS, vidioc_s_dv_timings); |
681 | SET_VALID_IOCTL(ops, VIDIOC_G_DV_TIMINGS, vidioc_g_dv_timings); | 681 | SET_VALID_IOCTL(ops, VIDIOC_G_DV_TIMINGS, vidioc_g_dv_timings); |
682 | SET_VALID_IOCTL(ops, VIDIOC_ENUM_DV_TIMINGS, vidioc_enum_dv_timings); | ||
683 | SET_VALID_IOCTL(ops, VIDIOC_QUERY_DV_TIMINGS, vidioc_query_dv_timings); | ||
682 | /* yes, really vidioc_subscribe_event */ | 684 | /* yes, really vidioc_subscribe_event */ |
683 | SET_VALID_IOCTL(ops, VIDIOC_DQEVENT, vidioc_subscribe_event); | 685 | SET_VALID_IOCTL(ops, VIDIOC_DQEVENT, vidioc_subscribe_event); |
684 | SET_VALID_IOCTL(ops, VIDIOC_SUBSCRIBE_EVENT, vidioc_subscribe_event); | 686 | SET_VALID_IOCTL(ops, VIDIOC_SUBSCRIBE_EVENT, vidioc_subscribe_event); |
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 91be4e871f43..d7fa8962d8b3 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -1680,6 +1680,7 @@ static long __video_do_ioctl(struct file *file, | |||
1680 | break; | 1680 | break; |
1681 | 1681 | ||
1682 | ret = 0; | 1682 | ret = 0; |
1683 | p->parm.capture.readbuffers = 2; | ||
1683 | if (ops->vidioc_g_std) | 1684 | if (ops->vidioc_g_std) |
1684 | ret = ops->vidioc_g_std(file, fh, &std); | 1685 | ret = ops->vidioc_g_std(file, fh, &std); |
1685 | if (ret == 0) | 1686 | if (ret == 0) |
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 4d7391ec8001..aae1720b2f2d 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -2561,7 +2561,7 @@ static int vino_acquire_input(struct vino_channel_settings *vcs) | |||
2561 | } else if (vino_drvdata->decoder | 2561 | } else if (vino_drvdata->decoder |
2562 | && (vino_drvdata->decoder_owner == VINO_NO_CHANNEL)) { | 2562 | && (vino_drvdata->decoder_owner == VINO_NO_CHANNEL)) { |
2563 | int input; | 2563 | int input; |
2564 | int data_norm; | 2564 | int data_norm = 0; |
2565 | v4l2_std_id norm; | 2565 | v4l2_std_id norm; |
2566 | 2566 | ||
2567 | input = VINO_INPUT_COMPOSITE; | 2567 | input = VINO_INPUT_COMPOSITE; |
@@ -2651,7 +2651,7 @@ static int vino_set_input(struct vino_channel_settings *vcs, int input) | |||
2651 | } | 2651 | } |
2652 | 2652 | ||
2653 | if (vino_drvdata->decoder_owner == vcs->channel) { | 2653 | if (vino_drvdata->decoder_owner == vcs->channel) { |
2654 | int data_norm; | 2654 | int data_norm = 0; |
2655 | v4l2_std_id norm; | 2655 | v4l2_std_id norm; |
2656 | 2656 | ||
2657 | ret = decoder_call(video, s_routing, | 2657 | ret = decoder_call(video, s_routing, |
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index 0960d7f0d394..08c10240e70f 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -1149,10 +1149,14 @@ static ssize_t | |||
1149 | vivi_read(struct file *file, char __user *data, size_t count, loff_t *ppos) | 1149 | vivi_read(struct file *file, char __user *data, size_t count, loff_t *ppos) |
1150 | { | 1150 | { |
1151 | struct vivi_dev *dev = video_drvdata(file); | 1151 | struct vivi_dev *dev = video_drvdata(file); |
1152 | int err; | ||
1152 | 1153 | ||
1153 | dprintk(dev, 1, "read called\n"); | 1154 | dprintk(dev, 1, "read called\n"); |
1154 | return vb2_read(&dev->vb_vidq, data, count, ppos, | 1155 | mutex_lock(&dev->mutex); |
1156 | err = vb2_read(&dev->vb_vidq, data, count, ppos, | ||
1155 | file->f_flags & O_NONBLOCK); | 1157 | file->f_flags & O_NONBLOCK); |
1158 | mutex_unlock(&dev->mutex); | ||
1159 | return err; | ||
1156 | } | 1160 | } |
1157 | 1161 | ||
1158 | static unsigned int | 1162 | static unsigned int |