diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-01 08:54:14 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-01 08:54:14 -0400 |
commit | f9f11dfe4831adb1531e1face9dcd9fc57665d2e (patch) | |
tree | 3fb605d9c6c7ed70d42237de21203fa131e6eee8 /drivers/media/pci/bt8xx/bttv-driver.c | |
parent | 6bf7861fa2bb4be3cc70a6e9aed664ce65270027 (diff) | |
parent | 07961ac7c0ee8b546658717034fe692fd12eefa9 (diff) |
Merge tag 'v3.9-rc5' into patchwork
Linux 3.9-rc5
* tag 'v3.9-rc5': (1080 commits)
Linux 3.9-rc5
Revert "lockdep: check that no locks held at freeze time"
dw_dmac: adjust slave_id accordingly to request line base
dmaengine: dw_dma: fix endianess for DT xlate function
PNP: List Rafael Wysocki as a maintainer
rbd: don't zero-fill non-image object requests
ia64 idle: delete stale (*idle)() function pointer
Btrfs: don't drop path when printing out tree errors in scrub
target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case
tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit
Revert "mm: introduce VM_POPULATE flag to better deal with racy userspace programs"
usb: ftdi_sio: Add support for Mitsubishi FX-USB-AW/-BD
mg_disk: fix error return code in mg_probe()
Btrfs: fix wrong return value of btrfs_lookup_csum()
Btrfs: fix wrong reservation of csums
Btrfs: fix double free in the btrfs_qgroup_account_ref()
Btrfs: limit the global reserve to 512mb
Btrfs: hold the ordered operations mutex when waiting on ordered extents
Btrfs: fix space accounting for unlink and rename
Btrfs: fix space leak when we fail to reserve metadata space
...
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv-driver.c')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-driver.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index e33a2d2f81a8..e7d088413411 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c | |||
@@ -263,17 +263,19 @@ static u8 SRAM_Table[][60] = | |||
263 | vdelay start of active video in 2 * field lines relative to | 263 | vdelay start of active video in 2 * field lines relative to |
264 | trailing edge of /VRESET pulse (VDELAY register). | 264 | trailing edge of /VRESET pulse (VDELAY register). |
265 | sheight height of active video in 2 * field lines. | 265 | sheight height of active video in 2 * field lines. |
266 | extraheight Added to sheight for cropcap.bounds.height only | ||
266 | videostart0 ITU-R frame line number of the line corresponding | 267 | videostart0 ITU-R frame line number of the line corresponding |
267 | to vdelay in the first field. */ | 268 | to vdelay in the first field. */ |
268 | #define CROPCAP(minhdelayx1, hdelayx1, swidth, totalwidth, sqwidth, \ | 269 | #define CROPCAP(minhdelayx1, hdelayx1, swidth, totalwidth, sqwidth, \ |
269 | vdelay, sheight, videostart0) \ | 270 | vdelay, sheight, extraheight, videostart0) \ |
270 | .cropcap.bounds.left = minhdelayx1, \ | 271 | .cropcap.bounds.left = minhdelayx1, \ |
271 | /* * 2 because vertically we count field lines times two, */ \ | 272 | /* * 2 because vertically we count field lines times two, */ \ |
272 | /* e.g. 23 * 2 to 23 * 2 + 576 in PAL-BGHI defrect. */ \ | 273 | /* e.g. 23 * 2 to 23 * 2 + 576 in PAL-BGHI defrect. */ \ |
273 | .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \ | 274 | .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \ |
274 | /* 4 is a safety margin at the end of the line. */ \ | 275 | /* 4 is a safety margin at the end of the line. */ \ |
275 | .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \ | 276 | .cropcap.bounds.width = (totalwidth) - (minhdelayx1) - 4, \ |
276 | .cropcap.bounds.height = (sheight) + (vdelay) - MIN_VDELAY, \ | 277 | .cropcap.bounds.height = (sheight) + (extraheight) + (vdelay) - \ |
278 | MIN_VDELAY, \ | ||
277 | .cropcap.defrect.left = hdelayx1, \ | 279 | .cropcap.defrect.left = hdelayx1, \ |
278 | .cropcap.defrect.top = (videostart0) * 2, \ | 280 | .cropcap.defrect.top = (videostart0) * 2, \ |
279 | .cropcap.defrect.width = swidth, \ | 281 | .cropcap.defrect.width = swidth, \ |
@@ -314,9 +316,10 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
314 | /* totalwidth */ 1135, | 316 | /* totalwidth */ 1135, |
315 | /* sqwidth */ 944, | 317 | /* sqwidth */ 944, |
316 | /* vdelay */ 0x20, | 318 | /* vdelay */ 0x20, |
317 | /* bt878 (and bt848?) can capture another | 319 | /* sheight */ 576, |
318 | line below active video. */ | 320 | /* bt878 (and bt848?) can capture another |
319 | /* sheight */ (576 + 2) + 0x20 - 2, | 321 | line below active video. */ |
322 | /* extraheight */ 2, | ||
320 | /* videostart0 */ 23) | 323 | /* videostart0 */ 23) |
321 | },{ | 324 | },{ |
322 | .v4l2_id = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR, | 325 | .v4l2_id = V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_KR, |
@@ -343,6 +346,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
343 | /* sqwidth */ 780, | 346 | /* sqwidth */ 780, |
344 | /* vdelay */ 0x1a, | 347 | /* vdelay */ 0x1a, |
345 | /* sheight */ 480, | 348 | /* sheight */ 480, |
349 | /* extraheight */ 0, | ||
346 | /* videostart0 */ 23) | 350 | /* videostart0 */ 23) |
347 | },{ | 351 | },{ |
348 | .v4l2_id = V4L2_STD_SECAM, | 352 | .v4l2_id = V4L2_STD_SECAM, |
@@ -368,6 +372,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
368 | /* sqwidth */ 944, | 372 | /* sqwidth */ 944, |
369 | /* vdelay */ 0x20, | 373 | /* vdelay */ 0x20, |
370 | /* sheight */ 576, | 374 | /* sheight */ 576, |
375 | /* extraheight */ 0, | ||
371 | /* videostart0 */ 23) | 376 | /* videostart0 */ 23) |
372 | },{ | 377 | },{ |
373 | .v4l2_id = V4L2_STD_PAL_Nc, | 378 | .v4l2_id = V4L2_STD_PAL_Nc, |
@@ -393,6 +398,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
393 | /* sqwidth */ 780, | 398 | /* sqwidth */ 780, |
394 | /* vdelay */ 0x1a, | 399 | /* vdelay */ 0x1a, |
395 | /* sheight */ 576, | 400 | /* sheight */ 576, |
401 | /* extraheight */ 0, | ||
396 | /* videostart0 */ 23) | 402 | /* videostart0 */ 23) |
397 | },{ | 403 | },{ |
398 | .v4l2_id = V4L2_STD_PAL_M, | 404 | .v4l2_id = V4L2_STD_PAL_M, |
@@ -418,6 +424,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
418 | /* sqwidth */ 780, | 424 | /* sqwidth */ 780, |
419 | /* vdelay */ 0x1a, | 425 | /* vdelay */ 0x1a, |
420 | /* sheight */ 480, | 426 | /* sheight */ 480, |
427 | /* extraheight */ 0, | ||
421 | /* videostart0 */ 23) | 428 | /* videostart0 */ 23) |
422 | },{ | 429 | },{ |
423 | .v4l2_id = V4L2_STD_PAL_N, | 430 | .v4l2_id = V4L2_STD_PAL_N, |
@@ -443,6 +450,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
443 | /* sqwidth */ 944, | 450 | /* sqwidth */ 944, |
444 | /* vdelay */ 0x20, | 451 | /* vdelay */ 0x20, |
445 | /* sheight */ 576, | 452 | /* sheight */ 576, |
453 | /* extraheight */ 0, | ||
446 | /* videostart0 */ 23) | 454 | /* videostart0 */ 23) |
447 | },{ | 455 | },{ |
448 | .v4l2_id = V4L2_STD_NTSC_M_JP, | 456 | .v4l2_id = V4L2_STD_NTSC_M_JP, |
@@ -468,6 +476,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
468 | /* sqwidth */ 780, | 476 | /* sqwidth */ 780, |
469 | /* vdelay */ 0x16, | 477 | /* vdelay */ 0x16, |
470 | /* sheight */ 480, | 478 | /* sheight */ 480, |
479 | /* extraheight */ 0, | ||
471 | /* videostart0 */ 23) | 480 | /* videostart0 */ 23) |
472 | },{ | 481 | },{ |
473 | /* that one hopefully works with the strange timing | 482 | /* that one hopefully works with the strange timing |
@@ -497,6 +506,7 @@ const struct bttv_tvnorm bttv_tvnorms[] = { | |||
497 | /* sqwidth */ 944, | 506 | /* sqwidth */ 944, |
498 | /* vdelay */ 0x1a, | 507 | /* vdelay */ 0x1a, |
499 | /* sheight */ 480, | 508 | /* sheight */ 480, |
509 | /* extraheight */ 0, | ||
500 | /* videostart0 */ 23) | 510 | /* videostart0 */ 23) |
501 | } | 511 | } |
502 | }; | 512 | }; |