Skip to content

A23 support #39

@ghost

Description

Hi, is it possible to run this on A23?
I applied this patch to kernel:

diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
index 4461d5098..2fadc02d5 100644
--- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
@@ -152,6 +152,17 @@ ve_sram: sram-section@0 {
                        };
                };
 
+                video-codec@1c0e000 {
+                        compatible = "allwinner,sun8i-a33-video-engine";
+                        reg = <0x01c0e000 0x1000>;
+                        clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
+                                 <&ccu CLK_DRAM_VE>;
+                        clock-names = "ahb", "mod", "ram";
+                        resets = <&ccu RST_BUS_VE>;
+                        interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
+                        allwinner,sram = <&ve_sram 1>;
+                };
+
                dma: dma-controller@1c02000 {
                        compatible = "allwinner,sun8i-a23-dma";
                        reg = <0x01c02000 0x1000>;

and... it's not working! Timeout when waiting for media request!

VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[00575a48] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[004f9b98] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
libva info: VA-API version 1.10.0
libva info: User environment variable requested driver 'v4l2_request'
libva info: Trying to open /usr/lib/arm-linux-gnueabihf/dri/v4l2_request_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
[007b2ab8] avcodec decoder: Using v4l2-request for hardware decoding
v4l2-request: Timeout when waiting for media request
[h264 @ 0x7d8300] Failed to end picture decode issue: 1 (operation failed).
[b2b05650] main filter error: Failed to create video converter
[h264 @ 0x7d8300] hardware accelerator failed to decode picture
v4l2-request: Timeout when waiting for media request
[h264 @ 0x81e8a0] Failed to end picture decode issue: 1 (operation failed).
[h264 @ 0x81e8a0] hardware accelerator failed to decode picture
v4l2-request: Timeout when waiting for media request
[h264 @ 0x860380] Failed to end picture decode issue: 1 (operation failed).
[h264 @ 0x860380] hardware accelerator failed to decode picture
v4l2-request: Timeout when waiting for media request
[h264 @ 0x7d8300] Failed to end picture decode issue: 1 (operation failed).
[h264 @ 0x7d8300] hardware accelerator failed to decode picture
^Cv4l2-request: Timeout when waiting for media request
[h264 @ 0x81e8a0] Failed to end picture decode issue: 1 (operation failed).
[h264 @ 0x81e8a0] hardware accelerator failed to decode picture
v4l2-request: Timeout when waiting for media request
[h264 @ 0x860380] Failed to end picture decode issue: 1 (operation failed).
[h264 @ 0x860380] hardware accelerator failed to decode picture
v4l2-request: Unable to queue buffer: Invalid argument

is it possible to fix this?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions