diff options
Diffstat (limited to 'drivers/media/video/zoran_device.c')
-rw-r--r-- | drivers/media/video/zoran_device.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/drivers/media/video/zoran_device.c b/drivers/media/video/zoran_device.c index b0752767ee4f..d9640ec4b9b0 100644 --- a/drivers/media/video/zoran_device.c +++ b/drivers/media/video/zoran_device.c | |||
@@ -429,8 +429,6 @@ zr36057_set_vfe (struct zoran *zr, | |||
429 | reg |= (HorDcm << ZR36057_VFESPFR_HorDcm); | 429 | reg |= (HorDcm << ZR36057_VFESPFR_HorDcm); |
430 | reg |= (VerDcm << ZR36057_VFESPFR_VerDcm); | 430 | reg |= (VerDcm << ZR36057_VFESPFR_VerDcm); |
431 | reg |= (DispMode << ZR36057_VFESPFR_DispMode); | 431 | reg |= (DispMode << ZR36057_VFESPFR_DispMode); |
432 | if (format->palette != VIDEO_PALETTE_YUV422 && format->palette != VIDEO_PALETTE_YUYV) | ||
433 | reg |= ZR36057_VFESPFR_LittleEndian; | ||
434 | /* RJ: I don't know, why the following has to be the opposite | 432 | /* RJ: I don't know, why the following has to be the opposite |
435 | * of the corresponding ZR36060 setting, but only this way | 433 | * of the corresponding ZR36060 setting, but only this way |
436 | * we get the correct colors when uncompressing to the screen */ | 434 | * we get the correct colors when uncompressing to the screen */ |
@@ -439,36 +437,6 @@ zr36057_set_vfe (struct zoran *zr, | |||
439 | if (zr->norm != VIDEO_MODE_NTSC) | 437 | if (zr->norm != VIDEO_MODE_NTSC) |
440 | reg |= ZR36057_VFESPFR_ExtFl; // NEEDED!!!!!!! Wolfgang | 438 | reg |= ZR36057_VFESPFR_ExtFl; // NEEDED!!!!!!! Wolfgang |
441 | reg |= ZR36057_VFESPFR_TopField; | 439 | reg |= ZR36057_VFESPFR_TopField; |
442 | switch (format->palette) { | ||
443 | |||
444 | case VIDEO_PALETTE_YUYV: | ||
445 | case VIDEO_PALETTE_YUV422: | ||
446 | reg |= ZR36057_VFESPFR_YUV422; | ||
447 | break; | ||
448 | |||
449 | case VIDEO_PALETTE_RGB555: | ||
450 | reg |= ZR36057_VFESPFR_RGB555 | ZR36057_VFESPFR_ErrDif; | ||
451 | break; | ||
452 | |||
453 | case VIDEO_PALETTE_RGB565: | ||
454 | reg |= ZR36057_VFESPFR_RGB565 | ZR36057_VFESPFR_ErrDif; | ||
455 | break; | ||
456 | |||
457 | case VIDEO_PALETTE_RGB24: | ||
458 | reg |= ZR36057_VFESPFR_RGB888 | ZR36057_VFESPFR_Pack24; | ||
459 | break; | ||
460 | |||
461 | case VIDEO_PALETTE_RGB32: | ||
462 | reg |= ZR36057_VFESPFR_RGB888; | ||
463 | break; | ||
464 | |||
465 | default: | ||
466 | dprintk(1, | ||
467 | KERN_INFO "%s: set_vfe() - unknown color_fmt=%x\n", | ||
468 | ZR_DEVNAME(zr), format->palette); | ||
469 | return; | ||
470 | |||
471 | } | ||
472 | if (HorDcm >= 48) { | 440 | if (HorDcm >= 48) { |
473 | reg |= 3 << ZR36057_VFESPFR_HFilter; /* 5 tap filter */ | 441 | reg |= 3 << ZR36057_VFESPFR_HFilter; /* 5 tap filter */ |
474 | } else if (HorDcm >= 32) { | 442 | } else if (HorDcm >= 32) { |
@@ -476,6 +444,7 @@ zr36057_set_vfe (struct zoran *zr, | |||
476 | } else if (HorDcm >= 16) { | 444 | } else if (HorDcm >= 16) { |
477 | reg |= 1 << ZR36057_VFESPFR_HFilter; /* 3 tap filter */ | 445 | reg |= 1 << ZR36057_VFESPFR_HFilter; /* 3 tap filter */ |
478 | } | 446 | } |
447 | reg |= format->vfespfr; | ||
479 | btwrite(reg, ZR36057_VFESPFR); | 448 | btwrite(reg, ZR36057_VFESPFR); |
480 | 449 | ||
481 | /* display configuration */ | 450 | /* display configuration */ |