LOGI(">> enter");
- if ((ret = mm_sound_get_device_by_id(device_id, &device))) {
+ if ((ret = mm_sound_get_device_by_id(device_id, &device)) != MM_ERROR_NONE) {
LOGE("failed to mm_sound_get_device_by_id()");
goto LEAVE;
}
LOGI(">> enter");
- if ((ret = mm_sound_get_device_type(device, &type)))
+ if ((ret = mm_sound_get_device_type(device, &type)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
if (type != MM_SOUND_DEVICE_TYPE_USB_AUDIO) {
LOGI(">> enter");
- if ((ret = mm_sound_get_device_type(device, &type)))
+ if ((ret = mm_sound_get_device_type(device, &type)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
if (type != MM_SOUND_DEVICE_TYPE_USB_AUDIO) {