On Fri, Mar 17, 2023 at 11:08:32AM +0800, Yunfei Dong wrote: > While the decoder can produce frames in both MM21 and MT21C formats, only MM21 > is currently supported by userspace tools (like gstreamer and libyuv). In order > to ensure userspace keeps working after the SCP firmware is updated to support > both MM21 and MT21C formats, force the MM21 format for the capture queue. > > This is meant as a stopgap solution while dynamic format switching between > MM21 and MT21C isn't implemented in the driver. > > Fixes: 7501edef6b1f ("media: mediatek: vcodec: Different codec using different capture format") > Signed-off-by: Yunfei Dong <yunfei.dong@xxxxxxxxxxxx> > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> Reviewed-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx> Tested-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx> With this patch and the new firmware [1], I was able to run fluster using the VP8, VP9 and H.264 codecs on both MT8192 and MT8195: MT8192: VP8: 59/61 VP9: 250/303 0/6 (HIGH) H.264: 92/135 27/69 (JVT-FR-EXT) MT8195: VP8: 59/61 VP9: 276/303 0/6 (HIGH) H.264: 95/135 27/69 (JVT-FR-EXT) [1] https://lore.kernel.org/linux-firmware/a43524a089a783f70adbe89b83eeb01fbd405d04.camel@xxxxxxxxxxxx/T/#mb0591267d7921bbfada7c06ee2bda128db554648 Thanks, Nícolas