.. | .. |
---|
289 | 289 | } |
---|
290 | 290 | ext_dev->is_running = true; |
---|
291 | 291 | reinit_completion(&ext_dev->complete); |
---|
| 292 | + reinit_completion(&ext_dev->complete_out); |
---|
292 | 293 | |
---|
293 | 294 | if (ext_dev->is_dir_opp) { |
---|
294 | 295 | if (pos > ext_dev->last_pos) { |
---|
.. | .. |
---|
1239 | 1240 | unsigned long ret = 0; |
---|
1240 | 1241 | |
---|
1241 | 1242 | if (dev->is_running) { |
---|
1242 | | - reinit_completion(&dev->complete_out); |
---|
1243 | 1243 | ret = wait_for_completion_timeout(&dev->complete_out, 10 * HZ); |
---|
1244 | 1244 | if (ret == 0) |
---|
1245 | 1245 | dev_info(&motor->spi->dev, |
---|
.. | .. |
---|
2560 | 2560 | (motor->piris->run_data.psum * 24); |
---|
2561 | 2561 | motor->piris->is_running = false; |
---|
2562 | 2562 | dev_info(&motor->spi->dev, |
---|
2563 | | - "piris vd_fz_period_us %u, inict %d\n", |
---|
| 2563 | + "piris vd_fz_period_us %u, psum %d, inict %d\n", |
---|
2564 | 2564 | motor->vd_fz_period_us, |
---|
| 2565 | + motor->piris->run_data.psum, |
---|
2565 | 2566 | motor->piris->run_data.intct); |
---|
2566 | 2567 | } |
---|
2567 | 2568 | if (motor->is_use_focus) { |
---|
.. | .. |
---|
2580 | 2581 | motor->focus->is_running = false; |
---|
2581 | 2582 | motor->focus->reback_ctrl = false; |
---|
2582 | 2583 | dev_info(&motor->spi->dev, |
---|
2583 | | - "focus vd_fz_period_us %u, inict %d\n", |
---|
| 2584 | + "focus vd_fz_period_us %u, psum %d, inict %d\n", |
---|
2584 | 2585 | motor->vd_fz_period_us, |
---|
| 2586 | + motor->focus->run_data.psum, |
---|
2585 | 2587 | motor->focus->run_data.intct); |
---|
2586 | 2588 | if (motor->focus->reback != 0) { |
---|
2587 | 2589 | motor->focus->cur_back_delay = 0; |
---|
.. | .. |
---|
2619 | 2621 | motor->zoom->mv_tim.vcm_end_t = ns_to_timeval(ktime_get_ns()); |
---|
2620 | 2622 | init_completion(&motor->zoom->complete); |
---|
2621 | 2623 | init_completion(&motor->zoom->complete_out); |
---|
2622 | | - motor->vd_fz_period_us = VD_FZ_US; |
---|
2623 | 2624 | motor->zoom->run_data.psum = motor->vd_fz_period_us * |
---|
2624 | 2625 | motor->zoom->start_up_speed * 8 / 1000000; |
---|
2625 | 2626 | motor->zoom->run_data.intct = 27 * motor->vd_fz_period_us / |
---|
.. | .. |
---|
2653 | 2654 | motor->zoom->reback_move_time_us = reback_vd_cnt * (motor->vd_fz_period_us + 500); |
---|
2654 | 2655 | } |
---|
2655 | 2656 | dev_info(&motor->spi->dev, |
---|
2656 | | - "zoom vd_fz_period_us %u, inict %d\n", |
---|
| 2657 | + "zoom vd_fz_period_us %u, psum %d, inict %d\n", |
---|
2657 | 2658 | motor->vd_fz_period_us, |
---|
| 2659 | + motor->zoom->run_data.psum, |
---|
2658 | 2660 | motor->zoom->run_data.intct); |
---|
2659 | 2661 | } |
---|
2660 | 2662 | if (motor->is_use_zoom1) { |
---|
.. | .. |
---|
2666 | 2668 | motor->zoom1->mv_tim.vcm_end_t = ns_to_timeval(ktime_get_ns()); |
---|
2667 | 2669 | init_completion(&motor->zoom1->complete); |
---|
2668 | 2670 | init_completion(&motor->zoom1->complete_out); |
---|
2669 | | - motor->vd_fz_period_us = VD_FZ_US; |
---|
2670 | 2671 | motor->zoom1->run_data.psum = motor->vd_fz_period_us * |
---|
2671 | 2672 | motor->zoom1->start_up_speed * 8 / 1000000; |
---|
2672 | 2673 | motor->zoom1->run_data.intct = 27 * motor->vd_fz_period_us / |
---|
.. | .. |
---|
2674 | 2675 | motor->zoom1->is_running = false; |
---|
2675 | 2676 | motor->zoom1->reback_ctrl = false; |
---|
2676 | 2677 | dev_info(&motor->spi->dev, |
---|
2677 | | - "zoom1 vd_fz_period_us %u, inict %d\n", |
---|
| 2678 | + "zoom1 vd_fz_period_us %u, psum %d, inict %d\n", |
---|
2678 | 2679 | motor->vd_fz_period_us, |
---|
| 2680 | + motor->zoom1->run_data.psum, |
---|
2679 | 2681 | motor->zoom1->run_data.intct); |
---|
2680 | 2682 | } |
---|
2681 | 2683 | |
---|