]> git.baikalelectronics.ru Git - kernel.git/commit
media: atmel: atmel-isc-base: report frame sizes as full supported range
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 13 Dec 2021 13:49:26 +0000 (14:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:59 +0000 (14:23 +0200)
commit20890bb2310f639bc6f5153558bf8bf2a58d8770
tree660b3a2a3c92d9d0bbdf6cc91b595c5e3a20bbf2
parent4d1d0f0dfd0c251afcd9d25695bd24889513b894
media: atmel: atmel-isc-base: report frame sizes as full supported range

[ Upstream commit d779fe3641ba6fab33b3ea584629ca6ab2e4e2c9 ]

The ISC supports a full broad range of frame sizes.
Until now, the subdevice was queried for possible frame sizes and these
were reported to the user space.
However, the ISC should not care about which frame sizes the subdev
supports, as long as this frame size is supported.
Thus, report a continuous range from smallest frame size up to the max
resolution.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/atmel/atmel-isc-base.c