From: Sangchul Lee Date: Mon, 21 Oct 2019 03:58:43 +0000 (+0900) Subject: Set volume mixer control value X-Git-Tag: submit/tizen/20191021.043551^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56a4d9b9830b5dfe0ccfc11bbcb9e272e8b1802c;p=platform%2Fadaptation%2Fap_broadcom%2Faudio-hal-bcm2837.git Set volume mixer control value 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 --- diff --git a/packaging/audio-hal-bcm2837.spec b/packaging/audio-hal-bcm2837.spec index 8d7d9c9..7ca9559 100644 --- a/packaging/audio-hal-bcm2837.spec +++ b/packaging/audio-hal-bcm2837.spec @@ -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 diff --git a/tizen-audio-volume.c b/tizen-audio-volume.c index 4ecf326..7257b32 100644 --- a/tizen-audio-volume.c +++ b/tizen-audio-volume.c @@ -29,6 +29,7 @@ #include #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; }