From 4e8d759dd79b3b200e91f4efa874c6be7f4933ec Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Thu, 1 Aug 2019 11:31:37 +0900 Subject: [PATCH] Update display feature key [Version] 0.1.5 [Issue Type] Feature update Change-Id: I4823c748e45a83f26f98ca6c44111153bb6dd783 --- packaging/audio-hal-bcm2837.spec | 2 +- tizen-audio-routing.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packaging/audio-hal-bcm2837.spec b/packaging/audio-hal-bcm2837.spec index 28dac85..ffca005 100644 --- a/packaging/audio-hal-bcm2837.spec +++ b/packaging/audio-hal-bcm2837.spec @@ -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 diff --git a/tizen-audio-routing.c b/tizen-audio-routing.c index 1beaec1..dce56a6 100644 --- a/tizen-audio-routing.c +++ b/tizen-audio-routing.c @@ -30,7 +30,7 @@ #include "tizen-audio-impl.h" #include -#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); } -- 2.34.1