<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/drivers/media/platform/mtk-vcodec, branch jd/orphan-parallel</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/drivers/media/platform/mtk-vcodec?h=jd%2Forphan-parallel</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/drivers/media/platform/mtk-vcodec?h=jd%2Forphan-parallel'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2020-09-26T08:12:09Z</updated>
<entry>
<title>media: mtk-vcodec: make IRQs disabled upon request</title>
<updated>2020-09-26T08:12:09Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T11:19:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=59b2076df4fd905471a33805526d668226f3f814'/>
<id>urn:sha1:59b2076df4fd905471a33805526d668226f3f814</id>
<content type='text'>
The driver requests IRQs to disable them immediately. This is
potentially racy, fix this by requesting the IRQs to come disabled
instead using the IRQ_NOAUTOEN flag of irq_set_status_flags().

Reported-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: fix invalid time per frame in S_PARM</title>
<updated>2020-09-26T08:11:26Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=42f401e751b58ef071874779ef972187ef5dfce3'/>
<id>urn:sha1:42f401e751b58ef071874779ef972187ef5dfce3</id>
<content type='text'>
v4l2-compliance expects the driver to adjust the time per frame if it is
invalid (numerator or denominator set to 0). Adjust it to the default
value in these cases.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: set default time per frame</title>
<updated>2020-09-26T08:11:01Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=7ee20328e470b15528f9f53b7177e05628f92609'/>
<id>urn:sha1:7ee20328e470b15528f9f53b7177e05628f92609</id>
<content type='text'>
The time per frame was left initialized to 0/0, which make the driver
fail v4l2-compliance, and also leaves it potentially exposed to doing a
division by zero.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: support ENUM_FRAMESIZES on OUTPUT formats</title>
<updated>2020-09-26T08:10:40Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2c86bf67d05692b16b5a82ba62f1e9afcaeb7e7a'/>
<id>urn:sha1:2c86bf67d05692b16b5a82ba62f1e9afcaeb7e7a</id>
<content type='text'>
v4l2-compliance requires ENUM_FRAMESIZES to support OUTPUT formats.
Reuse mtk_venc_find_format() to make sure both queues are considered
when serving an ENUM_FRAMESIZES.

[hverkuil: fixed some checkpatch alignment warnings]

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: use platform data for ENUM_FRAMESIZES</title>
<updated>2020-09-26T08:10:07Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=cd385511520e22ec0e8bdbfb7fbb997a4256ac88'/>
<id>urn:sha1:cd385511520e22ec0e8bdbfb7fbb997a4256ac88</id>
<content type='text'>
vidioc_enum_framesizes() assumes that all encoders support H.264 and VP8,
which is not necessarily true and requires to duplicate information about
the supported codecs which is already stored in the platform data.

Fix this by referring to the platform data to find out whether a given
format is supported. Since the supported sizes are all the same
regardless of the format, we can then return a copy of a static value if
the format is supported.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: set OUTPUT buffers field to V4L2_FIELD_NONE</title>
<updated>2020-09-26T08:09:34Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=327296920f9dedfc6ba4ef8f5a686c9667c65f38'/>
<id>urn:sha1:327296920f9dedfc6ba4ef8f5a686c9667c65f38</id>
<content type='text'>
A default value of 0 means V4L2_FIELD_ANY, which is not correct.
Reported by v4l2-compliance.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc support MIN_OUTPUT_BUFFERS control</title>
<updated>2020-09-26T08:09:09Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=f01b10fa5abc66f24b5e5e2be7a4a3f7561387c1'/>
<id>urn:sha1:f01b10fa5abc66f24b5e5e2be7a4a3f7561387c1</id>
<content type='text'>
This control is required by v4l2-compliance for encoders. A value of 1
should be suitable for all scenarios.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: Revert "media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding"</title>
<updated>2020-09-26T08:08:49Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=bcbe5adac37ab9c7051c14f7987465893f36d44f'/>
<id>urn:sha1:bcbe5adac37ab9c7051c14f7987465893f36d44f</id>
<content type='text'>
This reverts commit 81735ecb62f882853a37a8c157407ec4aed44fd0.

The hardware needs data to follow the previous alignment, so this extra
space was not superfluous after all. Besides, this also made
v4l2-compliance's G_FMT and S_FMT tests regress.

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: add support for MT8183 encoder</title>
<updated>2020-09-26T08:07:05Z</updated>
<author>
<name>Yunfei Dong</name>
<email>yunfei.dong@mediatek.com</email>
</author>
<published>2020-08-21T10:36:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=c9082c9d39987933958d9075e45721fe9b9a2fcb'/>
<id>urn:sha1:c9082c9d39987933958d9075e45721fe9b9a2fcb</id>
<content type='text'>
Now that all the supporting blocks are present, enable encoder for
MT8183.

[acourbot: refactor, cleanup and split]

Signed-off-by: Yunfei Dong &lt;yunfei.dong@mediatek.com&gt;
Co-developed-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: mtk-vcodec: venc: specify supported formats per-chip</title>
<updated>2020-09-26T08:06:08Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@chromium.org</email>
</author>
<published>2020-08-21T10:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=eae6f634327eb196c8c2fe6c69800d04f73bd5bd'/>
<id>urn:sha1:eae6f634327eb196c8c2fe6c69800d04f73bd5bd</id>
<content type='text'>
Different chips have different supported formats. Move the list of
supported formats to the platform data, and split the output and capture
formats into two lists to make it easier to find the default format for
each queue.

[hverkuil: fixed some checkpatch alignment warnings]

Signed-off-by: Alexandre Courbot &lt;acourbot@chromium.org&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
</feed>
