audio: change mute/volume controls for using soft control api
Volume and Mute controls are changed to use specific session and
soft control api. So, HAL also changed to use new api.
bug: 10023401
Change-Id: I686d8495293242097817d870477f59ed154a6b31
Signed-off-by: hyunsub.na <hyunsub.na@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
Signed-off-by: sangwoo <sangwoo2.park@lge.com>
diff --git a/hal/msm8974/platform.h b/hal/msm8974/platform.h
index f843fa8..a6b3c31 100644
--- a/hal/msm8974/platform.h
+++ b/hal/msm8974/platform.h
@@ -94,6 +94,13 @@
#define DEFAULT_OUTPUT_SAMPLING_RATE 48000
+#define ALL_SESSION_VSID 0xFFFFFFFF
+#define DEFAULT_MUTE_RAMP_DURATION 500
+#define DEFAULT_VOLUME_RAMP_DURATION_MS 20
+#define VOLUME_SET 0
+#define MUTE_SET 1
+#define VOLUME_CTL_PARAM_NUM 3
+
/*
* tinyAlsa library interprets period size as number of frames
* one frame = channel_count * sizeof (pcm sample)