]> git.baikalelectronics.ru Git - kernel.git/commit
media: atmel: atmel-isc-base: replace is_streaming call in s_fmt_vid_cap
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 3 May 2022 08:44:15 +0000 (10:44 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:21 +0000 (11:02 +0200)
commit3e2682611caaa0f995f171e281365a3cd9e20687
tree38ff6ea2aa3d7a7b14ffebb3693f4e93059a276e
parente618d0d34c8ec55430781507784384a864bdfc12
media: atmel: atmel-isc-base: replace is_streaming call in s_fmt_vid_cap

In s_fmt_vid_cap, we should check if vb2_is_busy and return EBUSY,
not check if it's streaming to return the busy state.

Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
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>
drivers/media/platform/atmel/atmel-isc-base.c