Commit 7de57d95 authored by Robert Sprowson's avatar Robert Sprowson

Update to use SyncPol interlace flags

This driver: cannot do interlaced sync, cannot DMA two different interlaced fields (support is currently switched out with the SupportInterlace switch).
Requires Kernel-6_21 or later.
parent ada0df77
...@@ -285,7 +285,6 @@ VersionBCD SETBCD Module_Version ...@@ -285,7 +285,6 @@ VersionBCD SETBCD Module_Version
VersionBCDVal DCD VersionBCD<<8 VersionBCDVal DCD VersionBCD<<8
ControlListItems ControlListItems
DCD ControlList_Interlaced
DCD ControlList_ExtraBytes DCD ControlList_ExtraBytes
DCD ControlList_NColour DCD ControlList_NColour
DCD ControlList_ModeFlags DCD ControlList_ModeFlags
......
...@@ -606,7 +606,6 @@ IPUFormats ...@@ -606,7 +606,6 @@ IPUFormats
GetIPUFormat ROUT GetIPUFormat ROUT
Entry "a1,v1-v4" Entry "a1,v1-v4"
MOV a2, #-1 MOV a2, #-1
MOV a3, #0
MOV a4, #0 MOV a4, #0
LDR v1, [a1, #VIDCList3_PixelDepth] LDR v1, [a1, #VIDCList3_PixelDepth]
; Calculate default NColour, ModeFlags ; Calculate default NColour, ModeFlags
...@@ -616,6 +615,11 @@ GetIPUFormat ROUT ...@@ -616,6 +615,11 @@ GetIPUFormat ROUT
CMP v1, #3 CMP v1, #3
MOVEQ v3, #ModeFlag_FullPalette MOVEQ v3, #ModeFlag_FullPalette
MOVNE v3, #0 MOVNE v3, #0
; Check if fields are interlaced
LDR lr, [a1, #VIDCList3_SyncPol]
AND a3, lr, #SyncPol_Interlace :OR: SyncPol_InterlaceFields
TEQ a3, #SyncPol_Interlace :OR: SyncPol_InterlaceFields
MOVEQ a3, #1
; Now walk the control list ; Now walk the control list
ADD a1, a1, #VIDCList3_ControlList ADD a1, a1, #VIDCList3_ControlList
10 10
...@@ -626,9 +630,6 @@ GetIPUFormat ROUT ...@@ -626,9 +630,6 @@ GetIPUFormat ROUT
TEQ v4, #ControlList_ExtraBytes TEQ v4, #ControlList_ExtraBytes
MOVEQ a4, lr MOVEQ a4, lr
BEQ %BT10 BEQ %BT10
TEQ v4, #ControlList_Interlaced
MOVEQ a3, lr
BEQ %BT10
TEQ v4, #ControlList_NColour TEQ v4, #ControlList_NColour
MOVEQ v2, lr MOVEQ v2, lr
BEQ %BT10 BEQ %BT10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment