Changeset 1531


Ignore:
Timestamp:
01/06/12 22:39:47 (17 months ago)
Author:
philmoz
Message:

Update to finsig_dryos.c:

  • fix camera name for ixus230hs
  • fix focus_len_table for ixus230hs and sx150is
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/sx150is/sub/100a/stubs_entry.S

    r1448 r1531  
    3333//DEF(playrec_mode                            ,0x00002eb8) // Found @0xff8877d0,          stubs_min = 0x00002eb8 (0x00002eb8) 
    3434//DEF(zoom_status                             ,0x0000d520) // Found @0xffafaf48,          stubs_min = 0x0000d520 (0x0000d520) 
     35// focus_len_table contains zoom focus lengths for use in 'get_focal_length' (main.c). 
     36// each entry contains 2 int value(s), the first is the zoom focus length. 
     37// there are 128 entries in the table - set NUM_FL to 128 
     38DEF(focus_len_table                         ,0xfffeabd8) // Found @0xfffeabd8 
    3539//DEF(zoom_busy                               ,0x00006dcc) // Found @0xff98138c,          stubs_min = 0x00006dcc (0x6DB0+0x1C) 
    3640//DEF(focus_busy                              ,0x00006c5c) // Found @0xff97b73c,          stubs_min = 0x00006c5c (0x6C54+8) 
  • trunk/tools/finsig_dryos.c

    r1486 r1531  
    842842        cam_idx = (((fw->base==0xFF000000)?0xFFF40190:0xFFFE0170) - fw->base) / 4;  
    843843        pid_idx = (((fw->base==0xFF000000)?0xFFF40040:0xFFFE0040) - fw->base) / 4;  
     844        if ((cam_idx < fw->size) && (strncmp((char*)&fw->buf[cam_idx],"Canon ",6) != 0)) 
     845            cam_idx = (((fw->base==0xFF000000)?0xFFF40170:0xFFFE0170) - fw->base) / 4;  
    844846        break; 
    845847        } 
     
    31843186            { 
    31853187                int mul = 1; 
    3186                 if (fw->buf[k+1] == 100) mul = 3; 
     3188                if ((fw->buf[k+1] == 100) && (fw->buf[k+2] == 0)) mul = 3; 
     3189                if ((fw->buf[k+1] == 100) && (fw->buf[k+2] != 0)) mul = 2; 
    31873190                for (k1 = k + mul; (k1 < fw->size) && (fw->buf[k1] > fw->buf[k1-mul]) && (fw->buf[k1] != max_focus_len); k1 += mul) ; 
    31883191                if (fw->buf[k1] == max_focus_len) 
Note: See TracChangeset for help on using the changeset viewer.