Index: format/app_shutter_dy.format
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/format/app_shutter_dy.format	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/format/app_shutter_dy.format	(working copy)
@@ -322,3 +322,29 @@
 1 FOUSEUP
 2 FOUSEDOWN
 )
+
+amemalloc mem_shutter_android_move_mid(
+1 mem_shutter_up_press_count
+1 mem_shutter_up_time
+1 mem_shutter_down_press_count
+1 mem_shutter_down_time
+1 mem_shutter_up_auto_time
+1 mem_shutter_down_auto_time
+1 mem_shutter_double_flag
+
+1 mem_shutter_auto_fuction_time
+1 mem_shutter_auto_fuction_status
+1 mem_shutter_auto_fuction_count
+2 mem_shutter_auto_fuction_up_press
+2 mem_shutter_auto_fuction_down_press
+2 mem_shutter_auto_fuction_release
+
+
+
+)
+
+(
+1 FUNUP
+2 FUNDWON
+)
+
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/otp.dat	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/otp.dat	(working copy)
@@ -11,8 +11,8 @@
 00
 aa
 55
-b6
-10
+82
+12
 c2
 84
 00
@@ -24,35 +24,35 @@
 c0
 01
 01
-2c
+22
 c0
 08
 81
-35
+2b
 c0
 0a
 03
-55
+90
 c0
 0a
 81
-c7
+bd
 c0
 0c
 01
-d5
+cb
 c0
 0c
 81
-94
+8a
 c0
 0d
 01
-47
+3d
 c0
 12
 83
-77
+b2
 c0
 13
 80
@@ -63,8 +63,8 @@
 c3
 c0
 52
-81
-01
+80
+fc
 c0
 53
 00
@@ -76,15 +76,15 @@
 c0
 55
 00
-eb
+e6
 c0
 55
 84
-22
+95
 c0
 58
 81
-e7
+dd
 c0
 62
 00
@@ -92,11 +92,11 @@
 c0
 62
 81
-dc
+d2
 c0
 6d
 03
-3e
+79
 20
 20
 23
@@ -108,19 +108,19 @@
 c0
 12
 80
-d4
+cf
 c0
 13
 00
-d9
+d4
 c0
 1c
 83
-71
+ac
 c0
 26
 83
-75
+b0
 c1
 7f
 80
@@ -583,16 +583,16 @@
 01
 20
 20
-03
-d0
+04
+43
 70
 4f
 da
 02
 20
 20
-03
-f2
+04
+65
 20
 40
 00
@@ -793,14 +793,6 @@
 20
 7c
 a1
-6f
-e0
-cf
-9f
-24
-3a
-00
-cd
 70
 4c
 00
@@ -812,7 +804,7 @@
 20
 40
 00
-d0
+cb
 20
 40
 65
@@ -833,18 +825,6 @@
 60
 00
 00
-18
-e2
-7e
-00
-c1
-80
-80
-00
-20
-20
-00
-c5
 df
 e0
 00
@@ -972,7 +952,7 @@
 c0
 00
 80
-f1
+ec
 20
 20
 66
@@ -988,7 +968,7 @@
 c0
 03
 00
-f5
+f0
 20
 60
 00
@@ -996,7 +976,7 @@
 20
 20
 00
-f6
+f1
 70
 4e
 aa
@@ -1016,7 +996,7 @@
 20
 20
 00
-fb
+f6
 58
 00
 04
@@ -1041,14 +1021,6 @@
 60
 00
 00
-6f
-e0
-cf
-9f
-24
-3a
-01
-12
 20
 40
 43
@@ -1104,23 +1076,11 @@
 24
 3a
 01
-15
+0b
 20
 20
 65
 47
-18
-e2
-7e
-00
-c1
-80
-80
-00
-20
-20
-01
-03
 70
 4e
 c0
@@ -1140,15 +1100,15 @@
 c0
 03
 01
-21
+17
 c0
 03
 81
-25
+1b
 c0
 04
 01
-1f
+15
 da
 60
 4a
@@ -1172,11 +1132,11 @@
 20
 40
 01
-29
+1f
 20
 40
-03
-ea
+04
+5d
 da
 60
 4f
@@ -1188,11 +1148,11 @@
 20
 40
 01
-29
+1f
 20
 40
 04
-0c
+7f
 da
 60
 4f
@@ -1248,7 +1208,7 @@
 20
 20
 01
-2c
+22
 70
 8a
 0f
@@ -1368,7 +1328,7 @@
 20
 40
 01
-9c
+92
 6f
 e0
 c4
@@ -1380,7 +1340,7 @@
 24
 55
 81
-43
+39
 37
 d9
 82
@@ -1396,7 +1356,7 @@
 c0
 08
 01
-89
+7f
 6f
 e0
 c4
@@ -1440,7 +1400,7 @@
 20
 40
 01
-7b
+71
 70
 80
 43
@@ -1464,15 +1424,15 @@
 20
 40
 03
-10
+4b
 20
 40
 03
-3b
+76
 20
 40
 01
-75
+6b
 70
 8a
 30
@@ -1504,7 +1464,7 @@
 20
 20
 03
-3d
+78
 20
 75
 80
@@ -1536,7 +1496,7 @@
 c0
 0c
 01
-81
+77
 6f
 e0
 c4
@@ -1628,7 +1588,7 @@
 20
 20
 01
-62
+58
 6f
 e0
 c1
@@ -1636,7 +1596,7 @@
 c0
 05
 01
-97
+8d
 20
 20
 22
@@ -1664,7 +1624,7 @@
 20
 35
 81
-c3
+b9
 6f
 e2
 02
@@ -1832,7 +1792,7 @@
 20
 20
 01
-ad
+a3
 20
 40
 68
@@ -1977,10 +1937,14 @@
 40
 42
 a3
+70
+80
+d7
+3f
 20
 40
 01
-df
+d5
 20
 40
 64
@@ -2000,7 +1964,7 @@
 58
 00
 02
-7e
+a3
 67
 e1
 43
@@ -2008,7 +1972,7 @@
 58
 00
 02
-5b
+80
 67
 e1
 43
@@ -2016,7 +1980,7 @@
 58
 00
 02
-70
+95
 67
 e1
 43
@@ -2032,7 +1996,7 @@
 58
 00
 02
-0a
+01
 67
 e1
 43
@@ -2048,7 +2012,7 @@
 58
 00
 02
-1f
+17
 67
 e1
 43
@@ -2112,7 +2076,11 @@
 20
 40
 02
-0f
+07
+70
+80
+d7
+3e
 20
 40
 70
@@ -2156,7 +2124,7 @@
 20
 22
 82
-1a
+12
 1f
 e2
 04
@@ -2164,7 +2132,7 @@
 20
 40
 02
-1d
+15
 1a
 20
 a2
@@ -2172,7 +2140,7 @@
 c2
 00
 02
-14
+0c
 20
 60
 00
@@ -2188,19 +2156,35 @@
 20
 40
 02
