Add new device type - SOUND_DEVICE_NETWORK
[platform/core/api/sound-manager.git] / src / sound_manager_private.c
index 3a47466..c6928a6 100644 (file)
@@ -447,6 +447,9 @@ int _convert_device_type_enum_to_str(sound_device_type_e device_type, char **dev
        case SOUND_DEVICE_FORWARDING:
                *device_type_str = "forwarding";
                break;
+       case SOUND_DEVICE_NETWORK:
+               *device_type_str = "network";
+               break;
        default:
                LOGE("could not find the device_type[%d] in this switch case statement", device_type);
                return MM_ERROR_SOUND_INTERNAL;
@@ -486,6 +489,9 @@ int _convert_device_type_str_to_enum(const char *device_type_str, sound_device_t
        } else if (!strncmp(device_type_str, "bt-sco", SOUND_DEVICE_TYPE_LEN)) {
                *device_type = SOUND_DEVICE_BLUETOOTH_VOICE;
 
+       } else if (!strncmp(device_type_str, "network", SOUND_DEVICE_TYPE_LEN)) {
+               *device_type = SOUND_DEVICE_NETWORK;
+
        } else {
                LOGE("not supported device_type(%s)", device_type_str);
                return MM_ERROR_INVALID_ARGUMENT;
@@ -526,6 +532,9 @@ int _convert_device_type(mm_sound_device_type_e device_type, sound_device_type_e
        case MM_SOUND_DEVICE_TYPE_MIRRORING:
                *sound_device_type = SOUND_DEVICE_FORWARDING;
                break;
+       case MM_SOUND_DEVICE_TYPE_NETWORK:
+               *sound_device_type = SOUND_DEVICE_NETWORK;
+               break;
        default:
                LOGE("not supported device_type(%d)", device_type);
                return MM_ERROR_INVALID_ARGUMENT;