device-manager : Fix bug to get sources correctly 53/89553/2
authorMok Jeongho <jho.mok@samsung.com>
Mon, 26 Sep 2016 03:50:17 +0000 (12:50 +0900)
committerMok Jeongho <jho.mok@samsung.com>
Mon, 26 Sep 2016 05:02:46 +0000 (14:02 +0900)
[Version] 5.0.76
[Profile] Common
[Issue Type] Fix bug

Change-Id: I3f14f7dcb76f7a53e5da4bbaebe3366915d99f06

packaging/pulseaudio-modules-tizen.spec
src/tizen-device.c

index 0d98b8d..2b3fbee 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.75
+Version:          5.0.76
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 9f73f79..8065238 100644 (file)
@@ -223,7 +223,7 @@ void pa_tz_device_new_data_add_sink(pa_tz_device_new_data *data, const char *rol
 void pa_tz_device_new_data_add_source(pa_tz_device_new_data *data, const char *role, pa_source *source) {
     pa_assert(data);
 
-    pa_hashmap_put(data->playback_pcms, (void*)role, source);
+    pa_hashmap_put(data->capture_pcms, (void*)role, source);
 }
 /* after set_type, only for multi profile type, and check direction, profile */
 void pa_tz_device_new_data_add_profile(pa_tz_device_new_data *data, pa_tz_profile_new_data *profile_data, bool as_active) {
@@ -349,7 +349,7 @@ static pa_source* profile_get_source(pa_tz_profile *profile, const char *role) {
     pa_source *source;
     pa_assert(profile);
 
-    if ((source = pa_hashmap_get(profile->playback_devices, role)) == NULL) {
+    if ((source = pa_hashmap_get(profile->capture_devices, role)) == NULL) {
         pa_log_warn("Failed to get source for %s", role);
         return NULL;
     }