Add usb device for testcase regarding adding device 60/57060/1 accepted/tizen/mobile/20160115.111155 accepted/tizen/tv/20160115.111211 accepted/tizen/wearable/20160115.111225 submit/tizen/20160115.023728
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 15 Jan 2016 02:03:34 +0000 (11:03 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 15 Jan 2016 02:03:34 +0000 (11:03 +0900)
[Version] Release 0.3.41
[profile] Common
[Issue Type] Add test case

Change-Id: I1b7710f174d7b9147caff5d5049a7bd5fb58b28d

packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index 8fff9a2886f19cbb7dd8ca3be2f4dccab0f7a336..b6ff1d6cd9630ebf3ca2311047500e3067b3e394 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.40
+Version:    0.3.41
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 7cb365d8ef356483656b73f8d544b8b10cc4318e..4afc3ce5281440a80deb42e2fcedff343bd7c704 100644 (file)
@@ -392,9 +392,9 @@ static void displaymenu()
        else if (g_menu_state == CURRENT_STATUS_CREATE_STREAM_INFO)
                g_print("*** input stream type to create stream information\n(0:media, 1:system, 2:alarm, 3:notification, 4:emergency, 5:ringtone-call, 6:voice-call, 7:voip, 8:media-ext-only, 9:loopback)\n");
        else if (g_menu_state == CURRENT_STATUS_ADD_DEVICE_FOR_STREAM_ROUTING)
-               g_print("*** input device type to add (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt)\n");
+               g_print("*** input device type to add (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt, 5:usb)\n");
        else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_FOR_STREAM_ROUTING)
-               g_print("*** input device type to remove (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt)\n");
+               g_print("*** input device type to remove (0:built-in mic, 1:built-in spk, 2:built-in rcv, 3:audio-jack, 4:bt, 5:usb)\n");
        else if (g_menu_state == CURRENT_STATUS_APPLY_STREAM_ROUTING)
                g_print("*** press enter to apply devices for stream routing\n");
        else if (g_menu_state == CURRENT_STATUS_SET_STREAM_ROUTING_OPTION)
@@ -1071,6 +1071,9 @@ static void interpret(char *cmd)
                case 4: /* bt */
                        selected_type = SOUND_DEVICE_BLUETOOTH;
                        break;
+               case 5: /* usb */
+                       selected_type = SOUND_DEVICE_USB_AUDIO;
+                       break;
                default:
                        g_print("invalid argument, device_type(%d) is not valid for this feature\n", device_type);
                        reset_menu_state();
@@ -1128,6 +1131,9 @@ static void interpret(char *cmd)
                case 4: /* bt */
                        selected_type = SOUND_DEVICE_BLUETOOTH;
                        break;
+               case 5: /* usb */
+                       selected_type = SOUND_DEVICE_USB_AUDIO;
+                       break;
                default:
                        g_print("invalid argument, device_type(%d) is not valid for this feature\n", device_type);
                        reset_menu_state();