media: allegro: use accessor functions for QP values
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 3 Dec 2020 11:01:01 +0000 (12:01 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 15:12:39 +0000 (16:12 +0100)
commit2b6e6e5b26cf556c576887d8d4e617d3020b6ed2
tree83e750b5785940849d8955bc6c21eb0af78cd80d
parent608341075c2d5ead508962e837fb53a25ef3ffba
media: allegro: use accessor functions for QP values

V4L2 specifies different controls for the QP values of different codecs.

Simplify users that just care for the QP values by providing accessor
function that return the correct control based on the currently set
codec.

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