Set volume mixer control value 86/216086/2 submit/tizen/20191021.043551
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 21 Oct 2019 03:58:43 +0000 (12:58 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 21 Oct 2019 04:17:34 +0000 (13:17 +0900)
It had been set inside of UCM with a verb, but we removed the UCM
codes in the previous patch, Now it is added to _audio_volume_init()
and it is set with the previous value.

[Version] 0.1.7
[Issue Type] Bug fix

Change-Id: I383ea92485f450258f309a17bef16714dfc3579f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/audio-hal-bcm2837.spec
tizen-audio-volume.c

index 8d7d9c9..7ca9559 100644 (file)
@@ -1,6 +1,6 @@
 Name:       audio-hal-bcm2837
 Summary:    TIZEN Audio HAL for BCM2837
-Version:    0.1.6
+Version:    0.1.7
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 4ecf326..7257b32 100644 (file)
@@ -29,6 +29,7 @@
 #include <iniparser.h>
 
 #include "tizen-audio-internal.h"
+#include "tizen-audio-impl.h"
 
 #define VOLUME_INI_DEFAULT_PATH     SYSCONFDIR"/multimedia/mmfw_audio_volume.ini" /* SYSCONFDIR is defined at .spec */
 #define VOLUME_INI_TEMP_PATH        "/opt/system/mmfw_audio_volume.ini"
@@ -290,6 +291,8 @@ audio_return_t _audio_volume_init(audio_hal_t *ah)
         return AUDIO_ERR_UNDEFINED;
     }
 
+    _mixer_control_set_value(ah, "PCM Playback Volume", -663); /* value of 90% */
+
     return audio_ret;
 }