Move volume vconf set to pulseaudio
[platform/core/multimedia/libmm-sound.git] / mm_sound.c
index 0ed72c2..3f86b9b 100644 (file)
@@ -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;
 }