]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: add field for number of buffers
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 13 Jul 2020 14:42:21 +0000 (16:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:00:31 +0000 (14:00 +0200)
commit9d3e6b1e2061325571f031441e9e3f4131325e71
tree3d251a0b2b1e10a9aa6e7e445ab13cd32c07201e
parent9d9c076d4cc38ca290e75243323f972853a8ff9b
media: allegro: add field for number of buffers

When pushing the buffers for the intermediate and reference frames to
the MCU, the driver relied on the message size to calculate the number
of buffers. As it is not necessary anymore to keep the messages binary
compatible to the firmware, we can just explicitly write the number of
buffers into the message.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c
drivers/staging/media/allegro-dvt/allegro-mail.c
drivers/staging/media/allegro-dvt/allegro-mail.h