test: Add missing 'ifndef TIZEN_FEATURE_TV_PROD' for tv profile 83/318683/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20250123.054010 accepted/tizen/unified/x/20250123.071357 accepted/tizen/unified/x/asan/20250211.003315
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 22 Jan 2025 01:54:55 +0000 (10:54 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 22 Jan 2025 02:01:16 +0000 (11:01 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index 92a6c7a36b391661e5e06bdaa22313746b7f7169..ca30f0604880f5807e946be5e388c4b94e2b7301 100644 (file)
@@ -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
index 0e1251308508fa7f42966c43e8b632a503972103..6b7a93bac72deb522e9b1c621184806209aca9b0 100644 (file)
@@ -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);