SM_ARG_CHECK(max);
SM_ARG_CHECK(type < SOUND_TYPE_NUM);
+ LOGI("type[%d]", type);
+
ret = _convert_sound_type(type, &volume_type);
if (ret == SOUND_MANAGER_ERROR_NONE) {
ret = _get_volume_max_level(DIRECTION_OUT_STR, volume_type, &max_level);
- if (ret == SOUND_MANAGER_ERROR_NONE)
+ if (ret == SOUND_MANAGER_ERROR_NONE) {
*max = (int)max_level -1; /* actual volume step can be max step - 1 */
+ LOGI("volume_type[%s] max_volume[%d]", volume_type, *max);
+ }
}
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(type < SOUND_TYPE_NUM);
SM_ARG_CHECK(volume >= 0);
+ LOGI("type[%d] volume[%d]", type, volume);
+
ret = mm_sound_volume_set_value(type, volume);
- LOGI("type=%d, volume=%d", type, volume);
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(type < SOUND_TYPE_NUM);
SM_ARG_CHECK(volume);
+ LOGI("type[%d]", type);
+
ret = mm_sound_volume_get_value(type, &uvolume);
- if (ret == MM_ERROR_NONE)
+ if (ret == MM_ERROR_NONE) {
*volume = uvolume;
-
- LOGI("type=%d, volume=%d", type, *volume);
+ LOGI("volume[%d]", *volume);
+ }
return _convert_sound_manager_error_code(__func__, ret);
}
if (ret == SOUND_MANAGER_ERROR_NONE) {
ret = _convert_sound_type_to_enum((const char*)volume_type, type);
if (ret == SOUND_MANAGER_ERROR_NONE)
- LOGI("type=%d", *type);
+ LOGI("type[%d]", *type);
}
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(callback);
SM_ARG_CHECK(id);
+ LOGI("callback[%p] user_data[%p]", callback, user_data);
+
ret = mm_sound_add_volume_changed_callback((mm_sound_volume_changed_cb)callback, user_data, (unsigned int*)id);
+ LOGI("id[%d]", *id);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(id >= 0);
+ LOGI("id[%d]", id);
+
ret = mm_sound_remove_volume_changed_callback(id);
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(stream_info);
- LOGI(">> enter");
+ LOGI("stream_type[%d] callback[%p] user_data[%p]", stream_type, callback, user_data);
sound_stream_info_s *stream_h = malloc(sizeof(sound_stream_info_s));
if (!stream_h) {
ret = _make_pa_connection_and_register_focus(stream_h, callback, user_data);
if (ret == SOUND_MANAGER_ERROR_NONE) {
*stream_info = (sound_stream_info_h)stream_h;
- LOGI("stream_h(%p), pa_index(%u), focus_id(%d), user_cb(%p), ret(0x%x)",
- stream_h, stream_h->pa_info.index, stream_h->focus_id, stream_h->user_cb, ret);
+ LOGI("stream_info[%p, type:%s] pa_index[%u] focus_id[%d]",
+ stream_info, stream_h->stream_type, stream_h->pa_info.index, stream_h->focus_id);
}
}
if (ret != SOUND_MANAGER_ERROR_NONE)
SM_SAFE_FREE(stream_h);
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s]", stream_info, stream_h->stream_type);
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&stream_h->vstream_mutex, SOUND_MANAGER_ERROR_INTERNAL);
if (stream_h->vstream) {
if (ret == SOUND_MANAGER_ERROR_NONE)
SM_SAFE_FREE(stream_h);
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(sound_type);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s]", stream_info, stream_h->stream_type);
if (stream_h->stream_conf_info.volume_type == NULL) {
ret = SOUND_MANAGER_ERROR_NO_DATA;
LOGI("sound type(%d)", *sound_type);
LEAVE:
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
int sound_manager_add_device_for_stream_routing(sound_stream_info_h stream_info, sound_device_h device)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
+
+ SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(device);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s] device[%p]", stream_info, stream_h->stream_type, device);
- return _add_device_for_stream_routing((sound_stream_info_s*)stream_info, device);
+ return _add_device_for_stream_routing(stream_h, device);
}
int sound_manager_remove_device_for_stream_routing(sound_stream_info_h stream_info, sound_device_h device)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
+
+ SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(device);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s] device[%p]", stream_info, stream_h->stream_type, device);
- return _remove_device_for_stream_routing((sound_stream_info_s*)stream_info, device);
+ return _remove_device_for_stream_routing(stream_h, device);
}
int sound_manager_remove_all_devices_for_stream_routing(sound_stream_info_h stream_info)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
- LOGI(">> enter");
+ SM_ARG_CHECK(stream_h);
- return _remove_all_devices_for_stream_routing((sound_stream_info_s*)stream_info);
+ LOGI("stream_info[%p, type:%s]", stream_info, stream_h->stream_type);
+
+ return _remove_all_devices_for_stream_routing(stream_h);
}
int sound_manager_apply_stream_routing(sound_stream_info_h stream_info)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
+
+ SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s]", stream_info, stream_h->stream_type);
- return _apply_stream_routing((sound_stream_info_s*)stream_info);
+ return _apply_stream_routing(stream_h);
}
int sound_manager_set_stream_preferred_device(sound_stream_info_h stream_info, sound_device_io_direction_e io_direction, sound_device_h device)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
+
+ SM_ARG_CHECK(stream_h);
+
+ LOGI("stream_info[%p, type:%s] io_direction[%d] device[%p]", stream_info, stream_h->stream_type, io_direction, device);
- return _set_preferred_device((sound_stream_info_s*)stream_info, io_direction, device);
+ return _set_preferred_device(stream_h, io_direction, device);
}
int sound_manager_get_stream_preferred_device(sound_stream_info_h stream_info, int *in_device_id, int *out_device_id)
{
- SM_ARG_CHECK(stream_info);
+ sound_stream_info_s *stream_h = (sound_stream_info_s*)stream_info;
+
+ SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(in_device_id || out_device_id);
- return _get_preferred_device((sound_stream_info_s*)stream_info, in_device_id, out_device_id);
+ LOGI("stream_info[%p, type:%s]", stream_info, stream_h->stream_type);
+
+ return _get_preferred_device(stream_h, in_device_id, out_device_id);
}
int sound_manager_set_focus_reacquisition(sound_stream_info_h stream_info, bool enable)
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d] enable[%d]", stream_info, stream_h->stream_type, stream_h->focus_id, enable);
ret = mm_sound_set_focus_reacquisition(stream_h->focus_id, enable);
- LOGI("enable(%d)", enable);
-
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(enabled);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d]", stream_info, stream_h->stream_type, stream_h->focus_id);
ret = mm_sound_get_focus_reacquisition(stream_h->focus_id, enabled);
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d] focus_mask[0x%x] sound_behavior[0x%x] extra_info[%s]",
+ stream_info, stream_h->stream_type, stream_h->focus_id, focus_mask, sound_behavior, extra_info);
if ((ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, &is_focus_watch_cb_thread)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d] focus_mask[0x%x] sound_behavior[0x%x] extra_info[%s]",
+ stream_info, stream_h->stream_type, stream_h->focus_id, focus_mask, sound_behavior, extra_info);
if ((ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, &is_focus_watch_cb_thread)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d] sound_behavior[0x%x] extra_info[%s]",
+ stream_info, stream_h->stream_type, stream_h->focus_id, sound_behavior, extra_info);
if ((ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, &is_focus_watch_cb_thread)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(stream_h);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d] sound_behavior[0x%x] extra_info[%s]",
+ stream_info, stream_h->stream_type, stream_h->focus_id, sound_behavior, extra_info);
if ((ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, &is_focus_watch_cb_thread)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(stream_h);
SM_ARG_CHECK(state_for_playback || state_for_recording);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s, focus_id:%d]", stream_info, stream_h->stream_type, stream_h->focus_id);
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&stream_h->focus_state_mutex, SOUND_MANAGER_ERROR_INTERNAL);
SM_ARG_CHECK(src_stream_h);
SM_ARG_CHECK(dst_stream_h);
- LOGI(">> enter");
+ LOGI("SRC stream_info[%p, type:%s, focus_id:%d]", source, src_stream_h->stream_type, src_stream_h->focus_id);
+ LOGI("DST stream_info[%p, type:%s, focus_id:%d]", destination, dst_stream_h->stream_type, dst_stream_h->focus_id);
+ LOGI("focus_mask[0x%x]", focus_mask);
if ((ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, NULL)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(device);
SM_ARG_CHECK(is_on);
- LOGI(">> enter");
+ LOGI("stream_info[%p, type:%s] device[%p]", stream_info, stream_h->stream_type, device);
ret = mm_sound_is_stream_on_device(stream_h->pa_info.index, device, is_on);
+ LOGI("is_on[%d]", *is_on);
+
return _convert_sound_manager_error_code(__func__, ret);
}
{
SM_ARG_CHECK(device_type);
- LOGI(">> enter");
-
return _get_current_media_routing_path("out", device_type);
}
SM_ARG_CHECK(acquired_by);
SM_ARG_CHECK(flags);
- LOGI(">> enter");
-
if ((mm_ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, NULL)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, mm_ret);
SM_ARG_CHECK(acquired_by);
SM_ARG_CHECK(flags);
- LOGI(">> enter");
-
if ((mm_ret = mm_sound_focus_is_cb_thread(&is_focus_cb_thread, NULL)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, mm_ret);
SM_ARG_CHECK(callback);
SM_ARG_CHECK(id);
- LOGI(">> enter");
+ LOGI("focus_mask[0x%x] callback[%p] user_data[%p]", focus_mask, callback, user_data);
for (i = 0; i < SOUND_STREAM_INFO_ARR_MAX; i++)
if (focus_watch_info_arr[i].id == 0)
}
LEAVE:
- LOGD("id(%d)", *id);
+ LOGI("id[%d]", *id);
return _convert_sound_manager_error_code(__func__, ret);
}
int ret = MM_ERROR_NONE;
int i = 0;
- LOGI(">> enter");
+ LOGI("id[%d]", id);
for (i = 0; i < SOUND_STREAM_INFO_ARR_MAX; i++)
if (focus_watch_info_arr[i].id == id)
SM_ARG_CHECK(device_list);
+ LOGI("device_mask[0x%x]", device_mask);
+
ret = mm_sound_get_device_list(device_mask, device_list);
+ LOGI("device_list[%p]", *device_list);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device_list);
+ LOGI("device_list[%p]", device_list);
+
ret = mm_sound_free_device_list(device_list);
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(device_list);
SM_ARG_CHECK(device);
+ LOGI("device_list[%p]", device_list);
+
ret = mm_sound_get_next_device(device_list, device);
+ LOGI("device[%p]", *device);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device_list);
SM_ARG_CHECK(device);
+ LOGI("device_list[%p]", device_list);
+
ret = mm_sound_get_prev_device(device_list, device);
+ LOGI("device[%p]", *device);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device);
SM_ARG_CHECK(type);
+ LOGI("device[%p]", device);
+
if ((ret = mm_sound_get_device_type(device, &mm_sound_device_type)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(device);
SM_ARG_CHECK(io_direction);
+ LOGI("device[%p]", device);
+
if ((ret = mm_sound_get_device_io_direction(device, &mm_sound_io_direction)) != MM_ERROR_NONE)
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(device);
SM_ARG_CHECK(id);
+ LOGI("device[%p]", device);
+
ret = mm_sound_get_device_id(device, id);
+ LOGI("id[%d]", *id);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device);
SM_ARG_CHECK(name);
+ LOGI("device[%p]", device);
+
ret = mm_sound_get_device_name(device, name);
+ LOGI("name[%s]", *name);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device);
SM_ARG_CHECK(is_running);
- LOGI(">> enter");
+ LOGI("device[%p]", device);
ret = mm_sound_is_device_running(device, is_running);
+ LOGI("is_running[%d]", *is_running);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(device);
SM_ARG_CHECK(state);
+ LOGI("device[%p]", device);
+
LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
ret = mm_sound_get_device_state(device, (mm_sound_device_state_e*)state);
+ LOGI("state[%d]", *state);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(formats);
SM_ARG_CHECK(num_of_elems);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
+ LOGI("device[%p] format[%d]", device, format);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
SM_ARG_CHECK(format);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(rates);
SM_ARG_CHECK(num_of_elems);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
+ LOGI("device[%p] rate[%d]", device, rate);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
SM_ARG_CHECK(rate);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
+ LOGI("device[%p] enable[%d]", device, enable);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
SM_ARG_CHECK(enabled);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
+ LOGI("device[%p] enable[%d]", device, enable);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(device);
SM_ARG_CHECK(enabled);
+ LOGI("device[%p]", device);
+
if ((ret = _return_val_if_not_usb_device(device, SOUND_MANAGER_ERROR_INVALID_OPERATION)) != SOUND_MANAGER_ERROR_NONE)
return ret;
SM_ARG_CHECK(callback);
SM_ARG_CHECK(id);
+ LOGI("device_mask[0x%x] callback[%p] user_data[%p]", device_mask, callback, user_data);
+
ret = mm_sound_add_device_connected_callback((mm_sound_device_flags_e)device_mask, (mm_sound_device_connected_cb)callback, user_data, (unsigned int*)id);
+ LOGI("id[%d]", *id);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(id >= 0);
+ LOGI("id[%d]", id);
+
ret = mm_sound_remove_device_connected_callback((unsigned int)id);
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(callback);
SM_ARG_CHECK(id);
+ LOGI("device_mask[0x%x] callback[%p] user_data[%p]", device_mask, callback, user_data);
+
ret = mm_sound_add_device_running_changed_callback(device_mask, (mm_sound_device_running_changed_cb)callback, user_data, (unsigned int*)id);
+ LOGI("id[%d]", *id);
+
return _convert_sound_manager_error_code(__func__, ret);
}
SM_ARG_CHECK(id >= 0);
+ LOGI("id[%d]", id);
+
ret = mm_sound_remove_device_running_changed_callback((unsigned int)id);
return _convert_sound_manager_error_code(__func__, ret);
SM_ARG_CHECK(callback);
SM_ARG_CHECK(id);
+ LOGI("device_mask[0x%x] callback[%p] user_data[%p]", device_mask, callback, user_data);
+
ret = mm_sound_add_device_state_changed_callback(device_mask, (mm_sound_device_state_changed_cb)callback, user_data, (unsigned int*)id);
+ LOGI("id[%d]", *id);
+
return _convert_sound_manager_error_code(__func__, ret);
}
LOGW("DEPRECATION WARNING: %s() is deprecated and will be removed from next release.", __func__);
SM_ARG_CHECK(id >= 0);
+ LOGI("id[%d]", id);
+
ret = mm_sound_remove_device_state_changed_callback((unsigned int)id);
return _convert_sound_manager_error_code(__func__, ret);
goto LEAVE;
}
+ LOGI("target_stream[%d] callback[%p] user_data[%p]", target_stream, callback, user_data);
+
new_ducking = (sound_stream_ducking_s *)calloc(1, sizeof(sound_stream_ducking_s));
if (!new_ducking) {
ret = SOUND_MANAGER_ERROR_INTERNAL;
ducking_arr[i] = new_ducking;
*stream_ducking = (sound_stream_ducking_h)new_ducking;
- LOGI("new stream_ducking(%p), target_stream(%s), pa_index(%u), user_cb(%p)",
- new_ducking, new_ducking->target_stream, new_ducking->pa_info.index, new_ducking->user_cb);
+ LOGI("new stream_ducking[%p] target_stream[%s] pa_index[%u]",
+ new_ducking, new_ducking->target_stream, new_ducking->pa_info.index);
LEAVE:
if (ret != SOUND_MANAGER_ERROR_NONE) {
SM_LEAVE_CRITICAL_SECTION(&ducking_mutex);
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(ducking);
- LOGI(">> enter %p", ducking);
+ LOGI("stream_ducking[%p]", ducking);
ret = _get_ducking_state(&ducking->pa_info, &is_ducked);
if (ret != SOUND_MANAGER_ERROR_NONE && !ducking->pa_info.is_disconnected)
return SOUND_MANAGER_ERROR_INVALID_STATE;
}
- LOGI("destroy stream ducking(%p)", ducking);
-
SM_ENTER_CRITICAL_SECTION_WITH_RETURN(&ducking_mutex, SOUND_MANAGER_ERROR_INTERNAL);
_destroy_pa_connection(&ducking->pa_info);
SM_ARG_CHECK(ducking);
SM_ARG_CHECK(is_ducked);
- LOGI(">> enter %p", ducking);
+ LOGI("stream_ducking[%p]", ducking);
return _get_ducking_state(&ducking->pa_info, is_ducked);
}
SM_ARG_CHECK(ratio < 1.0);
SM_ARG_CHECK(ratio >= 0.0);
- LOGI(">> enter %p - duration(%u), ratio(%lf)", ducking, duration, ratio);
+ LOGI("stream_ducking[%p] duration[%u] ratio[%lf]", ducking, duration, ratio);
ret = _get_ducking_state(&ducking->pa_info, &is_ducked);
if (ret != SOUND_MANAGER_ERROR_NONE)
SM_LEAVE_CRITICAL_SECTION(&ducking_mutex);
+ LOGI("ret[0x%x]", ret);
+
return ret;
}
SM_ARG_CHECK(ducking);
- LOGI(">> enter %p", ducking);
+ LOGI("stream_ducking[%p]", ducking);
ret = _get_ducking_state(&ducking->pa_info, &is_ducked);
if (ret != SOUND_MANAGER_ERROR_NONE)
SM_LEAVE_CRITICAL_SECTION(&ducking_mutex);
+ LOGI("ret[0x%x]", ret);
+
return ret;
}