static int sensor_s_power(struct v4l2_subdev *sd, int on) { struct sensor_info *info = to_sensor(sd); int ret; if (on) { /* * HACK * s_power of flite make mux to change to ipll and then * mclk for vision should be cacaluate again after mux setting changes * vision clock source is channel 2 */ ret = sensor_set_clock(sd, FLITE_ID_C); if (ret < 0) sensor_err("sensor set clock fail"); ret = sensor_power(info, true); if (!ret) ret = sensor_setup_default(sd); } else { ret = sensor_power(info, false); } return ret; }
static int sensor_s_power(struct v4l2_subdev *sd, int on) { struct sensor_info *info = to_sensor(sd); int ret; if (on) { ret = sensor_power(info, true); if (!ret) ret = sensor_setup_default(sd); } else { ret = sensor_power(info, false); } return ret; }