Remove unused functions 90/63290/4 accepted/tizen/common/20160413.130816 accepted/tizen/ivi/20160413.082724 accepted/tizen/mobile/20160413.073203 accepted/tizen/tv/20160413.075506 accepted/tizen/wearable/20160413.080504 submit/tizen/20160412.065641
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 23 Mar 2016 05:31:08 +0000 (14:31 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 12 Apr 2016 06:44:19 +0000 (15:44 +0900)
- mm_sound_pa_cork()
- mm_sound_pa_get_latency()
- mm_sound_pa_corkall()

[Version] Release 0.10.23
[Profile] Common
[Issue Type] CleanUp

Change-Id: I3bcf4cdc2c863f820f97febe116bc9fdfdb2328e

include/mm_sound_pa_client.h
mm_sound_pa_client.c
packaging/libmm-sound.spec

index ede7b27..38f507a 100644 (file)
@@ -67,10 +67,7 @@ int mm_sound_pa_open(MMSoundHandleMode mode, mm_sound_handle_route_info *route_i
 int mm_sound_pa_read(const int handle, void* buf, const int size);
 int mm_sound_pa_write(const int handle, void* buf, const int size);
 int mm_sound_pa_close(const int handle);
-int mm_sound_pa_cork(const int handle, const int cork);
 int mm_sound_pa_drain(const int handle);
 int mm_sound_pa_flush(const int handle);
-int mm_sound_pa_get_latency(const int handle, int* latency);
-int mm_sound_pa_corkall(int cork);
 
 #endif
index d5c09a5..7095025 100644 (file)
@@ -546,27 +546,6 @@ int mm_sound_pa_close(const int handle)
 }
 
 EXPORT_API
-int mm_sound_pa_cork(const int handle, const int cork)
-{
-    mm_sound_handle_t* phandle = NULL;
-    int err = MM_ERROR_NONE;
-
-       CHECK_HANDLE_RANGE(handle);
-    GET_HANDLE_DATA(phandle, mm_sound_handle_mgr.handles, &handle, __mm_sound_handle_comparefunc);
-    if(phandle == NULL) {
-        debug_msg("phandle is null");
-        return MM_ERROR_SOUND_INTERNAL;
-    }
-
-    if (0 > pa_simple_cork(phandle->s, cork, &err)) {
-        debug_error("pa_simple_cork() failed with %s\n", pa_strerror(err));
-        err = MM_ERROR_SOUND_INTERNAL;
-    }
-
-       return err;
-}
-
-EXPORT_API
 int mm_sound_pa_drain(const int handle)
 {
     mm_sound_handle_t* phandle = NULL;
@@ -604,30 +583,6 @@ int mm_sound_pa_flush(const int handle)
     return err;
 }
 
-EXPORT_API
-int mm_sound_pa_get_latency(const int handle, int* latency)
-{
-    mm_sound_handle_t* phandle = NULL;
-    int err = MM_ERROR_NONE;
-    pa_usec_t latency_time = 0;
-
-       CHECK_HANDLE_RANGE(handle);
-    GET_HANDLE_DATA(phandle, mm_sound_handle_mgr.handles, &handle, __mm_sound_handle_comparefunc);
-    if(phandle == NULL) {
-        debug_msg("phandle is null");
-        return MM_ERROR_SOUND_INTERNAL;
-    }
-
-    latency_time = pa_simple_get_final_latency(phandle->s, &err);
-    if (err > 0 && latency_time == 0) {
-        debug_error("pa_simple_get_latency() failed with %s\n", pa_strerror(err));
-        err = MM_ERROR_SOUND_INTERNAL;
-    }
-    *latency = latency_time / 1000; // usec to msec
-
-    return err;
-}
-
 static void __mm_sound_pa_state_cb(pa_context *c, void *userdata)
 {
     pa_threaded_mainloop *mainloop = userdata;
@@ -712,24 +667,3 @@ typedef struct _get_volume_max_userdata_t
     pa_threaded_mainloop* mainloop;
     int value;
 } get_volume_max_userdata_t;
-
-EXPORT_API
-int mm_sound_pa_corkall(int cork)
-{
-    pa_operation *o = NULL;
-
-    CHECK_CONNECT_TO_PULSEAUDIO();
-
-    pa_threaded_mainloop_lock(mm_sound_handle_mgr.mainloop);
-
-    o = pa_context_set_cork_all(mm_sound_handle_mgr.context, cork, __mm_sound_pa_success_cb, (void *)mm_sound_handle_mgr.mainloop);
-    WAIT_PULSEAUDIO_OPERATION(mm_sound_handle_mgr, o);
-
-    if(o)
-        pa_operation_unref(o);
-
-    pa_threaded_mainloop_unlock(mm_sound_handle_mgr.mainloop);
-
-    return MM_ERROR_NONE;
-}
-
index 3269947..377cf50 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.10.22
+Version:    0.10.23
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0