aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/ivtv/ivtv-fb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fb.c b/drivers/media/video/ivtv/ivtv-fb.c
index 008076543aca..7618cd47a35d 100644
--- a/drivers/media/video/ivtv/ivtv-fb.c
+++ b/drivers/media/video/ivtv/ivtv-fb.c
@@ -608,9 +608,6 @@ static int _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv)
608 var->blue.length = 8; 608 var->blue.length = 8;
609 } 609 }
610 else if (var->bits_per_pixel == 16) { 610 else if (var->bits_per_pixel == 16) {
611 var->transp.offset = 0;
612 var->transp.length = 0;
613
614 /* To find out the true mode, check green length */ 611 /* To find out the true mode, check green length */
615 switch (var->green.length) { 612 switch (var->green.length) {
616 case 4: 613 case 4:
@@ -620,6 +617,8 @@ static int _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv)
620 var->green.length = 4; 617 var->green.length = 4;
621 var->blue.offset = 0; 618 var->blue.offset = 0;
622 var->blue.length = 4; 619 var->blue.length = 4;
620 var->transp.offset = 12;
621 var->transp.length = 1;
623 break; 622 break;
624 case 5: 623 case 5:
625 var->red.offset = 10; 624 var->red.offset = 10;
@@ -628,6 +627,8 @@ static int _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv)
628 var->green.length = 5; 627 var->green.length = 5;
629 var->blue.offset = 0; 628 var->blue.offset = 0;
630 var->blue.length = 5; 629 var->blue.length = 5;
630 var->transp.offset = 15;
631 var->transp.length = 1;
631 break; 632 break;
632 default: 633 default:
633 var->red.offset = 11; 634 var->red.offset = 11;
@@ -636,6 +637,8 @@ static int _ivtvfb_check_var(struct fb_var_screeninfo *var, struct ivtv *itv)
636 var->green.length = 6; 637 var->green.length = 6;
637 var->blue.offset = 0; 638 var->blue.offset = 0;
638 var->blue.length = 5; 639 var->blue.length = 5;
640 var->transp.offset = 0;
641 var->transp.length = 0;
639 break; 642 break;
640 } 643 }
641 } 644 }