Assembla home | Assembla project page
 

Changeset 767

Show
Ignore:
Timestamp:
06/01/09 02:25:59 (9 months ago)
Author:
reyalp
Message:

mantis #260: optical zoom and autofocus fixes from mweerden for ixus 870. Screen update not included yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/camera.h

    r765 r767  
    13321332    #define CAM_PROPSET                 2 
    13331333 
     1334    #define CAM_AF_SCAN_DURING_VIDEO_RECORD 1 
    13341335    #define CAM_BITMAP_PALETTE          1 
    13351336    #define CAM_BRACKETING              1   // XXX  
    1336     #define CAM_CAN_SD_OVER_NOT_IN_MF   1   // XXX 
    1337     #define CAM_CAN_SD_OVERRIDE         1   // XXX 
     1337    #define CAM_CAN_SD_OVER_NOT_IN_MF   1 
     1338    #define CAM_CAN_SD_OVERRIDE         1 
    13381339    #define CAM_CAN_UNLOCK_OPTICAL_ZOOM_IN_VIDEO 1 
    13391340    #define CAM_EXT_TV_RANGE            1 
     
    13491350    #define PARAM_CAMERA_NAME           4 // parameter number for GetParameterData 
    13501351     
    1351     #undef  CAM_AF_SCAN_DURING_VIDEO_RECORD // XXX  
    13521352    #undef  CAM_CAN_MUTE_MICROPHONE         // XXX 
    13531353    #undef  CAM_HAS_ERASE_BUTTON 
  • trunk/platform/ixus870_sd880/kbd.c

    r754 r767  
    3737// LDRB R2, [R1,#0x114]         R2 = a[0x114] = 0x51 
    3838// LDRB R1, [R1,#0x114]         R1 = a[0x114] = 0x51 
    39 // MOV  R2, R2,LSR#5            R2 = 0x51 >> 5 = 2 
     39// MOV  R2, R2,LSR#5            R2 = 0x51 >> 5 = 2 = SD_READONLY_REG 
    4040// LDR  R0, [R0,R2,LSL#2]       R0 = R0[2] = b[2] 
    4141// AND  R1, R1, #0x1F           R1 = 0x51 & 0x1F = 0x11 
     
    4545// BX   LR                      return 
    4646#define SD_READONLY_FLAG (0x20000)  // 1 << 0x11 
     47#define SD_READONLY_REG 2 
    4748 
    4849#define USB_MASK (0x40000) 
     
    7172        { 2, KEY_RIGHT          , 0x00000020 }, 
    7273        { 2, KEY_SET            , 0x00000100 }, 
    73         { 2, KEY_ZOOM_IN        , 0x00000008 }, 
    74         { 2, KEY_ZOOM_OUT       , 0x00000004 }, 
     74        { 2, KEY_ZOOM_IN        , 0x00000004 }, 
     75        { 2, KEY_ZOOM_OUT       , 0x00000008 }, 
    7576        { 2, KEY_MENU           , 0x00000400 }, 
    7677        { 2, KEY_DISPLAY        , 0x00000200 }, 
     
    307308        _kbd_read_keys_r2(physw_status); 
    308309 
    309         remote_key = (physw_status[2] & USB_MASK)==USB_MASK; 
     310        remote_key = (physw_status[USB_REG] & USB_MASK)==USB_MASK; 
    310311                if (remote_key)  
    311312                        remote_count += 1; 
     
    315316                } 
    316317        if (conf.remote_enable) { 
    317                 physw_status[2] = physw_status[2] & ~(SD_READONLY_FLAG | USB_MASK); 
     318#if USB_REG == SD_READONLY_REG 
     319                physw_status[USB_REG] = physw_status[USB_REG] & ~(SD_READONLY_FLAG | USB_MASK); 
     320#else 
     321                physw_status[USB_REG] = physw_status[USB_REG] & ~USB_MASK; 
     322                physw_status[SD_READONLY_REG] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
     323#endif 
    318324        } else { 
    319                 physw_status[2] = physw_status[2] & ~SD_READONLY_FLAG; 
     325                physw_status[SD_READONLY_REG] = physw_status[SD_READONLY_REG] & ~SD_READONLY_FLAG; 
    320326        } 
    321327 
  • trunk/platform/ixus870_sd880/sub/100e/stubs_entry_2.S

    r760 r767  
    3535//NHSTUB(PutOutNdFilter,0xFFA9C1FC)  // function table 
    3636NHSTUB(PutOutNdFilter,0xFFA3AD3C)  // function table TurnOffNdFilter (used ixus980) 
     37NHSTUB(ScreenLock, 0xFF9B83CC)  // via aScreenlock 
     38NHSTUB(MakeAFScan,  0xFF933E50)  // via aSsprepareseqba (function with most uses) 
     39NHSTUB(ExpCtrlTool_StartContiAE, 0xFF830D00)  // via aStartcontiae 
    3740 
    3841 
  • trunk/platform/ixus870_sd880/sub/100e/stubs_min.S

    r760 r767  
    1313DEF(enabled_refresh_physical_screen, 0xB268+0x30) // via aScreenLock, after ldr of 0xB268 
    1414DEF(playrec_mode, 0x5394+0x4) // @0xff865b40, via aShootseqapi_c (adrne/ldrne ~), between the ZoomCtrl and CameraLog above, the one below MOV R0, #1 
     15DEF(some_flag_for_af_scan, 0x9280) // second value above string "SsPrepareSeq.c"  
  • trunk/platform/ixus870_sd880/sub/101a/stubs_entry_2.S

    r760 r767  
    3535//NHSTUB(PutOutNdFilter,0xFFA9C20C)  // function table 
    3636NHSTUB(PutOutNdFilter,0xFFA3AD4C)  // function table TurnOffNdFilter (used ixus980) 
     37NHSTUB(ScreenLock, 0xFF9B83D0)  // via aScreenlock 
     38NHSTUB(MakeAFScan,  0xFF933E54)  // via aSsprepareseqba (function with most uses) 
     39NHSTUB(ExpCtrlTool_StartContiAE, 0xFF830D00)  // via aStartcontiae 
    3740 
    3841 
  • trunk/platform/ixus870_sd880/sub/101a/stubs_min.S

    r754 r767  
    1313DEF(enabled_refresh_physical_screen, 0xB268+0x30) // via aScreenLock, after ldr of 0xB268 
    1414DEF(playrec_mode, 0x5394+0x4) // @0xff865b40, via aShootseqapi_c (adrne/ldrne ~), between the ZoomCtrl and CameraLog above, the one below MOV R0, #1 
     15DEF(some_flag_for_af_scan, 0x9280) // second value above string "SsPrepareSeq.c"  
  • trunk/platform/ixus870_sd880/sub/102b/stubs_entry_2.S

    r760 r767  
    3535//NHSTUB(PutOutNdFilter,0xFFA9C20C)  // function table 
    3636NHSTUB(PutOutNdFilter,0xFFA3AD4C)  // function table TurnOffNdFilter (used ixus980) 
     37NHSTUB(ScreenLock, 0xFF9B83D0)  // via aScreenlock 
     38NHSTUB(MakeAFScan,  0xFF933E54)  // via aSsprepareseqba (function with most uses) 
     39NHSTUB(ExpCtrlTool_StartContiAE, 0xFF830D00)  // via aStartcontiae 
    3740 
    3841 
  • trunk/platform/ixus870_sd880/sub/102b/stubs_min.S

    r760 r767  
    1313DEF(enabled_refresh_physical_screen, 0xB268+0x30) // via aScreenLock, after ldr of 0xB268 
    1414DEF(playrec_mode, 0x5394+0x4) // @0xff865b40, via aShootseqapi_c (adrne/ldrne ~), between the ZoomCtrl and CameraLog above, the one below MOV R0, #1 
     15DEF(some_flag_for_af_scan, 0x9280) // second value above string "SsPrepareSeq.c"