}
i = isp_match_format_get_index(formats, fmt->code, pad);
- st_debug(ST_ISP, "isp_match_format_get_index = %d\n", i);
+ st_debug(ST_ISP, "%s pad=%d, code=%x isp_match_format_get_index = %d\n",
+ __func__, pad, code, i);
if (i >= formats->nfmts &&
(pad == STF_ISP_PAD_SRC_RAW || pad == STF_ISP_PAD_SRC_SCD_Y)) {
struct v4l2_rect *rect = NULL;
int ret;
+ st_debug(ST_ISP, "%s pad=%d, code=%x, which=%d\n",
+ __func__, fmt->reserved[0], fmt->format.code, fmt->which);
format = __isp_get_format(isp_dev, state, fmt->pad, fmt->which);
if (format == NULL)
return -EINVAL;
struct stfcamss_video *video = video_drvdata(file);
st_debug(ST_VIDEO, "%s, fmt.type = 0x%x\n", __func__, f->type);
- st_debug(ST_VIDEO, "%s, active_fmt.type = 0x%x\n",
- __func__, video->active_fmt.type);
+ st_debug(ST_VIDEO, "%s, active_fmt.type = 0x%x,0x%x\n",
+ __func__, video->active_fmt.type,
+ video->active_fmt.fmt.pix.pixelformat);
*f = video->active_fmt;
return 0;
}
mf->code = dst_code;
ret = v4l2_subdev_call(subdev, pad, set_fmt, state, fmt);
st_warn(ST_VIDEO,
- "\"%s\":%d pad fmt set to 0x%x %ux%u, dst_code = 0x%x\n",
+ "\"%s\":%d pad fmt set to 0x%x %ux%u, dst_code = 0x%x, ret=%d\n",
subdev->name, fmt->pad, mf->code,
- mf->width, mf->height, dst_code);
+ mf->width, mf->height, dst_code, ret);
if (mf->code != code ||
mf->width != width || mf->height != height) {
st_warn(ST_VIDEO,
index = video_find_format(mf->code,
video->formats[index].pixelformat,
video->formats, video->nformats);
+ st_debug(ST_VIDEO, "%s, code=%x, index=%d\n",
+ __func__, mf->code, index);
+
if (index < 0)
return index;
struct stfcamss_video *video = video_drvdata(file);
int ret;
- st_debug(ST_VIDEO, "%s, fmt.type = 0x%x\n", __func__, f->type);
+ st_debug(ST_VIDEO, "%s, fmt.type = 0x%x, v4l2fmt=%x\n",
+ __func__, f->type, f->fmt.pix.pixelformat);
if (vb2_is_busy(&video->vb2_q))
return -EBUSY;
return ret;
ret = video_pipeline_s_fmt(video, NULL, f);
+
+ st_debug(ST_VIDEO, "%s, pixelformat=0x%x, ret=%d\n",
+ __func__, f->fmt.pix.pixelformat, ret);
if (ret < 0)
return ret;