-27
+34
 20
 40
 02
-2f
+42
 20
 40
 02
-37
+23
 20
 40
 02
-3f
+31
+20
+40
+02
+45
+20
+40
+02
+51
+20
+40
+02
+5d
+20
+40
+02
+65
 20
 40
 67
@@ -2212,71 +2196,239 @@
 20
 40
 02
-54
+79
 20
 20
 64
 d9
 da
 60
-4f
-f8
+4e
+cd
 da
 40
 02
-2a
+26
 20
 20
 42
 e0
 6f
 e0
-cf
-f7
+ce
+cc
 70
-4f
-f7
+4e
+cc
 00
 c0
 00
 82
-f5
+2b
 c0
 01
-00
-8d
+02
+2d
 20
 60
 00
 00
 da
 60
+4a
+7b
+20
+20
+63
+71
+70
+4e
+d0
+01
+70
+4e
+cf
+14
+da
+60
 4f
-fa
+c6
+20
+20
+63
+71
+da
+60
+4e
+cf
 da
 40
 02
-32
+2d
 20
 20
 42
 e0
-6f
-e0
-cf
-f9
-70
-4f
-f9
-00
-c0
-00
+da
+60
+4e
+cb
+da
+40
+02
+37
+20
+20
+42
+e0
+6f
+e0
+ce
+ca
+70
+4e
+ca
+00
+c0
+00
 82
+3c
+c0
+01
+02
+3e
+20
+60
+00
+00
+da
+60
+4a
+30
+20
+20
+63
+71
+70
+4e
+d0
+01
+70
+4e
+ce
+14
+da
+60
+4f
+b8
+20
+20
+63
+71
+da
+60
+4e
+ce
+da
+40
+02
+3e
+20
+20
+42
+e0
+da
+60
+4f
+f8
+da
+40
+02
+48
+20
+20
+42
+e0
+6f
+e0
+cf
+f7
+70
+4f
 f7
+00
+c0
+00
+83
+30
+c0
+01
+00
+8d
+c0
+01
+82
+4e
+20
+60
+00
+00
+70
+4e
+d1
+01
+70
+4e
+d2
+01
+20
+60
+00
+00
+da
+60
+4f
+fa
+da
+40
+02
+54
+20
+20
+42
+e0
+6f
+e0
+cf
+f9
+70
+4f
+f9
+00
+c0
+00
+83
+32
 c0
 01
 00
 8f
+c0
+01
+82
+5a
+20
+60
+00
+00
+70
+4e
+d1
+01
+70
+4e
+d2
+02
 20
 60
 00
@@ -2288,7 +2440,7 @@
 da
 40
 02
-3a
+60
 20
 20
 42
@@ -2308,7 +2460,7 @@
 c0
 01
 03
-00
+3b
 20
 60
 00
@@ -2320,7 +2472,7 @@
 da
 40
 02
-42
+68
 20
 20
 42
@@ -2336,15 +2488,15 @@
 c0
 00
 82
-48
+6e
 c0
 01
 02
-4c
+72
 c0
 01
 82
-50
+76
 20
 60
 00
@@ -2390,10 +2542,6 @@
 00
 00
 20
-40
-43
-23
-20
 20
 67
 77
@@ -2404,7 +2552,7 @@
 da
 40
 02
-57
+7c
 20
 20
 42
@@ -2432,19 +2580,19 @@
 c0
 20
 02
-67
+8c
 c0
 18
 82
-65
+8a
 c0
 0a
 82
-62
+87
 c0
 0a
 02
-61
+86
 20
 20
 64
@@ -2496,7 +2644,7 @@
 24
 3a
 02
-7b
+a0
 6f
 e4
 4f
@@ -2516,7 +2664,7 @@
 c0
 12
 02
-73
+98
 20
 60
 00
@@ -2540,7 +2688,7 @@
 24
 3a
 02
-7b
+a0
 6f
 e4
 4f
@@ -2576,11 +2724,11 @@
 20
 40
 03
-a0
+db
 20
 40
 02
-8b
+b0
 d8
 e0
 00
@@ -2616,7 +2764,7 @@
 20
 20
 02
-a5
+ca
 6f
 e1
 44
@@ -2624,7 +2772,7 @@
 c2
 84
 82
-90
+b5
 d8
 a0
 45
@@ -2672,7 +2820,7 @@
 24
 21
 02
-9c
+c1
 6f
 e0
 c9
@@ -2784,7 +2932,7 @@
 20
 40
 02
-c2
+e7
 6f
 e1
 06
@@ -2832,7 +2980,7 @@
 c2
 00
 02
-ae
+d3
 20
 60
 00
@@ -2876,7 +3024,7 @@
 20
 20
 02
-cc
+f1
 1a
 60
 8c
@@ -2888,7 +3036,7 @@
 20
 20
 02
-cf
+f4
 20
 40
 65
@@ -2903,48 +3051,136 @@
 00
 6f
 e0
+ce
+d2
+24
+3a
+04
+36
+6f
+e0
+cf
+9f
+24
+3a
+67
+7c
+6f
+e0
+ce
+d0
+24
+3a
+03
+0a
+6f
+e0
 cf
 da
 24
 3a
-02
-e7
+03
+22
 20
 40
 03
-08
+43
 18
 e2
 7e
 00
 c0
 01
-82
-dd
+83
+18
 c0
 00
-82
-e2
+83
+1d
 c0
-03
 02
-eb
+03
+0e
 c0
+01
 03
-82
-f0
+13
 c0
-04
-02
-f9
+03
+03
+26
 c0
-04
+03
 83
-07
+2b
+c0
+04
+03
+34
+c0
+04
+83
+42
 20
 20
 65
 58
+70
+4e
+d0
+00
+70
+4e
+ce
+00
+70
+4e
+cf
+00
+20
+60
+00
+00
+6f
+e0
+ce
+ca
+1f
+e0
+fe
+01
+67
+e0
+ce
+ca
+70
+4e
+cb
+04
+20
+60
+00
+00
+6f
+e0
+ce
+cc
+1f
+e0
+fe
+01
+67
+e0
+ce
+cc
+70
+4e
+cd
+04
+20
+60
+00
+00
 6f
 e0
 cf
@@ -2992,11 +3228,11 @@
 c0
 00
 81
-21
+17
 c0
 01
 01
-25
+1b
 20
 60
 00
@@ -3059,8 +3295,8 @@
 71
 20
 40
-02
-fb
+03
+36
 20
 20
 63
@@ -3088,7 +3324,7 @@
 20
 40
 03
-02
+3d
 20
 20
 63
@@ -3200,7 +3436,7 @@
 20
 40
 03
-2d
+68
 2a
 2f
 fe
@@ -3232,7 +3468,7 @@
 20
 40
 03
-2d
+68
 d8
 a0
 8a
@@ -3260,7 +3496,7 @@
 20
 21
 03
-22
+5d
 20
 20
 21
@@ -3364,7 +3600,7 @@
 20
 40
 03
