From e14b784e0e6c2d07c9f9796fe552948ced0fd7f5 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 20 Jun 2017 15:33:44 +0900 Subject: [PATCH] tizenaudio-policy: Fix to set active device type to stream property properly in case of AUTO_LAST_CONNECTED routing type [Version] 5.0.153 [Profile] Common [Issue Type] Bug fix Change-Id: If1324b19a610909ec9ea8f0054dde30ff71d3177 Signed-off-by: Sangchul Lee --- packaging/pulseaudio-modules-tizen.spec | 2 +- src/module-tizenaudio-policy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/pulseaudio-modules-tizen.spec b/packaging/pulseaudio-modules-tizen.spec index 2afe3a4..7870a67 100644 --- a/packaging/pulseaudio-modules-tizen.spec +++ b/packaging/pulseaudio-modules-tizen.spec @@ -1,6 +1,6 @@ Name: pulseaudio-modules-tizen Summary: Pulseaudio modules for Tizen -Version: 5.0.152 +Version: 5.0.153 Release: 0 Group: Multimedia/Audio License: LGPL-2.1+ diff --git a/src/module-tizenaudio-policy.c b/src/module-tizenaudio-policy.c index ecae445..196f997 100644 --- a/src/module-tizenaudio-policy.c +++ b/src/module-tizenaudio-policy.c @@ -512,7 +512,7 @@ static pa_hook_result_t select_proper_sink_or_source_hook_cb(pa_core *c, pa_stre else *(data->proper_source) = pa_tz_device_get_source(latest_device, data->device_role); - pa_proplist_sets(GET_STREAM_NEW_PROPLIST(data->stream, data->stream_type), PA_PROP_MEDIA_ROUTE_AUTO_ACTIVE_DEV, dm_device_type); + pa_proplist_sets(GET_STREAM_NEW_PROPLIST(data->stream, data->stream_type), PA_PROP_MEDIA_ROUTE_AUTO_ACTIVE_DEV, pa_tz_device_get_type(latest_device)); } } -- 2.7.4