diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-22 07:58:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:43 -0400 |
commit | 459a52fab2c42cd5fadfd51fdcfc6dea8107fabf (patch) | |
tree | 81da83277798541d0f83ba9baf2b42d324366866 /drivers | |
parent | d2a35fb172845fe75c40a3ee9c95656c7c115e48 (diff) |
V4L/DVB (6090): ivtv-fb: correct transparency bit reporting
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fb.c | 9 |
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 | } |