Remove codes that will be deprecated soon (2) 64/49464/1 accepted/tizen/mobile/20151014.043054 accepted/tizen/mobile/20151014.092652 accepted/tizen/tv/20151014.043114 accepted/tizen/tv/20151014.092706 accepted/tizen/wearable/20151014.043133 accepted/tizen/wearable/20151014.092710 submit/tizen/20151013.130235 submit/tizen/20151014.042555 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 13 Oct 2015 12:40:57 +0000 (21:40 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 13 Oct 2015 12:40:57 +0000 (21:40 +0900)
 - remove enumerators from ext-policy.h

[Version] Release 0.9.267
[Profile] Common
[Issue Type] Code clean-up

Change-Id: Ibcb61317cdebe4836f44c5e32c631d69a127325a

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

index 883c707..e645d0d 100644 (file)
@@ -26,7 +26,6 @@
 #include <pulse/proplist.h>
 #include <pulse/channelmap.h>
 #include <pulse/pulseaudio.h>
-#include <pulse/ext-policy.h>
 #include "include/mm_sound.h"
 
 typedef enum {
index 64c265a..1c746da 100644 (file)
 #define MM_SOUND_CHANNEL_MIN                1
 #define MM_SOUND_CHANNEL_MAX                6
 
-#define MEDIA_POLICY_AUTO                   "auto"
-#define MEDIA_POLICY_PHONE                  "phone"
-#define MEDIA_POLICY_ALL                    "all"
-#define MEDIA_POLICY_VOIP                   "voip"
-#define MEDIA_POLICY_MIRRORING              "mirroring"
-#define MEDIA_POLICY_HIGH_LATENCY           "high-latency"
-
 typedef struct _mm_sound_handle_t {
     uint32_t handle;
 
@@ -133,18 +126,6 @@ static struct {
         } \
     } while(0);
 
-static const pa_tizen_volume_type_t mm_sound_volume_type_to_pa[VOLUME_TYPE_MAX] = {
-       [VOLUME_TYPE_SYSTEM] = PA_TIZEN_VOLUME_TYPE_SYSTEM,
-       [VOLUME_TYPE_NOTIFICATION] = PA_TIZEN_VOLUME_TYPE_NOTIFICATION,
-       [VOLUME_TYPE_ALARM] = PA_TIZEN_VOLUME_TYPE_ALARM,
-       [VOLUME_TYPE_RINGTONE] = PA_TIZEN_VOLUME_TYPE_RINGTONE,
-       [VOLUME_TYPE_MEDIA] = PA_TIZEN_VOLUME_TYPE_MEDIA,
-       [VOLUME_TYPE_CALL] = PA_TIZEN_VOLUME_TYPE_CALL,
-       [VOLUME_TYPE_VOIP] = PA_TIZEN_VOLUME_TYPE_VOIP,
-       [VOLUME_TYPE_VOICE] = PA_TIZEN_VOLUME_TYPE_VOICE,
-       [VOLUME_TYPE_FIXED] = PA_TIZEN_VOLUME_TYPE_FIXED,
-};
-
 #define PA_SIMPLE_FADE_INTERVAL_USEC                                           20000
 
 #define PA_SIMPLE_SAMPLES_PER_PERIOD_DEFAULT                           1536    /* frames */
@@ -257,9 +238,7 @@ int mm_sound_pa_open(MMSoundHandleMode mode, mm_sound_handle_route_info *route_i
     /* Set volume type of stream */
     if(volume_config > 0) {
         debug_log("setting gain type");
-        vol_conf_type = volume_config & 0x000000FF;
-        prop_vol_type = mm_sound_volume_type_to_pa[vol_conf_type];
-//          pa_proplist_setf(proplist, PA_PROP_MEDIA_TIZEN_VOLUME_TYPE, "%d", prop_vol_type);
+        prop_vol_type = 0; /* not used, set it system(0) temporarily */
 
         /* Set gain type of stream */
         prop_gain_type = (volume_config >> 8) & 0x000000FF;
index 11a0ed4..882f2dc 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.9.266
+Version:    0.9.267
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0