mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
media: cedrus: prefer untiled capture format
While all generations of display engine on Allwinner SoCs support untiled format, only first generation supports tiled format. Let's move untiled format up, so it can be picked before tiled one. If Cedrus variant doesn't support untiled format, tiled will still be picked as default format. Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
4fc81c58d3
commit
e240c003a0
@ -55,15 +55,15 @@ static struct cedrus_format cedrus_formats[] = {
|
||||
.directions = CEDRUS_DECODE_SRC,
|
||||
.capabilities = CEDRUS_CAPABILITY_VP8_DEC,
|
||||
},
|
||||
{
|
||||
.pixelformat = V4L2_PIX_FMT_NV12_32L32,
|
||||
.directions = CEDRUS_DECODE_DST,
|
||||
},
|
||||
{
|
||||
.pixelformat = V4L2_PIX_FMT_NV12,
|
||||
.directions = CEDRUS_DECODE_DST,
|
||||
.capabilities = CEDRUS_CAPABILITY_UNTILED,
|
||||
},
|
||||
{
|
||||
.pixelformat = V4L2_PIX_FMT_NV12_32L32,
|
||||
.directions = CEDRUS_DECODE_DST,
|
||||
},
|
||||
};
|
||||
|
||||
#define CEDRUS_FORMATS_COUNT ARRAY_SIZE(cedrus_formats)
|
||||
|
Loading…
Reference in New Issue
Block a user