- /* backup current route */
- info->active_out_backup = DEFAULT_ACTIVE_DEVICE;
-
- ret = mm_sound_get_active_device(&device_in, &device_out);
- if (ret != MM_ERROR_NONE) {
- _mmcam_dbg_err("mm_sound_get_active_device failed [%x]. skip sound play.", ret);
- goto SOUND_INIT_ERROR;
- }
-
- _mmcam_dbg_log("current out [%x]", device_out);
-
- if (device_out != MM_SOUND_DEVICE_OUT_SPEAKER) {
- //ret = mm_sound_set_active_route_without_broadcast (MM_SOUND_ROUTE_OUT_SPEAKER);
- if (ret != MM_ERROR_NONE) {
- _mmcam_dbg_err("mm_sound_set_active_route_without_broadcast failed [%x]. skip sound play.", ret);
- goto SOUND_INIT_ERROR;
- }
- info->active_out_backup = device_out;
- }
-