Commit 378ef55d authored by Martin Kepplinger's avatar Martin Kepplinger

hi846 tests

from Dorota. thanks. squash or remove
parent 732f0cee
Pipeline #61165 passed with stage
in 68 minutes and 37 seconds
......@@ -140,7 +140,7 @@ struct hi846 {
};
static const struct hi846_datafmt hi846_colour_fmts[] = {
{MEDIA_BUS_FMT_UYVY8_2X8, V4L2_COLORSPACE_JPEG},
{MEDIA_BUS_FMT_SBGGR8_1X8, V4L2_COLORSPACE_JPEG},
};
static const struct hi846_datafmt *hi846_find_datafmt(u32 code)
......@@ -711,7 +711,7 @@ static void hi846_assign_pad_format(const struct hi846_mode *mode,
fmt->width = mode->width;
fmt->height = mode->height;
//fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10;
fmt->code = MEDIA_BUS_FMT_UYVY8_2X8;
fmt->code = MEDIA_BUS_FMT_SBGGR8_1X8;
fmt->field = V4L2_FIELD_NONE;
}
......@@ -965,7 +965,7 @@ static int hi846_get_format(struct v4l2_subdev *sd,
pr_err("hi846: starting %s\n", __func__);
mutex_lock(&hi846->mutex);
mf->code = MEDIA_BUS_FMT_UYVY8_2X8;
mf->code = MEDIA_BUS_FMT_SBGGR8_1X8;
mf->colorspace = V4L2_COLORSPACE_JPEG;
mf->field = V4L2_FIELD_NONE;
mf->width = hi846->cur_mode->width;
......@@ -998,7 +998,7 @@ pr_err("hi846: starting: %s\n", __func__);
return -EINVAL;
//if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10)
if (fse->code != MEDIA_BUS_FMT_UYVY8_2X8)
if (fse->code != MEDIA_BUS_FMT_SBGGR8_1X8)
return -EINVAL;
fse->min_width = supported_modes[fse->index].width;
......@@ -1230,7 +1230,7 @@ static int hi846_probe(struct i2c_client *client)
usleep_range(50, 100);
hi846_gpio_assert(hi846, RST);
usleep_range(50, 100);
hi846_gpio_deassert(hi846, RST);
//hi846_gpio_deassert(hi846, RST);
usleep_range(50, 100);
ret = hi846_identify_module(hi846);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment