ret = mm_sound_set_focus_reacquisition(stream_h->index, enable);
+ LOGI("enable(%d)", enable);
+
return _convert_sound_manager_error_code(__func__, ret);
}
ret = mm_sound_get_focus_reacquisition(stream_h->index, enabled);
+ LOGI("enabled(%d)", *enabled);
+
return _convert_sound_manager_error_code(__func__, ret);
}
return MM_ERROR_SOUND_INTERNAL;
}
- LOGI("index(%u)", index);
+ LOGI("stream info index(%u)", index);
builder_for_in_devices = g_variant_builder_new(G_VARIANT_TYPE("au"));
builder_for_out_devices = g_variant_builder_new(G_VARIANT_TYPE("au"));
if (proper_device)
mm_sound_get_device_id(proper_device, &g_cached_voip_device_id);
+ else
+ g_cached_voip_device_id = -1;
if (proper_device2)
mm_sound_get_device_id(proper_device2, &g_cached_voip_device_id2);
+ else
+ g_cached_voip_device_id2 = -1;
if (device_list)
mm_sound_free_device_list(device_list);
char *name;
const char *direc;
const char *state;
- if (!(ret = sound_manager_get_current_device_list(g_device_mask, &device_list))) {
+ if (!(ret = sound_manager_get_device_list(g_device_mask, &device_list))) {
g_print("success to get current device list\n");
while (!sound_manager_get_next_device(device_list, &device)) {
_get_device_props_simple(device, &id, &type, &name, &direc, &state);
break;
}
}
- sound_manager_free_device_list(g_device_list);
if (need_to_go) {
ret = sound_manager_add_device_for_stream_routing(g_stream_info_h, device);
if (ret)
} else
g_print("the device is not available now\n");
reset_menu_state();
+
+ if (!(ret = sound_manager_free_device_list(g_device_list))) {
+ g_print("success to free device list\n");
+ g_device_list = NULL;
+ } else {
+ g_print("fail to free device list, ret[0x%x]\n", ret);
+ }
} else {
g_print("fail to get current device list, ret(0x%x)\n", ret);
reset_menu_state();
reset_menu_state();
break;
}
- if (!(ret = sound_manager_get_current_device_list(SOUND_DEVICE_ALL_MASK, &g_device_list))) {
+ if (!(ret = sound_manager_get_device_list(SOUND_DEVICE_ALL_MASK, &g_device_list))) {
g_print("success to get current device list\n");
while (!sound_manager_get_next_device(g_device_list, &device)) {
if (!(ret = sound_manager_get_device_type(device, &type))) {
g_print("fail to get current device list, ret(0x%x)\n", ret);
reset_menu_state();
}
+
+ if (!(ret = sound_manager_free_device_list(g_device_list))) {
+ g_print("success to free device list\n");
+ g_device_list = NULL;
+ } else {
+ g_print("fail to free device list, ret[0x%x]\n", ret);
+ }
}
break;
}