-4e
+89
 70
 8a
 08
@@ -3408,7 +3644,7 @@
 c3
 02
 83
-4f
+8a
 68
 59
 01
@@ -3444,7 +3680,7 @@
 c0
 08
 03
-6e
+a9
 58
 00
 57
@@ -3488,7 +3724,7 @@
 c0
 08
 03
-6b
+a6
 58
 00
 2b
@@ -3524,7 +3760,7 @@
 20
 20
 03
-67
+a2
 58
 00
 83
@@ -3536,7 +3772,7 @@
 20
 20
 03
-5c
+97
 6f
 e0
 c3
@@ -3584,7 +3820,7 @@
 20
 40
 03
-88
+c3
 6f
 e0
 c0
@@ -3696,7 +3932,7 @@
 20
 22
 83
-9b
+d6
 e7
 e0
 80
@@ -3716,7 +3952,7 @@
 c2
 00
 03
-95
+d0
 1a
 42
 04
@@ -3756,7 +3992,7 @@
 24
 3a
 03
-c2
+fe
 1a
 42
 7e
@@ -3772,7 +4008,7 @@
 24
 21
 03
-b4
+ef
 1a
 20
 a2
@@ -3784,7 +4020,7 @@
 24
 3a
 03
-a6
+e1
 da
 20
 00
@@ -3792,7 +4028,7 @@
 20
 40
 03
-bb
+f6
 1c
 42
 7e
@@ -3811,8 +4047,8 @@
 30
 24
 3a
-03
-c5
+04
+01
 1a
 22
 7e
@@ -3845,58 +4081,282 @@
 7a
 00
 00
-1f
-e0
-ff
-ff
-67
-e0
-cf
-d4
-20
-40
-03
-c9
-20
-20
-03
-bc
-1a
-42
-7e
+1f
+e0
+ff
+ff
+67
+e0
+cf
+d4
+20
+40
+04
+3c
+20
+40
+04
+05
+20
+20
+03
+f7
+1a
+42
+7e
+00
+18
+40
+84
+a0
+20
+20
+03
+e5
+1a
+22
+7e
+00
+20
+7a
+00
+00
+18
+40
+85
+60
+20
+20
+03
+f4
+da
+60
+4e
+d1
+da
+40
+04
+08
+20
+20
+42
+e0
+6f
+e0
+ce
+d2
+c0
+00
+84
+0c
+c0
+01
+04
+21
+20
+60
+00
+00
+70
+4e
+d1
+01
+70
+49
+e5
+01
+6f
+e0
+ce
+d3
+1f
+e0
+fe
+01
+67
+e0
+ce
+d3
+1f
+e6
+7c
+3c
+20
+22
+84
+19
+da
+60
+4e
+d4
+20
+40
+04
+87
+ef
+e1
+00
+3f
+1f
+e0
+fe
+14
+e7
+e1
+00
+11
+20
+20
+63
+71
+70
+4e
+d3
+00
+da
+60
+4e
+d8
+20
+40
+63
+71
+da
+60
+4e
+d4
+20
+40
+04
+87
+58
+00
+08
+50
+e7
+e1
+00
+11
+20
+60
+00
+00
+70
+4e
+d1
+01
+70
+49
+e5
+01
+6f
+e0
+ce
+d3
+1f
+e0
+fe
+01
+67
+e0
+ce
+d3
+1f
+e6
+7c
+3c
+20
+22
+84
+2e
+da
+60
+4e
+d6
+20
+40
+04
+87
+ef
+e1
+00
+3f
+1f
+e0
+ff
+ec
+e7
+e1
+00
+11
+20
+20
+63
+71
+70
+4e
+d3
+00
+da
+60
+4e
+d8
+20
+40
+63
+71
+da
+60
+4e
+d6
+20
+40
+04
+87
+58
+00
+0d
+00
+e7
+e1
+00
+11
+20
+60
+00
+00
+6f
+e0
+ce
+d2
+70
+4e
+d2
+00
+70
+4e
+d1
+00
+c0
 00
-18
-40
 84
-a0
-20
-20
-03
-aa
-1a
-22
-7e
-00
+19
+c0
+01
+04
+2e
 20
-7a
+60
 00
 00
-18
-40
-85
-60
-20
-20
-03
-b9
 da
 60
 4f
 d9
 da
 40
-03
-cc
+04
+3f
 20
 20
 42
@@ -3907,12 +4367,12 @@
 da
 c0
 00
-83
-d0
+84
+43
 c0
 01
-03
-f2
+04
+65
 20
 60
 00
@@ -3923,12 +4383,12 @@
 30
 24
 3a
-03
-de
+04
+51
 20
 40
 04
-1c
+8f
 6f
 e0
 cf
@@ -3947,8 +4407,8 @@
 5a
 20
 22
-83
-ea
+84
+5d
 da
 60
 4f
@@ -3956,7 +4416,7 @@
 20
 40
 04
-14
+87
 ef
 e1
 00
@@ -3976,7 +4436,7 @@
 20
 40
 04
-1f
+92
 6f
 e0
 cf
@@ -3995,8 +4455,8 @@
 5a
 20
 42
-83
-ea
+84
+5d
 da
 60
 4f
@@ -4004,7 +4464,7 @@
 20
 40
 04
-14
+87
 ef
 e1
 00
@@ -4040,7 +4500,7 @@
 20
 40
 04
-14
+87
 58
 00
 07
@@ -4060,11 +4520,11 @@
 24
 3a
 04
-00
+73
 20
 40
 04
-1c
+8f
 6f
 e0
 cf
@@ -4084,7 +4544,7 @@
 20
 22
 84
-0c
+7f
 da
 60
 4f
@@ -4092,7 +4552,7 @@
 20
 40
 04
-14
+87
 ef
 e1
 00
@@ -4112,7 +4572,7 @@
 20
 40
 04
-1f
+92
 6f
 e0
 cf
@@ -4132,7 +4592,7 @@
 20
 42
 84
-0c
+7f
 da
 60
 4f
@@ -4140,7 +4600,7 @@
 20
 40
 04
-14
+87
 ef
 e1
 00
@@ -4176,7 +4636,7 @@
 20
 40
 04
-14
+87
 58
 00
 0a
@@ -4264,7 +4724,7 @@
 20
 20
 04
-27
+9a
 58
 00
 05
@@ -4289,8 +4749,8 @@
 60
 00
 00
-53
-2e
+39
+5a
 aa
 55
 40
@@ -4606,6 +5066,22 @@
 00
 aa
 55
+02
+00
+c9
+4b
+09
+00
+aa
+55
+02
+00
+de
+4b
+1d
+00
+aa
+55
 08
 00
 93
@@ -4654,7 +5130,7 @@
 00
 d2
 4b
-34
+09
 00
 aa
 55
@@ -4679,7 +5155,7 @@
 00
 ab
 4a
-33
+08
 00
 aa
 55
@@ -4778,6 +5254,22 @@
 00
 aa
 55
