From: Sangchul Lee Date: Wed, 22 Jan 2025 01:54:55 +0000 (+0900) Subject: test: Add missing 'ifndef TIZEN_FEATURE_TV_PROD' for tv profile X-Git-Tag: accepted/tizen/unified/20250123.054010^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=platform%2Fcore%2Fapi%2Fsound-manager.git test: Add missing 'ifndef TIZEN_FEATURE_TV_PROD' for tv profile Some internal functions not included for tv header should be handled with that definition, 'sound_manager_test' is not built for tv profile though. [Version] 0.7.14 [Issue Type] Testsuite Change-Id: I29799ea6d6ff38f8491a117bd3d1d8290a5afa3e Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-sound-manager.spec b/packaging/capi-media-sound-manager.spec index 92a6c7a..ca30f06 100644 --- a/packaging/capi-media-sound-manager.spec +++ b/packaging/capi-media-sound-manager.spec @@ -1,6 +1,6 @@ Name: capi-media-sound-manager Summary: Sound Manager library -Version: 0.7.13 +Version: 0.7.14 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/sound_manager_test.c b/test/sound_manager_test.c index 0e12513..6b7a93b 100644 --- a/test/sound_manager_test.c +++ b/test/sound_manager_test.c @@ -119,10 +119,12 @@ enum { CURRENT_STATUS_DISCOVER_REMOTE_DEVICE, CURRENT_STATUS_PUBLISH_REMOTE_DEVICE, CURRENT_STATUS_SET_REMOTE_PERMISSION, +#ifndef TIZEN_FEATURE_TV_PROD CURRENT_STATUS_SET_RPI_PLAYBACK_ROUTE, CURRENT_STATUS_GET_RPI_PLAYBACK_ROUTE, CURRENT_STATUS_SET_HOST_VOLUME, CURRENT_STATUS_GET_HOST_VOLUME, +#endif }; @@ -394,6 +396,7 @@ void _interpret_main_menu(char *cmd) g_menu_state = CURRENT_STATUS_PUBLISH_REMOTE_DEVICE; else if (strncmp(cmd, "alw", MAX_CMD_LEN) == 0) g_menu_state = CURRENT_STATUS_SET_REMOTE_PERMISSION; +#ifndef TIZEN_FEATURE_TV_PROD else if (strncmp(cmd, "srpr", MAX_CMD_LEN) == 0) g_menu_state = CURRENT_STATUS_SET_RPI_PLAYBACK_ROUTE; else if (strncmp(cmd, "grpr", MAX_CMD_LEN) == 0) @@ -402,6 +405,7 @@ void _interpret_main_menu(char *cmd) g_menu_state = CURRENT_STATUS_SET_HOST_VOLUME; else if (strncmp(cmd, "ghv", MAX_CMD_LEN) == 0) g_menu_state = CURRENT_STATUS_GET_HOST_VOLUME; +#endif else if (strncmp(cmd, "q", MAX_CMD_LEN) == 0) { g_print("closing the test suite\n"); quit_program(); @@ -511,10 +515,12 @@ void display_sub_basic() g_print("dis. *Discover remote devices\n"); g_print("pub. *Publish remote devices\n"); g_print("alw. *Allow remote device\n"); +#ifndef TIZEN_FEATURE_TV_PROD g_print("srpr. *Set RPI playback route\t"); g_print("grpr. *Get RPI playback route\n"); g_print("shv. *Set HOST Volume\t"); g_print("ghv. *Get HOST Volume\n"); +#endif g_print(" * is for internal usage.\n"); g_print("=========================================================================================\n"); } @@ -713,6 +719,7 @@ static void displaymenu() g_print("*** press enter 0:disable, 1:enable\n"); else if (g_menu_state == CURRENT_STATUS_SET_REMOTE_PERMISSION) g_print("*** press enter number num, allow(0,1)\n"); +#ifndef TIZEN_FEATURE_TV_PROD else if (g_menu_state == CURRENT_STATUS_SET_RPI_PLAYBACK_ROUTE) g_print("*** input rpi playback route to set (0:auto, 1:headphone, 2:HDMI1, 3:HDMI2(rpi4 only)\n"); else if (g_menu_state == CURRENT_STATUS_GET_RPI_PLAYBACK_ROUTE) @@ -723,6 +730,7 @@ static void displaymenu() flag = 1; } else if (g_menu_state == CURRENT_STATUS_GET_HOST_VOLUME) g_print("*** input sound type for HOST(0:SYSTEM 1:NOTIFICATION 2:ALARM 3:RINGTONE 4:MEDIA 5:CALL 6:VOIP 7:VOICE)\n"); +#endif else { g_print("*** unknown status.\n"); quit_program(); @@ -2847,6 +2855,7 @@ static void interpret(char *cmd) reset_menu_state(); break; } +#ifndef TIZEN_FEATURE_TV_PROD case CURRENT_STATUS_SET_RPI_PLAYBACK_ROUTE: { int ret; sound_rpi_playback_route_type type = atoi(cmd); @@ -2910,6 +2919,7 @@ static void interpret(char *cmd) reset_menu_state(); break; } +#endif } end: g_timeout_add(100, timeout_menu_display, 0);