move exception handling that process auto level value when create effect is called...
authorj-zero.hwang <j-zero.hwang@samsung.com>
Fri, 22 Mar 2013 01:01:49 +0000 (10:01 +0900)
committerj-zero.hwang <j-zero.hwang@samsung.com>
Mon, 25 Mar 2013 00:49:27 +0000 (09:49 +0900)
Change-Id: Id932621e12f0d0d5aa93c63f5cfcf5679465943b

tizen/DEVICE/src/haptic_module_internal.c

index 4c9f45f..863d69b 100644 (file)
@@ -478,13 +478,7 @@ static int _create_effect(unsigned char *vibe_buffer, int max_bufsize, haptic_mo
        MODULE_LOG("effect count : %d", max_elemcnt);
        for (i = 0; i < max_elemcnt; ++i) {
                elem.duration = elem_arr[i].haptic_duration;
-               if (elem_arr[i].haptic_level == HAPTIC_FEEDBACK_AUTO) {
-                       vconf_get_int(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, &elem_arr[i].haptic_level);
-                       elem.level = elem_arr[i].haptic_level*20;
-               }
-               else {
-                       elem.level = elem_arr[i].haptic_level;
-               }
+               elem.level = elem_arr[i].haptic_level;
                MODULE_LOG("%d) duration : %d, level : %d", i, elem_arr[i].haptic_duration, elem_arr[i].haptic_level);
 
                status = InsertHapticElement(vibe_buffer, max_bufsize, &elem);