summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaeyoung Kim <ty317.kim@samsung.com>2015-06-20 17:57:19 +0900
committerTaeyoung Kim <ty317.kim@samsung.com>2015-11-11 21:30:59 -0800
commit994cdfd6bb1d38e1c98291e80e932ff0f720ed05 (patch)
tree3bde93018f4a581ef88e4d9ea4bb3e7a9ca1532c /src
parentf9339fef0fcbda01541abcf38f04073911155254 (diff)
downloadlibsvi-994cdfd6bb1d38e1c98291e80e932ff0f720ed05.tar.gz
libsvi-994cdfd6bb1d38e1c98291e80e932ff0f720ed05.tar.bz2
libsvi-994cdfd6bb1d38e1c98291e80e932ff0f720ed05.zip
feedback: fix errors for initialization and dead code
Change-Id: I22b9407d5f3e1232fea154027c02c1e282f8fb29 Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/sound.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sound.c b/src/sound.c
index b6f7fe4..1a90b7f 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -101,6 +101,11 @@ static void sound_init(void)
if (vconf_get_bool(VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL, &keytone_sndstatus) < 0)
_W("VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL ==> FAIL!!");
+ if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sndstatus) < 0) {
+ _D("fail to get sound status, will work as turning off");
+ sndstatus = 0;
+ }
+
/* add watch for status value */
vconf_notify_key_changed(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, feedback_touch_sndstatus_cb, NULL);
vconf_notify_key_changed(VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL, feedback_keytone_sndstatus_cb, NULL);