Commit 299ecc4f authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Lecopzer Chen
Browse files

UPSTREAM: media: v4l2-mem2mem: always consider OUTPUT queue during poll



If poll() is called on a m2m device with the EPOLLOUT event after the
last buffer of the CAPTURE queue is dequeued, any buffer available on
OUTPUT queue will never be signaled because v4l2_m2m_poll_for_data()
starts by checking whether dst_q->last_buffer_dequeued is set and
returns EPOLLIN in this case, without looking at the state of the OUTPUT
queue.

Fix this by not early returning so we keep checking the state of the
OUTPUT queue afterwards.

Bug: 196334249
(cherry picked from commit 566463af)
Signed-off-by: default avatarAlexandre Courbot <gnurou@gmail.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarLecopzer Chen <lecopzer.chen@mediatek.com>
Change-Id: I56d516211447a13e16c54b0b31b2ec397fe6e0da
parent 86266c58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment