media: mgb4: Fix resolution change events triggering
authorMartin Tůma <martin.tuma@digiteqautomotive.com>
Mon, 7 Apr 2025 15:50:35 +0000 (17:50 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 13:14:32 +0000 (15:14 +0200)
commite6fd3d81dba13c7c8a244e15db0f1e37f4ed21ab
tree51642234ab65bb4eb171597071877e715edd371e
parent73fb3b92da84637e3817580fa205d48065924e15
media: mgb4: Fix resolution change events triggering

Always generate the resolution change event when the HW reports it and only
discard the streaming termination in case the new resolution is the same as
the old one. The old logic prevented events on
"no signal" -> "valid resolution" transitions as VIDIOC_QUERY_DV_TIMINGS
never updates the timings when there is no signal present.

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/pci/mgb4/mgb4_vin.c