# \[PATCH 8/9\] atyfb: Remove code that sets sync polarity unconditionally

- Subsystems: FRAMEBUFFER LAYER, THE REST
- Maintainers: Helge Deller, Linus Torvalds
- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2005/08/13455414/t

## \[PATCH 8/9\] atyfb: Remove code that sets sync polarity unconditionally

- From: Antonino A. Daplas \<adaplas@gmail.com\>
- Date: 2005-08-20 00:32:38 
- Message: https://ratatoskr.run/linux-fbdev/2005/08/13455414.md

```text
   Currently, atyfb has code that sets the hsync and vsync polarity based on
   the current video mode, without letting the user override the settings.

   Remove this particular code.  The sync polarities are set by the PROM,
   the user or by the videomode.

   From: Alexander Kern [ref]
   Signed-off-by: Alexander Kern [ref]
   Signed-off-by: Antonino Daplas [ref]
---

atyfb_base.c |   14 --------------
1 files changed, 14 deletions(-)

diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -911,20 +911,6 @@ static int aty_var_to_crtc(const struct 		vdisplay  = par->lcd_height;
#endif

-	if(vdisplay < 400) {
-		h_sync_pol = 1;
-		v_sync_pol = 0;
-	} else if(vdisplay < 480) {
-		h_sync_pol = 0;
-		v_sync_pol = 1;
-	} else if(vdisplay < 768) {
-		h_sync_pol = 0;
-		v_sync_pol = 0;
-	} else {
-		h_sync_pol = 1;
-		v_sync_pol = 1;
-	}
-
	v_disp--;
	v_sync_strt--;
	v_sync_end--;



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
```