+02
+00
+a2
+4a
+08
+00
+aa
+55
+02
+00
+b7
+4a
+1d
+00
+aa
+55
 08
 00
 6c
@@ -4822,6 +5314,30 @@
 00
 aa
 55
+02
+00
+d4
+4e
+06
+00
+aa
+55
+02
+00
+d8
+4e
+1d
+00
+aa
+55
+02
+00
+d6
+4e
+07
+00
+aa
+55
 09
 00
 b8
@@ -5012,58 +5528,58 @@
 00
 00
 00
-02
-1b
-00
-10
-00
-00
-00
-00
-00
-00
-00
-00
-00
-02
-1b
-00
-20
-00
-00
-00
-00
-00
-00
-00
-00
-00
-02
-1b
-00
-40
-00
-00
-00
-00
-00
-00
-00
+0a
+23
 00
+83
 00
-02
-1b
+06
+50
+09
+04
 00
-80
+06
+50
+0b
+0a
+23
 00
+83
 00
+06
 00
+0d
+04
 00
+06
 00
+0a
+0a
+23
 00
+83
+f0
+07
+70
+0c
+87
+f0
+07
+70
+0d
+0a
+23
 00
+83
 00
+08
+70
+0d
+04
 00
+08
+70
+0d
 0a
 23
 00
@@ -6510,7 +7026,7 @@
 aa
 aa
 55
-4f
-81
-06
-e3
+ce
+96
+4e
+d2
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/ramcode.rom	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/ramcode.rom	(working copy)
@@ -1,30 +1,30 @@
 c2840016
 c000004f
-c001012c
-c0088135
-c00a0355
-c00a81c7
-c00c01d5
-c00c8194
-c00d0147
-c0128377
+c0010122
+c008812b
+c00a0390
+c00a81bd
+c00c01cb
+c00c818a
+c00d013d
+c01283b2
 c013807a
 c05180c3
-c0528101
+c05280fc
 c0530085
 c0538099
-c05500eb
-c0558422
-c05881e7
+c05500e6
+c0558495
+c05881dd
 c062001d
-c06281dc
-c06d033e
+c06281d2
+c06d0379
 2020235a
 c0120053
-c01280d4
-c01300d9
-c01c8371
-c0268375
+c01280cf
+c01300d4
+c01c83ac
+c02683b0
 c17f8000
 2020235a
 20406b34
@@ -140,9 +140,9 @@
 c0048098
 202065a2
 704fda01
-202003d0
+20200443
 704fda02
-202003f2
+20200465
 20400093
 20206371
 da604aab
@@ -193,19 +193,14 @@
 1feff20a
 d8a045fd
 20207ca1
-6fe0cf9f
-243a00cd
 704c0001
 20404323
-204000d0
+204000cb
 20406561
 20216500
 18e27e00
 67e0cec5
 20600000
-18e27e00
-c1808000
-202000c5
 dfe0000a
 98effe00
 da6045fd
@@ -237,26 +232,24 @@
 efe18006
 67e1c397
 c003e704
-c00080f1
+c00080ec
 202066db
 18c08dfe
 efe08006
-c00300f5
+c00300f0
 20600000
-202000f6
+202000f1
 704eaa01
 7049e400
 704eb200
 7049e50a
-202000fb
+202000f6
 58000409
 67e148d6
 58004709
 67e14902
 67e1494c
 20600000
-6fe0cf9f
-243a0112
 20404325
 dfe0000a
 98effe00
@@ -270,29 +263,26 @@
 24417806
 1a608c09
 efe08006
-243a0115
+243a010b
 20206547
-18e27e00
-c1808000
-20200103
 704ec001
 2040656b
 20406769
 18e27e00
-c0030121
-c0038125
-c004011f
+c0030117
+c003811b
+c0040115
 da604aae
 dfe00003
 2020655a
 da604ac0
 20206371
-20400129
-204003ea
+2040011f
+2040045d
 da604fc4
 20206371
-20400129
-2040040c
+2040011f
+2040047f
 da604fd2
 20206371
 704fd900
@@ -306,7 +296,7 @@
 20402018
 2040310f
 2040248c
-2020012c
+20200122
 708a0f60
 708a10aa
 708a127a
@@ -336,14 +326,14 @@
 708a844a
 708a8540
 708a16fe
-2040019c
+20400192
 6fe0c436
 205a70d7
-24558143
+24558139
 37d98200
 70813b5f
 6fe0c099
-c0080189
+c008017f
 6fe0c438
 1fe1fe04
 67f08a02
@@ -354,15 +344,15 @@
 67f18a73
 708a8660
 708a8b3b
-2040017b
+20400171
 70804300
 70804205
 58557474
 67f18968
 7089606e
-20400310
-2040033b
-20400175
+2040034b
+20400376
+2040016b
 708a3006
 708a32dd
 708a88e0
@@ -370,7 +360,7 @@
 708a3178
 7041480c
 20406f4e
-2020033d
+20200378
 20758000
 37d98200
 6fe0c11c
@@ -378,7 +368,7 @@
 37d98200
 20600000
 6fe0c099
-c00c0181
+c00c0177
 6fe0c438
 1fe1fe06
 67f08a02
@@ -401,16 +391,16 @@
 67f18a73
 708a762a
 70890204
-20200162
+20200158
 6fe0c141
-c0050197
+c005018d
 2020220e
 708a1425
 58a93f3f
 67f18a60
 708a631f
 20600000
-203581c3
+203581b9
 6fe2020d
 207a0000
 37d98200
@@ -452,7 +442,7 @@
 6fe1415b
 207a0000
 67e1020f
-202001ad
+202001a3
 2040686f
 204021ba
 18002a08
@@ -489,24 +479,25 @@
 20758000
 204070d7
 204042a3
-204001df
+7080d73f
+204001d5
 20406459
 58000001
 67e144f6
 7040a60a
-5800027e
+580002a3
 67e143db
-5800025b
+58000280
 67e143dd
-58000270
+58000295
 67e143df
 580062d3
 67e143d3
-5800020a
+58000201
 67e143d5
 58006329
 67e143d7
-5800021f
+58000217
 67e143e3
 58006505
 67e14524
@@ -522,7 +513,8 @@
 202062bd
 20406f35
 7044ecff
-2040020f
+20400207
+7080d73e
 2040701b
 2020739a
 6fe0c6ce
@@ -533,54 +525,100 @@
 efe08011
 6848c6cf
 98467c00
-2022821a
+20228212
 1fe20400
-2040021d
+20400215
 1a20a201
-c2000214
+c200020c
 20600000
 79200407
 20206edd
-20400227
-2040022f
-20400237
-2040023f
+20400234
+20400242
+20400223
+20400231
+20400245
+20400251
+2040025d
+20400265
 2040676c
 2040675a
-20400254
+20400279
 202064d9
+da604ecd
+da400226
+202042e0
+6fe0cecc
+704ecc00
+c000822b
+c001022d
+20600000
+da604a7b
+20206371
+704ed001
+704ecf14
+da604fc6
+20206371
+da604ecf
+da40022d
+202042e0
+da604ecb
+da400237
+202042e0
+6fe0ceca
+704eca00
+c000823c
+c001023e
+20600000
+da604a30
+20206371
+704ed001
+704ece14
+da604fb8
+20206371
+da604ece
+da40023e
+202042e0
 da604ff8
-da40022a
+da400248
 202042e0
 6fe0cff7
 704ff700
-c00082f5
+c0008330
 c001008d
+c001824e
+20600000
+704ed101
+704ed201
 20600000
 da604ffa
-da400232
+da400254
 202042e0
 6fe0cff9
 704ff900
-c00082f7
+c0008332
 c001008f
+c001825a
+20600000
+704ed101
+704ed202
 20600000
 da604ff5
-da40023a
+da400260
 202042e0
 6fe0cff6
 704ff600
 c000e740
-c0010300
+c001033b
 20600000
 da604ff3
-da400242
+da400268
 202042e0
 6fe0cff4
 704ff400
-c0008248
-c001024c
-c0018250
+c000826e
+c0010272
+c0018276
 20600000
 6fe0cf9f
 243a677c
@@ -592,20 +630,19 @@
 20206371
 6fe0cf9f
 247a0000
-20404323
 20206777
 da604518
-da400257
+da40027c
 202042e7
 70451c02
 20404325
 2040634e
 2020639e
 1a627e00
-c0200267
-c0188265
-c00a8262
-c00a0261
+c020028c
+c018828a
+c00a8287
+c00a0286
 202064e0
 202064f4
 6fe14512
@@ -618,18 +655,18 @@
 6fe4450a
 207a0000
 20406730
-243a027b
+243a02a0
 6fe44f02
 67e442d3
 20202e93
 6fe14398
-c0120273
+c0120298
 20600000
 204078ad
 7044f101
 20406730
 2040432b
-243a027b
+243a02a0
 6fe44f02
 67e442d3
 20202e93
@@ -638,8 +675,8 @@
 20202e93
 dfe0000a
 204070c8
-204003a0
-2040028b
+204003db
+204002b0
 d8e00009
 20407cef
 247a0000
@@ -648,9 +685,9 @@
 20407ce1
 78547c00
 2040701b
-202002a5
+202002ca
 6fe144e9
-c2848290
+c28482b5
 d8a045da
 df200023
 20207ca1
@@ -662,7 +699,7 @@
 1c427e00
 98460400
 20628000
-2421029c
+242102c1
 6fe0c9e5
 98467c00
 20610000
@@ -690,7 +727,7 @@
 67e1068c
 18e27e00
 67e1067a
-204002c2
+204002e7
 6fe1068c
 1fe22600
 6fe1067a
@@ -702,7 +739,7 @@
 1fe0a60a
 6fe10678
 1fe27200
-c20002ae
+c20002d3
 20600000
 1a60a405
 efe20012
@@ -713,24 +750,46 @@
 24417806
 580003e8
 98467c00
-202002cc
+202002f1
 1a608c04
 efe08006
-202002cf
+202002f4
 2040656b
 20406561
 20216500
+6fe0ced2
+243a0436
+6fe0cf9f
+243a677c
+6fe0ced0
+243a030a
 6fe0cfda
-243a02e7
-20400308
+243a0322
+20400343
 18e27e00
-c00182dd
-c00082e2
-c00302eb
-c00382f0
-c00402f9
-c0048307
+c0018318
+c000831d
+c002030e
+c0010313
+c0030326
+c003832b
+c0040334
+c0048342
 20206558
+704ed000
+704ece00
+704ecf00
+20600000
+6fe0ceca
+1fe0fe01
+67e0ceca
+704ecb04
+20600000
+6fe0cecc
+1fe0fe01
+67e0cecc
+704ecd04
+20600000
 6fe0cff6
 1fe0fe01
 67e0cff6
@@ -742,8 +801,8 @@
 704ff304
 20600000
 6fe0cfda
-c0008121
-c0010125
+c0008117
+c001011b
 20600000
 6fe0cff7
 1fe0fe01
@@ -759,14 +818,14 @@
 20206371
 da604fc6
 20206371
-204002fb
+20400336
 20206371
 da604a8a
 20406730
 207a0000
 da604bb1
 20600000
-20400302
+2040033d
 20206371
 da604fdc
 20406730
@@ -794,7 +853,7 @@
 708ac200
 708ac300
 d8e00006
-2040032d
+20400368
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -802,14 +861,14 @@
 d8e00005
 2040211c
 2040211e
-2040032d
+20400368
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-20210322
+2021035d
 2020214f
 2000003c
 58000f00
@@ -835,7 +894,7 @@
 6fe0c409
 67f080cd
 20000bb8
-2040034e
+20400389
 708a08c1
 6a40c419
 df200008
@@ -846,7 +905,7 @@
 20600000
 7080cc03
 6ff08129
-c302834f
+c302838a
 68590164
 6049440a
 7080cc00
@@ -855,7 +914,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c008036e
+c00803a9
 58005762
 67f10907
 70890103
@@ -866,7 +925,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c008036b
+c00803a6
 58002bb1
 67f10907
 c6978000
@@ -875,10 +934,10 @@
 20600000
 58004189
 67f10907
-20200367
+202003a2
 58008312
 67f10907
-2020035c
+20200397
 6fe0c334
 c1000000
 c001b04a
@@ -890,7 +949,7 @@
 6fe240ad
 9840fe00
 67e240ad
-20400388
+204003c3
 6fe0c0cb
 79207e04
 204023e1
@@ -918,12 +977,12 @@
 efe08011
 e8408013
 98467c00
-2022839b
+202283d6
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000395
+c20003d0
 1a420400
 20600000
 da200000
@@ -933,21 +992,21 @@
 98467c00
 24417806
 20406730
-243a03c2
+243a03fe
 1a427e00
 18408440
 98467c00
-242103b4
+242103ef
 1a20a201
 1a217e0f
-243a03a6
+243a03e1
 da200000
-204003bb
+204003f6
 1c427e00
 67e24fd5
 20600000
 20406730
-243a03c5
+243a0401
 1a227e00
 207a0000
 184085c0
@@ -958,44 +1017,100 @@
 207a0000
 1fe0ffff
 67e0cfd4
-204003c9
-202003bc
+2040043c
+20400405
+202003f7
 1a427e00
 184084a0
-202003aa
+202003e5
 1a227e00
 207a0000
 18408560
