diff options
-rw-r--r-- | drivers/video/via/viafbdev.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index b417259868a8..b1569a73e4bd 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
@@ -160,11 +160,17 @@ static int viafb_set_par(struct fb_info *info) | |||
160 | DEBUG_MSG(KERN_INFO "viafb_set_par!\n"); | 160 | DEBUG_MSG(KERN_INFO "viafb_set_par!\n"); |
161 | 161 | ||
162 | viapar->depth = fb_get_color_depth(&info->var, &info->fix); | 162 | viapar->depth = fb_get_color_depth(&info->var, &info->fix); |
163 | viafb_update_device_setting(info->var.xres, info->var.yres, | 163 | viafb_update_device_setting(viafbinfo->var.xres, viafbinfo->var.yres, |
164 | info->var.bits_per_pixel, viafb_refresh, 0); | 164 | viafbinfo->var.bits_per_pixel, viafb_refresh, 0); |
165 | 165 | ||
166 | vmode_entry = viafb_get_mode(info->var.xres, info->var.yres); | 166 | vmode_entry = viafb_get_mode(viafbinfo->var.xres, viafbinfo->var.yres); |
167 | if (viafb_SAMM_ON == 1) { | 167 | if (viafb_dual_fb) { |
168 | vmode_entry1 = viafb_get_mode(viafbinfo1->var.xres, | ||
169 | viafbinfo1->var.yres); | ||
170 | viafb_update_device_setting(viafbinfo1->var.xres, | ||
171 | viafbinfo1->var.yres, viafbinfo1->var.bits_per_pixel, | ||
172 | viafb_refresh1, 1); | ||
173 | } else if (viafb_SAMM_ON == 1) { | ||
168 | DEBUG_MSG(KERN_INFO | 174 | DEBUG_MSG(KERN_INFO |
169 | "viafb_second_xres = %d, viafb_second_yres = %d, bpp = %d\n", | 175 | "viafb_second_xres = %d, viafb_second_yres = %d, bpp = %d\n", |
170 | viafb_second_xres, viafb_second_yres, viafb_bpp1); | 176 | viafb_second_xres, viafb_second_yres, viafb_bpp1); |
@@ -177,7 +183,11 @@ static int viafb_set_par(struct fb_info *info) | |||
177 | 183 | ||
178 | if (vmode_entry) { | 184 | if (vmode_entry) { |
179 | viafb_update_fix(info); | 185 | viafb_update_fix(info); |
180 | viafb_bpp = info->var.bits_per_pixel; | 186 | if (viafb_dual_fb && viapar->iga_path == IGA2) |
187 | viafb_bpp1 = info->var.bits_per_pixel; | ||
188 | else | ||
189 | viafb_bpp = info->var.bits_per_pixel; | ||
190 | |||
181 | if (info->var.accel_flags & FB_ACCELF_TEXT) | 191 | if (info->var.accel_flags & FB_ACCELF_TEXT) |
182 | info->flags &= ~FBINFO_HWACCEL_DISABLED; | 192 | info->flags &= ~FBINFO_HWACCEL_DISABLED; |
183 | else | 193 | else |