mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
bcwc_pcie: remove a few debug messages
This commit is contained in:
11
bcwc_v4l2.c
11
bcwc_v4l2.c
@@ -405,12 +405,9 @@ static int bcwc_v4l2_ioctl_try_fmt_vid_cap(struct file *filp, void *_priv,
|
||||
dist = min(width, wanted_width) * min(height, wanted_height);
|
||||
dist = width * height + wanted_width * wanted_height - 2 * dist;
|
||||
|
||||
pr_debug("%dx%d, dist %d\n", width, height, dist);
|
||||
|
||||
if (dist < maxdist) {
|
||||
maxdist = dist;
|
||||
p1 = p;
|
||||
pr_debug("assign\n");
|
||||
}
|
||||
|
||||
if (maxdist == 0)
|
||||
@@ -418,7 +415,6 @@ static int bcwc_v4l2_ioctl_try_fmt_vid_cap(struct file *filp, void *_priv,
|
||||
}
|
||||
|
||||
if (!p1) {
|
||||
pr_debug("no assign\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -455,13 +451,6 @@ static int bcwc_v4l2_ioctl_s_fmt_vid_cap(struct file *filp, void *priv,
|
||||
struct bcwc_fmt *p = NULL;
|
||||
int i;
|
||||
|
||||
pr_info("%s: %dx%d %c%c%c%c\n", __FUNCTION__,
|
||||
fmt->fmt.pix.width, fmt->fmt.pix.height,
|
||||
fmt->fmt.pix.pixelformat,
|
||||
fmt->fmt.pix.pixelformat >> 8,
|
||||
fmt->fmt.pix.pixelformat >> 16,
|
||||
fmt->fmt.pix.pixelformat >> 24);
|
||||
|
||||
for(i = 0; i < ARRAY_SIZE(bcwc_formats); i++) {
|
||||
p = bcwc_formats + i;
|
||||
if (p->fmt.width == fmt->fmt.pix.width &&
|
||||
|
||||
Reference in New Issue
Block a user