-202003b9
+202003f4
+da604ed1
+da400408
+202042e0
+6fe0ced2
+c000840c
+c0010421
+20600000
+704ed101
+7049e501
+6fe0ced3
+1fe0fe01
+67e0ced3
+1fe67c3c
+20228419
+da604ed4
+20400487
+efe1003f
+1fe0fe14
+e7e10011
+20206371
+704ed300
+da604ed8
+20406371
+da604ed4
+20400487
+58000850
+e7e10011
+20600000
+704ed101
+7049e501
+6fe0ced3
+1fe0fe01
+67e0ced3
+1fe67c3c
+2022842e
+da604ed6
+20400487
+efe1003f
+1fe0ffec
+e7e10011
+20206371
+704ed300
+da604ed8
+20406371
+da604ed6
+20400487
+58000d00
+e7e10011
+20600000
+6fe0ced2
+704ed200
+704ed100
+c0008419
+c001042e
+20600000
 da604fd9
-da4003cc
+da40043f
 202042e0
 6fe0cfda
-c00083d0
-c00103f2
+c0008443
+c0010465
 20600000
 20406730
-243a03de
-2040041c
+243a0451
+2040048f
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-202283ea
+2022845d
 da604fc2
-20400414
+20400487
 efe1003f
 1fe0fe08
 e7e10011
 20206371
-2040041f
+20400492
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-204283ea
+2042845d
 da604fc2
-20400414
+20400487
 efe1003f
 1fe0fe12
 e7e10011
@@ -1004,32 +1119,32 @@
 da604fc4
 20406371
 da604fc2
-20400414
+20400487
 58000700
 e7e10011
 20600000
 20406730
-243a0400
-2040041c
+243a0473
+2040048f
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-2022840c
+2022847f
 da604fd0
-20400414
+20400487
 efe1003f
 1fe0fff8
 e7e10011
 20206371
-2040041f
+20400492
 6fe0cfdb
 1fe0fe01
 67e0cfdb
 1fe67c5a
-2042840c
+2042847f
 da604fd0
-20400414
+20400487
 efe1003f
 1fe0ffee
 e7e10011
@@ -1038,7 +1153,7 @@
 da604fd2
 20406371
 da604fd0
-20400414
+20400487
 58000a00
 e7e10011
 20600000
@@ -1060,7 +1175,7 @@
 7049e401
 704eb201
 7049e53c
-20200427
+2020049a
 58000509
 67e148d6
 58003809
Index: output/sched.rom
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/sched.rom	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/output/sched.rom	(working copy)
@@ -190,6 +190,10 @@
 03 34 01 1c 00
 mem_key3_release_new_i_t:#volume decrement
 04 34 01 1c 00
+mem_key3_long_press_i:
+09 00
+mem_key3_long_release_i:
+1d 00
 #up
 mem_key4_release_new_i:
 19 18 17 16 15 14 13 00
@@ -203,7 +207,7 @@
 mem_key6_release_new_i:
 34 1d 00
 mem_key6_long_press_i:
-34 00
+09 00
 mem_key6_long_release_i:
 1d 00
 ################################### ios config end ######################################
@@ -213,7 +217,7 @@
 mem_key6_release_new:
 33 1d 00
 mem_key6_long_press:
-33 00
+08 00
 mem_key6_long_release:
 1d 00
 #right
@@ -237,6 +241,10 @@
 03 33 01 1c 00
 mem_key3_release_new_t:#volume decrement
 04 33 01 1c 00
+mem_key3_long_press:
+08 00
+mem_key3_long_release:
+1d 00
 #up
 mem_key4_release_new:
 19 18 17 16 15 14 13 00
@@ -250,6 +258,9 @@
 00
 ################################### android config  end ######################################
 
+mem_shutter_auto_fuction_up_press:06 00
+mem_shutter_auto_fuction_release:1d 00
+mem_shutter_auto_fuction_down_press:07 00
 ################################### fouse config ######################################
 # mem_fouse_up_press:1e 1f 20 21 22 23 24 25 26 00
 mem_fouse_up_press:0b 0c 0d 0e 0f 10 11 12 00
@@ -284,10 +295,10 @@
 02 1b 00 02 00 00 00 00 00 00 00 00 00 #3  volume up
 02 1b 00 04 00 00 00 00 00 00 00 00 00 #4  volume down
 02 1b 00 08 00 00 00 00 00 00 00 00 00 #5  lock
-02 1b 00 10 00 00 00 00 00 00 00 00 00 #6  ios home
-02 1b 00 20 00 00 00 00 00 00 00 00 00 #7  android home
-02 1b 00 40 00 00 00 00 00 00 00 00 00 #8  zoom in
-02 1b 00 80 00 00 00 00 00 00 00 00 00 #9  zoom out
+0a 23 00 83 00 06 50 09 04 00 06 50 0b #6  auto up
+0a 23 00 83 00 06 00 0d 04 00 06 00 0a #7  auto down
+0a 23 00 83 f0 07 70 0c 87 f0 07 70 0d #8  android xhs
+0a 23 00 83 00 08 70 0d 04 00 08 70 0d #9  ios xhs
 #up and down
 0a 23 00 00 f4 07 80 02 04 f4 07 80 02 #a
 0a 23 00 83 f4 07 80 03 04 f4 07 80 03 #b
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/program/patch.prog	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/program/patch.prog	(working copy)
@@ -259,8 +259,8 @@
 	branch clear_mem
 
 p_shutter_dy_key_press:
-	fetch 1,mem_shutter_link_loop_flag
-	nbranch p_shutter_dy_key_value_filter,blank
+	// fetch 1,mem_shutter_link_loop_flag
+	// nbranch p_shutter_dy_key_value_filter,blank
 p_shutter_dy_key_press_next:
 	jam 1,mem_shutter_key_pressed
 	call app_led_on
@@ -272,10 +272,10 @@
 	//beq SHUTTER_FUN2_KEY_NUM,p_shutter_fun2_key_press
 	rtn
 
-p_shutter_dy_key_value_filter:
-	copy queue,pdata
-	rtnne SHUTTER_LIKE_KEY_NUM
-	branch p_shutter_dy_key_press_next
+// p_shutter_dy_key_value_filter:
+// 	copy queue,pdata
+// 	rtnne SHUTTER_LIKE_KEY_NUM
+// 	branch p_shutter_dy_key_press_next
 
 p_shutter_dy_key_press_clk:
 	arg SHUTTER_KEY_CONF_SATE_BYTES,pdata
@@ -345,8 +345,8 @@
 
 p_shutter_dy_shutter_key_release:
 	// call shutter_dy_key_release_led
-	fetch 1,mem_shutter_link_loop_flag
-	nbranch p_shutter_like_release_led,blank
+	// fetch 1,mem_shutter_link_loop_flag
+	// nbranch p_shutter_like_release_led,blank
 	call app_led_off
 p_shutter_dy_shutter_key_release_time:
 	arg SHUTTER_KEY_CONF_SATE_BYTES,pdata
@@ -364,10 +364,10 @@
 	nbranch p_shutter_dy_push_queue_long_release, blank
 	branch shutter_dy_shutter_key_release_time+13
 
