mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: rockchip: cif: fix warn of v4l_enum_fmt
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I391c96cb1a820e39db939756ab07d4a0a9048380
This commit is contained in:
@@ -4590,6 +4590,20 @@ static int rkcif_enum_fmt_vid_cap_mplane(struct file *file, void *priv,
|
||||
fmt = &out_fmts[f->index];
|
||||
f->pixelformat = fmt->fourcc;
|
||||
|
||||
switch (f->pixelformat) {
|
||||
case V4l2_PIX_FMT_EBD8:
|
||||
strscpy(f->description,
|
||||
"Embedded data 8-bit",
|
||||
sizeof(f->description));
|
||||
break;
|
||||
case V4l2_PIX_FMT_SPD16:
|
||||
strscpy(f->description,
|
||||
"Shield pix data 16-bit",
|
||||
sizeof(f->description));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user