batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
2.03k stars 522 forks source link

[V40][Moonlight] Sound delay on Orange Pi 5 #12594

Open ameer4 opened 1 month ago

ameer4 commented 1 month ago

Batocera build version

40

Your architecture

Orange Pi 5

Your Graphic Processor Unit(s) (GPU)

Orange Pi 5

Issue description

On default installation HDMI sound don't work unless I choose hdmi device ( ROCKCHIP-HDMI0HDMI/DISPLAY PORT ) See issue: https://github.com/batocera-linux/batocera.linux/issues/8598

Now, when streaming my PC through moonlight the audio is delayed. I don't know if related or not, but the issue don't happen with other OS on Orange Pi 5 (including Android image)

Any tips?

Also, what the kernel version in v40?

Detailed reproduction steps

Fresh v40 on sd card, with moonlight installed & paired to local PC through wired lan.

Details of any attempts to fix this yourself

No response

Details of any modifications you have made to Batocera.

Nothing

Logs and data

No response

dmanlfc commented 1 month ago

Currently there is no hardware acceleration for the rk3588 boards. We would need to patch in support somehow.

dmanlfc commented 1 month ago

try this v41 build - https://drive.google.com/drive/folders/1EKOxP5oulsHTm7rDCIYpeOf98eKzRaCE?usp=drive_link

ameer4 commented 1 month ago

try this v41 build - https://drive.google.com/drive/folders/1EKOxP5oulsHTm7rDCIYpeOf98eKzRaCE?usp=drive_link

Thanks for follow up. I tested it, the delay actually system wide, with every game (only tested moonlight earlier) now I tested the free installed game. There is still delay.

I think it related to how it handle sound in HDMI, since out of the box auto doesn't enable sound in my TV (TCL).

Side note: since this is kernel 6, can you includes new drivers for some WiFi 6 dongles? specifically for me ( chipset: mt7921 , ID 0e8d:7961 MediaTek Inc. Wireless_Device ) it does not work yet.

Other orange pi 5 Ubuntu desktop distro like https://github.com/Joshua-Riek/ubuntu-rockchip/ Support it, how can I inject the drivers? Possible?

dmanlfc commented 1 month ago

my rk3588 boards don't have these delays you're talking about, at all... maybe your tv needs some sound calibration.

ameer4 commented 1 month ago

I currently have 2 os (Joshua Ubuntu 24 on m2 & Batocera on SD card) both supposedly same kernel (6.1) Removing sd card & rebooting to Ubuntu with everything as it is, zero delay on Ubuntu. But as you said earlier it may relate to hardware acceleration since maybe my TV add something to the mix like some audio codecs that need to be disabled so the TV ignore it.

I need more time to check tv settings, I'll update if I knew something.