feedback: Add feedback pattern strength type for common profile 33/303333/1 accepted/tizen/unified/20231228.165727 accepted/tizen/unified/riscv/20240103.054607
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 12 Dec 2023 07:47:43 +0000 (16:47 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 22 Dec 2023 07:53:56 +0000 (16:53 +0900)
Certain feedback patterns must be played without system/media sound volume dependency.
To remove dependency, add specific pattern-volume type rule.

Change-Id: I703268cce7882f24902e6bbc7cbcdfcc1ad5677f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/check.c

index e5a8177..4844c51 100644 (file)
@@ -2162,6 +2162,10 @@ static int common_get_strength_type(int type, int pattern)
                        return VOLUME_TYPE_SYSTEM|VOLUME_GAIN_DIALER;
                else if (pattern == FEEDBACK_PATTERN_VOLUME_KEY)
                        return VOLUME_TYPE_RINGTONE;
+               else if (pattern == FEEDBACK_PATTERN_ERROR)
+                       return VOLUME_TYPE_NOTIFICATION;
+               else if (pattern == FEEDBACK_PATTERN_TIMER_ENDING)
+                       return VOLUME_TYPE_ALARM;
                else
                        return VOLUME_TYPE_SYSTEM;
        } else if (CHECK_VIBRATION(type)) {