Comply with the Tizen coding rule 48/231048/2 accepted/tizen/unified/20200421.051529 submit/tizen/20200420.013518
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 17 Apr 2020 03:50:46 +0000 (12:50 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 17 Apr 2020 04:00:14 +0000 (13:00 +0900)
[Version] 0.6.5
[Issue Type] Coding convention

Change-Id: I6e76d35b7860f1c9df53bc423a6f3aa124332dfa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/sound_manager.h
include/sound_manager_internal.h
include/sound_manager_internal_tv.h
packaging/capi-media-sound-manager.spec
src/sound_manager.c
src/sound_manager_internal.c
test/sound_manager_test.c

index 8ea0df6b45b50b9198db1a23349da3ed11e6e274..b03075f1678c08b908c39ad06a62a07c54dbb51d 100644 (file)
@@ -801,9 +801,9 @@ int sound_manager_apply_stream_routing(sound_stream_info_h stream_info);
  * @since_tizen 5.5
  *
  * @remarks    This function is to set a specific built-in device when the system has multiple devices of the same built-in device type.
- *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- *     If @a device is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
- *     After this function is called, @a device is not needed for the function's work. It's okay to destroy it by destroying the list from which it was obtained.
+ *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ *     If @a device is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ *     After this function is called, @a device is not needed for the function's work. It's okay to destroy it by destroying the list from which it was obtained.
  *
  * @param[in]  stream_info     The handle of stream information
  * @param[in]  io_direction    The IO direction of the device
@@ -833,9 +833,9 @@ int sound_manager_set_stream_preferred_device(sound_stream_info_h stream_info, s
  *
  * @remarks    This function is to return the preferred device id per each direction if it has been set.
  *     If there is no preferred device for a given direction, the corresponding output value will be set to
- *     #SOUND_MANAGER_STREAM_NO_PREFERRED_DEVICE.
- *     You can get a device handle of the id value by using sound_manager_get_device_list(),
- *     sound_manager_get_next_device() and sound_manager_get_device_id().
+ *     #SOUND_MANAGER_STREAM_NO_PREFERRED_DEVICE.
+ *     You can get a device handle of the id value by using sound_manager_get_device_list(),
+ *     sound_manager_get_next_device() and sound_manager_get_device_id().
  *
  * @param[in]  stream_info     The handle of stream information
  * @param[out] in_device_id    The preferred input device id
index 0a0f187e0564b687c2e650ce9cdecc93a982d532..c326ee0afe6c531f248d7e134c94f160f14ae22c 100644 (file)
@@ -455,8 +455,8 @@ int sound_manager_remove_device_id_for_stream_routing(sound_stream_info_h stream
  * @since_tizen 5.5
  *
  * @remarks    This function is to set a specific built-in device id when the system has multiple devices of the same built-in device type.
- *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- *     If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ *     If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
  *
  * @param[in]  stream_info     The handle of stream information
  * @param[in]  io_direction    The IO direction of the device
@@ -496,8 +496,8 @@ int sound_manager_set_stream_preferred_device_id(sound_stream_info_h stream_info
  * @since_tizen 5.5
  *
  * @remarks    This function is to set a device id to streams made by the specific stream type.
- *     The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
- *     #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ *     The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
+ *     #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
  *
  * @param[in]  stream_type     The type of stream
  * @param[in]  io_direction    The IO direction of the device
@@ -527,9 +527,9 @@ int sound_manager_set_stream_preemptive_device(sound_stream_type_e stream_type,
  *
  * @remarks    This function is to return the preemptive device id per each direction if it has been set.
  *     If there is no preemptive device for a given direction, the corresponding output value will be set to
- *     #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
- *     You can get a device handle of the id value by using sound_manager_get_device_list(),
- *     sound_manager_get_next_device() and sound_manager_get_device_id().
+ *     #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
+ *     You can get a device handle of the id value by using sound_manager_get_device_list(),
+ *     sound_manager_get_next_device() and sound_manager_get_device_id().
  *
  * @param[in]  stream_type     The type of stream
  * @param[out] in_device_id    The preemptive input device id
index 1f4ab7fa6bdd211a7e0357f7f703bd8599916033..2b0a98f0d61558c3a778a0bb3ac77dccee502a15 100644 (file)
@@ -409,8 +409,8 @@ int sound_manager_remove_device_id_for_stream_routing(sound_stream_info_h stream
  * @since_tizen 5.5
  *
  * @remarks    This function is to set a specific built-in device id when the system has multiple devices of the same built-in device type.
- *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
- *     If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ *     When there's only one device for a built-in device type in the system, nothing will happen even if this function succeeds in operation.
+ *     If the device type of @a device_id is not supported by @a stream_info, #SOUND_MANAGER_ERROR_POLICY will be returned.
  *
  * @param[in]  stream_info     The handle of stream information
  * @param[in]  io_direction    The IO direction of the device
@@ -450,8 +450,8 @@ int sound_manager_set_stream_preferred_device_id(sound_stream_info_h stream_info
  * @since_tizen 5.5
  *
  * @remarks    This function is to set a device id to streams made by the specific stream type.
- *     The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
- *     #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
+ *     The available stream types for this function are #SOUND_STREAM_TYPE_MEDIA, #SOUND_STREAM_TYPE_SYSTEM,\n
+ *     #SOUND_STREAM_TYPE_VOICE_INFORMATION and #SOUND_STREAM_TYPE_VOICE_RECOGNITION. Otherwise, #SOUND_MANAGER_ERROR_POLICY will be returned.
  *
  * @param[in]  stream_type     The type of stream
  * @param[in]  io_direction    The IO direction of the device
@@ -481,9 +481,9 @@ int sound_manager_set_stream_preemptive_device(sound_stream_type_e stream_type,
  *
  * @remarks    This function is to return the preemptive device id per each direction if it has been set.
  *     If there is no preemptive device for a given direction, the corresponding output value will be set to
- *     #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
- *     You can get a device handle of the id value by using sound_manager_get_device_list(),
- *     sound_manager_get_next_device() and sound_manager_get_device_id().
+ *     #SOUND_MANAGER_STREAM_NO_PREEMPTIVE_DEVICE.
+ *     You can get a device handle of the id value by using sound_manager_get_device_list(),
+ *     sound_manager_get_next_device() and sound_manager_get_device_id().
  *
  * @param[in]  stream_type     The type of stream
  * @param[out] in_device_id    The preemptive input device id
index 0287646756ce5a0f2d9faeeabd9e3bdaa6d5649c..a7228cf302d4dbc7a9519842f17daa2854d2624e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.6.4
+Version:    0.6.5
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index aaac929b231a2baa8eed9dfcfea3275f8d3caca0..f3636c300ae531c29f0de7a7a1449d0b3f1c3cb7 100644 (file)
@@ -192,9 +192,8 @@ int sound_manager_destroy_stream_information(sound_stream_info_h stream_info)
        SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&stream_h->focus_state_mutex, MM_ERROR_SOUND_INTERNAL);
        ret = _destroy_pa_connection_and_unregister_focus(stream_h);
        SM_LEAVE_CRITICAL_SECTION(&stream_h->focus_state_mutex);
-       if (ret == MM_ERROR_NONE) {
+       if (ret == MM_ERROR_NONE)
                SM_SAFE_FREE(stream_h);
-       }
 
        return _convert_sound_manager_error_code(__func__, ret);
 }
index b806ee21162106feada83be89fa2226e3d50a238..2bf678c682203edeb910ba7d0e9f8f74745039d5 100644 (file)
@@ -848,4 +848,4 @@ int sound_manager_get_stream_preemptive_device(sound_stream_type_e stream_type,
        ret = _get_preemptive_device(stream_type, in_device_id, out_device_id);
 
        return _convert_sound_manager_error_code(__func__, ret);
-}
\ No newline at end of file
+}
index ea8d51b502285ac60e9085bc43e83c3a16371320..e79ee4eb2f238ef77c367bbdffb6a2ae235cda92 100644 (file)
@@ -1877,7 +1877,7 @@ static void interpret(char *cmd)
                        preferred_device_id = atoi(cmd);
                        cnt++;
                } else if (cnt == 1) {
-                       switch ( atoi(cmd)) {
+                       switch (atoi(cmd)) {
                        case 0:
                                direction = SOUND_DEVICE_IO_DIRECTION_OUT;
                                break;