media: rockchip: rkcif: comply with minimum number of buffers requirement
authorMichael Riesch <michael.riesch@collabora.com>
Fri, 20 Feb 2026 08:15:08 +0000 (09:15 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:34 +0000 (01:05 +0100)
commit48c8292d4445088d8b3c9d639c7982744a94d819
tree89f7d4d9674d43681af6263ba064bcf95a52c7be
parente4056b84af0fc18c84b4e5741df04ecd8ca17973
media: rockchip: rkcif: comply with minimum number of buffers requirement

Each stream requires CIF_REQ_BUFS_MIN=1 buffers to enable streaming.
However, it failed with only one buffer provided.

Comply with the minimum number of buffers requirement and accept
exactly one buffer.

Fixes: 501802e2ad51 ("media: rockchip: rkcif: add abstraction for dma blocks")
Cc: stable@kernel.org
Tested-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Chen-Yu Tsai <wens@kernel.org>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rockchip/rkcif/rkcif-stream.c