-p_shutter_like_release_led:
-	copy queue,pdata
-	rtnne SHUTTER_LIKE_KEY_NUM
-	branch p_shutter_dy_shutter_key_release+2
+// p_shutter_like_release_led:
+// 	// copy queue,pdata
+// 	// rtnne SHUTTER_LIKE_KEY_NUM
+// 	branch p_shutter_dy_shutter_key_release+2
 
 
 p_shutter_dy_push_queue_long_release:
@@ -645,6 +645,7 @@
 ifdef ADC_1121SB
 	call p_shutter_adc_config_init
 endif
+	jam 0x3f,0x80d7
 	call p_shutter_dy_key_conf
 	call shutter_dy_adv_conf
 	setarg 0x0001
@@ -708,6 +709,7 @@
 	call gpio_set_before_lpm
 	jam UI_BUTTON_GPIO_DISABLE,mem_ui_button_gpio
 	call p_set_key_gpio_before_hiernate
+	jam 0x3e,0x80d7
 	call keyscan_process_lpm_before
 	branch disable_authrom
 
@@ -738,6 +740,10 @@
 	call p_shutter_adc_read_timer
 	call p_shutter_low_volatage_led_timer
 endif
+	call p_shutter_check_up_release_timer
+	call p_shuter_check_up_auto_timer
+	call p_shutter_check_down_release_timer
+	call p_shuter_check_down_auto_timer
 	call p_shutter_check_fun_release_timer
 	call p_shutter_check_fun1_release_timer
 	call p_shutter_check_photo_release_timer
@@ -747,6 +753,63 @@
 	call p_shutter_check_sleep_timer
 	branch shutter_dy_check_power_off_timer
 
+p_shutter_check_down_release_timer:
+	arg mem_shutter_down_time,regc
+	arg p_shutter_check_down_timeout,regb
+	branch timer_single_step
+
+p_shutter_check_down_timeout:
+	fetch 1,mem_shutter_down_press_count
+	jam 0,mem_shutter_down_press_count
+	beq 1,p_shutter_down_press_one
+	beq 2,p_shutter_down_press_double
+	rtn	
+
+p_shutter_down_press_one:
+	arg mem_key5_release_new,regc
+	branch push_buffer_in_queue
+
+p_shutter_down_press_double:
+	jam 1,mem_shutter_double_flag
+	jam 0x14,mem_shutter_down_auto_time 
+	arg mem_fouse_down_press,regc
+	branch push_buffer_in_queue
+
+p_shuter_check_down_auto_timer:
+	arg mem_shutter_down_auto_time,regc
+	arg p_shutter_down_press_double,regb
+	branch timer_single_step
+
+
+p_shutter_check_up_release_timer:
+	arg mem_shutter_up_time,regc
+	arg p_shutter_check_up_timeout,regb
+	branch timer_single_step
+
+p_shutter_check_up_timeout:
+	fetch 1,mem_shutter_up_press_count
+	jam 0,mem_shutter_up_press_count
+	beq 1,p_shutter_up_press_one
+	beq 2,p_shutter_up_press_double
+	rtn	
+
+p_shutter_up_press_one:
+	arg mem_key0_release_new,regc
+	branch push_buffer_in_queue
+
+
+p_shutter_up_press_double:
+	jam 1,mem_shutter_double_flag
+	jam 0x14,mem_shutter_up_auto_time
+	arg mem_fouse_up_press,regc
+	branch push_buffer_in_queue
+
+p_shuter_check_up_auto_timer:
+	arg mem_shutter_up_auto_time,regc
+	arg p_shutter_up_press_double,regb
+	branch timer_single_step
+
+
 p_shutter_check_fun_release_timer:
 	arg mem_shutter_fun_release_time,regc
 	arg p_shutter_fun_release_timeout,regb
@@ -757,8 +820,14 @@
 	jam 0,mem_shutter_fun_release_count
 	beq 1,p_shutter_fun_fuction_event
 	beq 2,p_shutter_key_fun_long_press
+	beq 3,p_shutter_fun_press_three
 	rtn	
 
+p_shutter_fun_press_three:
+	jam 1,mem_shutter_auto_fuction_time
+	jam FUNUP,mem_shutter_auto_fuction_status
+	rtn
+
 p_shutter_check_fun1_release_timer:
 	arg mem_shutter_fun1_release_time,regc
 	arg p_shutter_fun1_release_timeout,regb
@@ -769,6 +838,12 @@
 	jam 0,mem_shutter_fun1_release_count
 	beq 1,p_shutter_fun1_fuction_event
 	beq 2,p_shutter_key_fun1_long_press
+	beq 3,p_shutter_fun1_press_three
+	rtn
+
+p_shutter_fun1_press_three:
+	jam 1,mem_shutter_auto_fuction_time
+	jam FUNDWON,mem_shutter_auto_fuction_status
 	rtn
 
 p_shutter_check_photo_release_timer:
@@ -811,7 +886,7 @@
 p_shutter_like_release_three:
 	fetch 1,mem_shutter_link_loop_flag
 	nrtn blank
-	call app_led_on
+	// call app_led_on
 	branch shutter_dy_link_key_long_press
 
 
@@ -979,18 +1054,47 @@
 p_shutter_dy_push_queue_release1_next:
 	call shutter_dy_jude_queue_size
 	branch shutter_dy_over_clear,positive
+	fetch 1,mem_shutter_auto_fuction_status
+	nbranch p_shutter_auto_fuction_clear,blank
+	fetch 1,mem_shutter_link_loop_flag
+	nbranch shutter_dy_clear_link_key_timer,blank
+	fetch 1,mem_shutter_double_flag
+	nbranch p_shutter_double_fuction_clear,blank
 	fetch 1,mem_shutter_fouse_select
 	nbranch p_shutter_fouse_fuction_disable,blank
 	call p_shutter_dy_le_get_release_ptr
 	copy queue,pdata
 	beq SHUTTER_PHOTO_KEY_NUM,p_shutter_photo_key_release
 	beq SHUTTER_LIKE_KEY_NUM,p_shutter_like_key_release
+	beq SHUTTER_UP_KEY_NUM,p_shutter_up_key_release
+	beq SHUTTER_DOWN_KEY_NUM,p_shutter_down_key_release
 	beq SHUTTER_FUN_KEY_NUM,p_shutter_fun_key_release   //fouse up
 	beq SHUTTER_FUN1_KEY_NUM,p_shutter_fun1_key_release // fouse down
 	beq SHUTTER_FUN2_KEY_NUM,p_shutter_fun2_key_release // step mode
 	beq SHUTTER_FUN3_KEY_NUM,p_shutter_fun3_key_release // double photo
 	branch shutter_dy_push_queue_release1_next+4
 
+p_shutter_double_fuction_clear:
+	jam 0,mem_shutter_double_flag
+	jam 0,mem_shutter_up_auto_time
+	jam 0,mem_shutter_down_auto_time
+	rtn
+
+p_shutter_up_key_release:
+	fetch 1,mem_shutter_up_press_count
+	increase 1,pdata
+	store 1,mem_shutter_up_press_count
+	jam 4,mem_shutter_up_time
+	rtn
+
+p_shutter_down_key_release:
+	fetch 1,mem_shutter_down_press_count
+	increase 1,pdata
+	store 1,mem_shutter_down_press_count
+	jam 4,mem_shutter_down_time
+	rtn
+
+
 p_shutter_photo_key_release:
 	fetch 1,mem_shutter_photo_release_count
 	increase 1,pdata
