Update display feature key 72/211272/1 accepted/tizen/unified/20190801.113333 submit/tizen/20190801.025847
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 1 Aug 2019 02:31:37 +0000 (11:31 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 1 Aug 2019 02:31:37 +0000 (11:31 +0900)
[Version] 0.1.5
[Issue Type] Feature update

Change-Id: I4823c748e45a83f26f98ca6c44111153bb6dd783

packaging/audio-hal-bcm2837.spec
tizen-audio-routing.c

index 28dac85..ffca005 100644 (file)
@@ -1,6 +1,6 @@
 Name:       audio-hal-bcm2837
 Summary:    TIZEN Audio HAL for BCM2837
-Version:    0.1.4
+Version:    0.1.5
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
index 1beaec1..dce56a6 100644 (file)
@@ -30,7 +30,7 @@
 #include "tizen-audio-impl.h"
 
 #include <system_info.h>
-#define FEATURE_DISPLAY_STATE "http://tizen.org/feature/display.state"
+#define FEATURE_DISPLAY "http://tizen.org/feature/display"
 
 /* #define DEBUG_TIMING */
 
@@ -266,16 +266,16 @@ static audio_return_t __update_route_reset(audio_hal_t *ah, uint32_t direction)
 
 static void __audio_routing_playback_rpi3(audio_hal_t *ah)
 {
-    bool display_enable = false;
+    bool display_avail = false;
     int ret = SYSTEM_INFO_ERROR_NONE;
 
-    ret = system_info_get_platform_bool(FEATURE_DISPLAY_STATE, &display_enable);
-    AUDIO_LOG_INFO("system_info_platform [%s]=[%d], ret[%d]", FEATURE_DISPLAY_STATE, display_enable, ret);
+    ret = system_info_get_platform_bool(FEATURE_DISPLAY, &display_avail);
+    AUDIO_LOG_INFO("system_info_platform [%s]=[%d], ret[%d]", FEATURE_DISPLAY, display_avail, ret);
     if (ret != SYSTEM_INFO_ERROR_NONE)
         AUDIO_LOG_ERROR("Failed to get feature...");
 
-    if (!display_enable) {
-        /* no hdmi support means headless, force to use earjack(1) only.
+    if (!display_avail) {
+        /* in case of headless (display is not available), force to use earjack(1) only.
            supported value : (0)auto (1)earjack (2)hdmi */
         _mixer_control_set_value(ah, "PCM Playback Route", 1);
     }