media: allegro: move encoding options to channel
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 3 Dec 2020 11:00:54 +0000 (12:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 15:05:34 +0000 (16:05 +0100)
commit83a4b7fd7f6f95da2905b7751cec4ad4dc6c222f
tree0392c8a7df334ba9e4fe78cb543bcb6a3688cccb
parentd2a1b58fd2df21d811872e4635087a91b6ba2d45
media: allegro: move encoding options to channel

There are several encoding options that are hard coded in the parameter
that is used to configure the hardware codec. However, some of the
options must be written to the SPS/PPS by the driver. Furthermore, some
of the options depend on the codec that is used (i.e. H.264 or HEVC).

Therefore, move options that depend on the codec to the channel and add
constants for options that are independent of the codec but must be
written to the SPS/PPS.

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