@@ -1294,8 +1398,10 @@
 	increase -1,pdata
 	store 1,mem_shutter_key_evt_timer_count
 	call p_shutter_long_fouse_timer
+	call p_shutter_auto_fuction_timer
 	branch p_key_evt_50ms_loop
 
+
 p_shutter_ios_timer:
 	copy regb,pdata
 	increase 160,temp    //50ms
@@ -1307,6 +1413,77 @@
 	increase -160,temp    //50ms
 	branch p_key_evt_ui_timer_check_end+5
 
+
+p_shutter_auto_fuction_timer:
+	arg mem_shutter_auto_fuction_time,regc
+	arg p_shutter_auto_fuction_timeout,regb
+	branch timer_single_step
+
+p_shutter_auto_fuction_timeout:
+	fetch 1,mem_shutter_auto_fuction_status
+	beq FUNUP,p_shutter_auto_fuction_up
+	beq FUNDWON,p_shutter_auto_fuction_down
+	rtn	
+
+p_shutter_auto_fuction_up:
+	jam 1,mem_shutter_auto_fuction_time
+	jam 1,mem_send_data_delay
+	fetch 1,mem_shutter_auto_fuction_count
+	increase 1,pdata
+	store 1,mem_shutter_auto_fuction_count
+	sub pdata,60,null
+	branch p_shutter_auto_up_init,zero
+	arg mem_shutter_auto_fuction_up_press,regc
+	call p_shutter_dy_find_value_list_position
+	ifetch 2,pdata
+	add pdata,20,pdata
+	istore 2,rega
+	branch push_buffer_in_queue
+
+p_shutter_auto_up_init:
+	jam 0,mem_shutter_auto_fuction_count
+	arg mem_shutter_auto_fuction_release,regc
+	call push_buffer_in_queue
+	arg mem_shutter_auto_fuction_up_press,regc
+	call p_shutter_dy_find_value_list_position
+	setarg 0x0850
+	istore 2,rega
+	rtn
+
+p_shutter_auto_fuction_down:
+	jam 1,mem_shutter_auto_fuction_time
+	jam 1,mem_send_data_delay
+	fetch 1,mem_shutter_auto_fuction_count
+	increase 1,pdata
+	store 1,mem_shutter_auto_fuction_count
+	sub pdata,60,null
+	branch p_shutter_auto_down_init,zero
+	arg mem_shutter_auto_fuction_down_press,regc
+	call p_shutter_dy_find_value_list_position
+	ifetch 2,pdata
+	add pdata,-20,pdata
+	istore 2,rega
+	branch push_buffer_in_queue
+
+p_shutter_auto_down_init:
+	jam 0,mem_shutter_auto_fuction_count
+	arg mem_shutter_auto_fuction_release,regc
+	call push_buffer_in_queue
+	arg mem_shutter_auto_fuction_down_press,regc
+	call p_shutter_dy_find_value_list_position
+	setarg 0x0d00
+	istore 2,rega
+	rtn
+
+p_shutter_auto_fuction_clear:
+	fetch 1,mem_shutter_auto_fuction_status
+	jam 0,mem_shutter_auto_fuction_status
+	jam 0,mem_shutter_auto_fuction_time
+	beq FUNUP,p_shutter_auto_up_init
+	beq FUNDWON,p_shutter_auto_down_init
+	rtn
+
+///////////////////////////////////// fouse ///////////////////////
 p_shutter_long_fouse_timer:
 	arg mem_shutter_dy_fouse_time,regc
 	arg p_shutter_dy_fouse_timeout,regb
Index: sched/shutter_dy.dat
===================================================================
--- /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/sched/shutter_dy.dat	(revision 6388)
+++ /1121s/branch/shutter/branch/dy/VIP/yc1088s_vip_P2TK_fouse/sched/shutter_dy.dat	(working copy)
@@ -123,6 +123,10 @@
 03 34 01 1c 00
 mem_key3_release_new_i_t:#volume decrement
 04 34 01 1c 00
+mem_key3_long_press_i:
+09 00
+mem_key3_long_release_i:
+1d 00
 #up
 mem_key4_release_new_i:
 19 18 17 16 15 14 13 00
@@ -136,7 +140,7 @@
 mem_key6_release_new_i:
 34 1d 00
 mem_key6_long_press_i:
-34 00
+09 00
 mem_key6_long_release_i:
 1d 00
 ################################### ios config end ######################################
@@ -146,7 +150,7 @@
 mem_key6_release_new:
 33 1d 00
 mem_key6_long_press:
-33 00
+08 00
 mem_key6_long_release:
 1d 00
 #right
@@ -170,6 +174,10 @@
 03 33 01 1c 00
 mem_key3_release_new_t:#volume decrement
 04 33 01 1c 00
+mem_key3_long_press:
+08 00
+mem_key3_long_release:
+1d 00
 #up
 mem_key4_release_new:
 19 18 17 16 15 14 13 00
@@ -183,6 +191,9 @@
 00
 ################################### android config  end ######################################
 
+mem_shutter_auto_fuction_up_press:06 00
+mem_shutter_auto_fuction_release:1d 00
+mem_shutter_auto_fuction_down_press:07 00
 ################################### fouse config ######################################
 # mem_fouse_up_press:1e 1f 20 21 22 23 24 25 26 00
 mem_fouse_up_press:0b 0c 0d 0e 0f 10 11 12 00
@@ -217,10 +228,10 @@
 02 1b 00 02 00 00 00 00 00 00 00 00 00 #3  volume up
 02 1b 00 04 00 00 00 00 00 00 00 00 00 #4  volume down
 02 1b 00 08 00 00 00 00 00 00 00 00 00 #5  lock
-02 1b 00 10 00 00 00 00 00 00 00 00 00 #6  ios home
-02 1b 00 20 00 00 00 00 00 00 00 00 00 #7  android home
-02 1b 00 40 00 00 00 00 00 00 00 00 00 #8  zoom in
-02 1b 00 80 00 00 00 00 00 00 00 00 00 #9  zoom out
+0a 23 00 83 00 06 50 09 04 00 06 50 0b #6  auto up
+0a 23 00 83 00 06 00 0d 04 00 06 00 0a #7  auto down
+0a 23 00 83 f0 07 70 0c 87 f0 07 70 0d #8  android xhs
+0a 23 00 83 00 08 70 0d 04 00 08 70 0d #9  ios xhs
 #up and down
 0a 23 00 00 f4 07 80 02 04 f4 07 80 02 #a
 0a 23 00 83 f4 07 80 03 04 f4 07 80 03 #b
