Commit 585b18ed authored by Hugues Fruchet's avatar Hugues Fruchet Committed by Mauro Carvalho Chehab

media: stm32-dcmi: trace the supported fourcc/mbus_code

Add a trace of the set of supported fourcc/mbus_code which
intersect between DCMI and source sub-device.
Signed-off-by: default avatarHugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 510b3188
...@@ -1447,12 +1447,20 @@ static int dcmi_formats_init(struct stm32_dcmi *dcmi) ...@@ -1447,12 +1447,20 @@ static int dcmi_formats_init(struct stm32_dcmi *dcmi)
/* Code supported, have we got this fourcc yet? */ /* Code supported, have we got this fourcc yet? */
for (j = 0; j < num_fmts; j++) for (j = 0; j < num_fmts; j++)
if (sd_fmts[j]->fourcc == if (sd_fmts[j]->fourcc ==
dcmi_formats[i].fourcc) dcmi_formats[i].fourcc) {
/* Already available */ /* Already available */
dev_dbg(dcmi->dev, "Skipping fourcc/code: %4.4s/0x%x\n",
(char *)&sd_fmts[j]->fourcc,
mbus_code.code);
break; break;
if (j == num_fmts) }
if (j == num_fmts) {
/* New */ /* New */
sd_fmts[num_fmts++] = dcmi_formats + i; sd_fmts[num_fmts++] = dcmi_formats + i;
dev_dbg(dcmi->dev, "Supported fourcc/code: %4.4s/0x%x\n",
(char *)&sd_fmts[num_fmts - 1]->fourcc,
sd_fmts[num_fmts - 1]->mbus_code);
}
} }
mbus_code.index++; mbus_code.index++;
} }
......
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