mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
media: cedrus: Add support for the D1 variant
D1 has a unique variant of the video engine, which appears to drop the VP8 support found on most earlier variants. Signed-off-by: Samuel Holland <samuel@sholland.org> Acked-by: Maxime Ripard <maxime@cerno.tech> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
b925c1fdea
commit
8f852ab8c3
@ -580,6 +580,14 @@ static const struct cedrus_variant sun8i_r40_cedrus_variant = {
|
||||
.mod_rate = 297000000,
|
||||
};
|
||||
|
||||
static const struct cedrus_variant sun20i_d1_cedrus_variant = {
|
||||
.capabilities = CEDRUS_CAPABILITY_UNTILED |
|
||||
CEDRUS_CAPABILITY_MPEG2_DEC |
|
||||
CEDRUS_CAPABILITY_H264_DEC |
|
||||
CEDRUS_CAPABILITY_H265_DEC,
|
||||
.mod_rate = 432000000,
|
||||
};
|
||||
|
||||
static const struct cedrus_variant sun50i_a64_cedrus_variant = {
|
||||
.capabilities = CEDRUS_CAPABILITY_UNTILED |
|
||||
CEDRUS_CAPABILITY_MPEG2_DEC |
|
||||
@ -637,6 +645,10 @@ static const struct of_device_id cedrus_dt_match[] = {
|
||||
.compatible = "allwinner,sun8i-r40-video-engine",
|
||||
.data = &sun8i_r40_cedrus_variant,
|
||||
},
|
||||
{
|
||||
.compatible = "allwinner,sun20i-d1-video-engine",
|
||||
.data = &sun20i_d1_cedrus_variant,
|
||||
},
|
||||
{
|
||||
.compatible = "allwinner,sun50i-a64-video-engine",
|
||||
.data = &sun50i_a64_cedrus_variant,
|
||||
|
Loading…
Reference in New Issue
Block a user