Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec9faa1c authored by Ian Armstrong's avatar Ian Armstrong Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (9165): ivtv: V4L2_FBUF_FLAG_OVERLAY status fix



When the framebuffer format was queried via VIDIOC_G_FBUF,
V4L2_FBUF_FLAG_OVERLAY would only be correctly returned for certain screen
depths.

Signed-off-by: default avatarIan Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4ee0e42b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1363,6 +1363,9 @@ static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
	if (itv->osd_global_alpha_state)
		fb->flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA;

	if (yi->track_osd)
		fb->flags |= V4L2_FBUF_FLAG_OVERLAY;

	pixfmt &= 7;

	/* no local alpha for RGB565 or unknown formats */
@@ -1382,8 +1385,6 @@ static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)
		else
			fb->flags |= V4L2_FBUF_FLAG_LOCAL_ALPHA;
	}
	if (yi->track_osd)
		fb->flags |= V4L2_FBUF_FLAG_OVERLAY;

	return 0;
}