25c098210122bb99b2e8c252ec39f79f3c5cfa10
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0358-staging-bcm2835-codec-Add-VC-1-support.patch
1 From 0ebb1e9d7c922fb94b149783e46b20974b95a16d Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 10 Mar 2021 19:07:48 +0000
4 Subject: [PATCH] staging/bcm2835-codec: Add VC-1 support.
5
6 Providing the relevant licence has been purchased, then Pi0-3
7 can decode VC-1.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 .../vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 7 ++++++-
12 1 file changed, 6 insertions(+), 1 deletion(-)
13
14 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
15 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 @@ -576,7 +576,12 @@ static const struct bcm2835_codec_fmt su
17 .depth = 0,
18 .flags = V4L2_FMT_FLAG_COMPRESSED,
19 .mmal_fmt = MMAL_ENCODING_VP8,
20 - },
21 + }, {
22 + .fourcc = V4L2_PIX_FMT_VC1_ANNEX_G,
23 + .depth = 0,
24 + .flags = V4L2_FMT_FLAG_COMPRESSED,
25 + .mmal_fmt = MMAL_ENCODING_WVC1,
26 + }
27 };
28
29 struct bcm2835_codec_fmt_list {