Lines Matching defs:sensor
15 static int smiapp_write_8(struct smiapp_sensor *sensor, u16 reg, u8 val)
17 return smiapp_write(sensor, SMIAPP_REG_MK_U8(reg), val);
20 static int smiapp_write_8s(struct smiapp_sensor *sensor,
23 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd);
27 rval = smiapp_write_8(sensor, regs->reg, regs->val);
39 void smiapp_replace_limit(struct smiapp_sensor *sensor,
42 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd);
47 sensor->limits[limit] = val;
50 static int jt8ew9_limits(struct smiapp_sensor *sensor)
52 if (sensor->minfo.revision_number_major < 0x03)
53 sensor->frame_skip = 1;
57 smiapp_replace_limit(sensor, SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MIN, 59);
59 sensor, SMIAPP_LIMIT_ANALOGUE_GAIN_CODE_MAX, 6000);
64 static int jt8ew9_post_poweron(struct smiapp_sensor *sensor)
99 return smiapp_write_8s(sensor, regs, ARRAY_SIZE(regs));
107 static int imx125es_post_poweron(struct smiapp_sensor *sensor)
120 return smiapp_write_8s(sensor, regs, ARRAY_SIZE(regs));
127 static int jt8ev1_limits(struct smiapp_sensor *sensor)
129 smiapp_replace_limit(sensor, SMIAPP_LIMIT_X_ADDR_MAX, 4271);
130 smiapp_replace_limit(sensor,
136 static int jt8ev1_post_poweron(struct smiapp_sensor *sensor)
138 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd);
145 { 0x3301, 0x06 }, /* For analog bias for sensor */
167 rval = smiapp_write_8s(sensor, regs, ARRAY_SIZE(regs));
171 switch (sensor->hwcfg->ext_clk) {
173 return smiapp_write_8s(sensor, regs_96,
177 sensor->hwcfg->ext_clk);
182 static int jt8ev1_pre_streamon(struct smiapp_sensor *sensor)
184 return smiapp_write_8(sensor, 0x3328, 0x00);
187 static int jt8ev1_post_streamoff(struct smiapp_sensor *sensor)
192 rval = smiapp_write_8(sensor, 0x3205, 0x04);
200 rval = smiapp_write_8(sensor, 0x3205, 0x00);
204 return smiapp_write_8(sensor, 0x3328, 0x80);
207 static int jt8ev1_init(struct smiapp_sensor *sensor)
209 sensor->pll.flags |= SMIAPP_PLL_FLAG_OP_PIX_CLOCK_PER_LANE;
222 static int tcm8500md_limits(struct smiapp_sensor *sensor)
224 smiapp_replace_limit(sensor, SMIAPP_LIMIT_MIN_PLL_IP_FREQ_HZ, 2700000);