media: allegro: add helper to get entropy mode
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 3 Dec 2020 11:01:02 +0000 (12:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 15:12:59 +0000 (16:12 +0100)
commit655ef9f9e87568aff031391712669b74d1b362f1
treef6e60577daaa65c65d0ebc9a181bf768cb4c6771
parent2b6e6e5b26cf556c576887d8d4e617d3020b6ed2
media: allegro: add helper to get entropy mode

The driver only supports CAVLC for H.264, but HEVC only uses CABAC. As
the driver has to explicitly tell the MCU to use CABAC for HEVC, add a
helper function to get the entropy mode.

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/media/platform/allegro-dvt/allegro-core.c