[Title] fix a problem that video play starts with an previous after image.
authorhj79.son <hj79.son@samsung.com>
Fri, 9 Dec 2011 12:46:36 +0000 (21:46 +0900)
committerhj79.son <hj79.son@samsung.com>
Fri, 9 Dec 2011 12:46:36 +0000 (21:46 +0900)
[Type] Bugfix
[Module] Emulator / Display
[Priority] Minor
[CQ#]
[Redmine#] 3780
[Problem]
[Cause] overlay device does not clear it's area after power off.
[Solution] clear the disabled overlay area.

tizen/hw/overlay.c

index b595712..8e7a31f 100644 (file)
@@ -22,8 +22,8 @@
 #define PCI_VENDOR_ID_SAMSUNG          0x144d
 #define PCI_DEVICE_ID_VIRTUAL_OVERLAY   0x1010
 
-#define OVERLAY_MEM_SIZE               (8192 * 1024)   // 4MB(overlay0) + 4MB(overlay1)
-#define OVERLAY_REG_SIZE               256
+#define OVERLAY_MEM_SIZE       (8192 * 1024)   // 4MB(overlay0) + 4MB(overlay1)
+#define OVERLAY_REG_SIZE       256
 #define OVERLAY1_REG_OFFSET    (OVERLAY_REG_SIZE / 2)
 
 
@@ -91,7 +91,6 @@ static void overlay_reg_write(void *opaque, target_phys_addr_t addr, uint32_t va
 {
     switch (addr) {
     case OVERLAY_POWER:
-       printf( "overlay_reg_write power:%d\n", val );
         overlay0_power = val;
         if( !overlay0_power ) {
                // clear the last overlay area.