X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm_sound.c;h=3f86b9b85b2d06c660579acb8f84d07a0b030023;hb=17df1f324f997a625b527997b887df488bf9da67;hp=0ed72c29ff63c79d58f49e3e10a23c85d194369e;hpb=c215d6ad51d8bab2238f3c0ca3311cc62003abff;p=platform%2Fcore%2Fmultimedia%2Flibmm-sound.git diff --git a/mm_sound.c b/mm_sound.c index 0ed72c2..3f86b9b 100644 --- a/mm_sound.c +++ b/mm_sound.c @@ -157,13 +157,10 @@ int mm_sound_volume_set_value(volume_type_t volume_type, const unsigned int volu return MM_ERROR_INVALID_ARGUMENT; } - ret = mm_sound_util_volume_set_value_by_type(volume_type, volume_level); - if (ret == MM_ERROR_NONE) { - /* update shared memory value */ - if(MM_ERROR_NONE != mm_sound_client_set_volume_by_type(volume_type, volume_level)) { - debug_error("Can not set volume to shared memory 0x%x\n", ret); - } - } + /* request daemon to set volume */ + ret = mm_sound_client_set_volume_by_type(volume_type, volume_level); + if (MM_ERROR_NONE != ret) + debug_error("Can not set volume, ret=0x%x", ret); return ret; }