media: hantro: Do not reorder H264 scaling list
authorJonas Karlman <jonas@kwiboo.se>
Tue, 29 Oct 2019 00:00:53 +0000 (01:00 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 9 Nov 2019 07:47:33 +0000 (08:47 +0100)
commite17f08e3166635d2eaa6a894afeb28ca651ddd35
tree437441d783797aea88d5e78e86b5f290fbb6e709
parenta6b8feae7c88343212686120740cf7551dd16e08
media: hantro: Do not reorder H264 scaling list

Scaling list supplied from userspace should be in matrix order
and can be used without applying the inverse scanning process.

The HW also only support 8x8 scaling list for the Y component, indices 0
and 1 in the scaling list supplied from userspace.

Remove reordering and write the scaling matrix in an order expected by
the VPU, also only allocate memory for the two 8x8 lists supported.

Fixes: a9471e25629b ("media: hantro: Add core bits to support H264 decoding")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/hantro_h264.c