/* unregister watch callback */
if (sound_focus->watch_id > 0) {
MMRADIO_LOG_DEBUG("unset the focus watch cb %d", sound_focus->watch_id);
-
ret = mm_sound_unset_focus_watch_callback(sound_focus->watch_id);
sound_focus->watch_id = 0;
if (ret != MM_ERROR_NONE)
}
/* unregister focus callback */
if (sound_focus->focus_id > 0) {
+ MMRADIO_LOG_DEBUG("unset the focus %d", sound_focus->focus_id);
ret = mm_sound_unregister_focus(sound_focus->focus_id);
sound_focus->focus_id = 0;
if (ret != MM_ERROR_NONE)
MMRADIO_LOG_ERROR("mm_sound_subscribe_signal is failed\n");
return MM_ERROR_POLICY_BLOCKED;
}
- MMRADIO_LOG_DEBUG("register focus watch callback for the value is 0, sub_cb id %d\n", sound_focus->subscribe_id);
+ MMRADIO_LOG_DEBUG("register mm_sound_subscribe_signal_for_daemon subscribe_id %d\n", sound_focus->subscribe_id);
/* register watch callback */
ret = mm_sound_set_focus_watch_callback_for_session(pid,
FOCUS_FOR_BOTH, watch_cb, (void *)param, &sound_focus->watch_id);
MMRADIO_LOG_ERROR("failed to mm_sound_remove_device_connected_callback() ret = %d", ret);
}
+ if (sound_focus->subscribe_id > 0) {
+ MMRADIO_LOG_DEBUG("unset mm_sound_subscribe_signal_for_daemon %d", sound_focus->subscribe_id);
+ mm_sound_unsubscribe_signal(sound_focus->subscribe_id);
+ }
+
MMRADIO_LOG_FLEAVE();
return MM_ERROR_NONE;
*handle = h;
- MMRADIO_LOG_ERROR("open radio_hal interface");
+ MMRADIO_LOG_DEBUG("open radio_hal interface");
return MM_ERROR_NONE;
FAIL:
handle->rh_handle = NULL;
+ MMRADIO_LOG_DEBUG("close radio_hal interface");
dlclose(handle->dl_handle);
handle->dl_handle = NULL;
}