media: mgb4: Fixed signal frame rate limit handling
authorMartin Tůma <martin.tuma@digiteqautomotive.com>
Mon, 5 Aug 2024 15:40:53 +0000 (17:40 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 14 Aug 2024 08:05:31 +0000 (10:05 +0200)
commite3582018337f4fdd52f873235d4b96fc20b37446
tree0eba18e187f523ba46db87556441d70e58178f2b
parent1724dcc9dd3cc1b58b9954ccafea46921546b4f0
media: mgb4: Fixed signal frame rate limit handling

Change the default DV timings for the outputs to produce a better signal
less "crippled" by the frame rate limiting. While the individual values
are now different, the resulting signal still matches the same default
display as before.

Additionally fix the corner case when the frame rate limit is set to zero
causing a "divide by zero" kernel panic.

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