batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.9k stars 492 forks source link

v36 on Orange Pi 5 - No audio on HDMI #8598

Open DannyArr opened 1 year ago

DannyArr commented 1 year ago

/orangepi-5/stable/last/batocera-rk3588-orangepi-5-36-20230310.img.gz

Sound is available via the 3.5 jack, but getting nothing via HDMI, nor is the HDMI option available in hardware settings.

mpv --audio-device=help

List of detected audio devices: 'auto' (Autoselect device) 'pulse/alsa_output.platform-dp0-sound.stereo-fallback' (rockchip-dp0 Stereo) 'pulse/alsa_output.platform-es8388-sound.stereo-fallback' (rockchip-es8388 Stereo) 'alsa' (Default (alsa)) 'alsa/oss' (Open Sound System) 'alsa/pipewire' (PipeWire Sound Server) 'alsa/upmix' (Plugin for channel upmix (4,6,8)) 'alsa/vdownmix' (Plugin for channel downmix (stereo) with a simple spacialization) 'alsa/sysdefault:CARD=rockchipdp0' (rockchip-dp0, rockchip-dp0 spdif-hifi-0/Default Audio Device) 'alsa/sysdefault:CARD=rockchiphdmi0' (rockchip-hdmi0, rockchip-hdmi0 i2s-hifi-0/Default Audio Device) 'alsa/sysdefault:CARD=rockchipes8388' (rockchip-es8388, dailink-multicodecs ES8323.6-0010-0/Default Audio Device) 'sdl' (Default (sdl))

The above shows rockchiphdmi0 but the only devices that Batocera detects are the "pulse/alsa_output.platform-XXX" ones, which doesn't include HDMI. See below from "batocera-audio" command.

[root@BATOCERA /userdata/system]# batocera-audio list auto auto alsa_output.platform-dp0-sound.stereo-fallback rockchip-dp0 Stereo alsa_output.platform-es8388-sound.stereo-fallback rockchip-es8388 Stereo

And this from "aplay"

[root@BATOCERA /userdata/system]# aplay -L null Discard all samples (playback) or generate zero samples (capture) oss Open Sound System pipewire PipeWire Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization default Default ALSA Output (currently PipeWire Media Server) sysdefault:CARD=rockchipdp0 rockchip-dp0, rockchip-dp0 spdif-hifi-0 Default Audio Device sysdefault:CARD=rockchiphdmi0 rockchip-hdmi0, rockchip-hdmi0 i2s-hifi-0 Default Audio Device sysdefault:CARD=rockchipes8388 rockchip-es8388, dailink-multicodecs ES8323.6-0010-0 Default Audio Device

Not sure if this is a pipewire issue. If there are any log files that might help, please let me know where I can find them.

dmanlfc commented 1 year ago

Move to v37 beta & try

DannyArr commented 1 year ago

It seems that the build for orangepi-5 is not included in v37 Beta.

[root@BATOCERA /userdata/system]# batocera-check-updates beta Installed: 36 2023/03/10 14:19 Webversion: 36 2023/03/10 14:19 Update URL: https://updates.batocera.org/orangepi-5/beta/last Branch: BETA-branch searched Used arch: orangepi-5 Status: No Update found!

dmanlfc commented 1 year ago

@stvhay was working on it - Steve?

stvhay commented 1 year ago

I thought we closed this out, but let me grab a recent beta and check it out so we don't deploy something too broken.

DannyArr commented 1 year ago

Is this something there is a workaround for or for my own education (Linux learner), any idea what I should look at to start investigations. Been looking into pipewire, but not sure if it's the right place to start.

stvhay commented 1 year ago

The most recent betas are uniquely broken on orangepi5 and I am still troubleshooting what happened. That said I tested 36 and it was working so I’m not sure what’s happening there. I’ll let you know as soon as I find something

stvhay commented 1 year ago

@DannyArr If you are willing, please try this image:

https://static.st5ve.com/batocera/orangepi-5/37-20230422/batocera-rk3588-orangepi-5-37-20230422.img.gz

I am loading up the 36 image to see what I can do as well.

stvhay commented 1 year ago

Okay just booted up the 36 image and its working as well.

DannyArr commented 1 year ago

Strange. I'll try to get 37 installed then soon and try again. Thanks. When I do a "batocera-audio list" what should I see?

jgawronek commented 1 year ago

Jumping in to give feedback, if that's ok. I too have the same problem ha mentioned above. I installed batocera-rk3588-orangepi-5-37-20230422.img, which does enable the HMDI audio options, however when selected I don't hear any audio. Also trying to load any rom after that will just hang on a black screen at some point during the load.

stvhay commented 1 year ago

Hrm. This directly contradicts my experience. When selecting hdmi audio, are you actually connecting audio on the other end? The way I am testing is with a monitor and headphones on the monitor….Does audio work if you select the other audio option and plug directly into the headphone/audio jack on the board?Sent from my iPhoneOn Apr 29, 2023, at 9:23 PM, jgawronek @.***> wrote: Jumping in to give feedback, if that's ok. I too have the same problem has mentioned. I installed batocera-rk3588-orangepi-5-37-20230422.img, which does enable give the HMDI audio options, however when selected I don't hear any audio. Also trying to load any rom after that will just hang on a black screen at some point during the load.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>

jgawronek commented 1 year ago

Hi, I just did a clean install of the same 37 build, and played with the settings more.

This build initially did enable this HDMOI Audio Output: ROCKCHIP-HDMIOHDMI/DISPLAY PORT 1 STEREO

With that Output selected, I was able to get HDMI audio with these options: Audio Output: ROCKCHIP-HDMIOHDMI/DISPLAY PORT 1 STEREO Audio Profile: ROCKCHIP-ES8388STEREO OUTPUT

However, after restarting Batocera through the UI, this is the only HDMI Audio Output option I'm seeing now, and not the previous one. ALSA_OUTPUT.PLATFORM-HDMIO-SOUND.PRO-OUTPUT-O

Also, after restarting, Batocera seemed to freeze during the loading screen several times, before the video splash would play. Then when it did fully load, the HDMI audio was gone and only audio profile available was now: ALSA_OUTPUT.PLATFORM-HDMIO-SOUND.PRO-OUTPUT-O are:

With these audio profiles. AUTO ROCKCHIP-DPOSTEREO OUTPUT ROCKCHIP-ES8388STEREO OUTPUT + STEREO INPUT ROCKCHIP-ES8388STEREO ROCKCHIP-ES8388PRO AUDIO ROCKCHIP-HDMI0PRO AUDIO

I've tried each one with no HDMI audio.

Hope that helps.

jgawronek commented 1 year ago

I only have one Orange PI 5, so cannot confirm if there's anything wrong with the HW.

jgawronek commented 1 year ago

Can also confirm, same issues with: orangepi-5 - 37-dev-8e4e4ea8de 2023/04/29 07:05

dmanlfc commented 1 year ago

Works here v37 with HDMI using Auto settings for Audio Output.

GeneralChaotis commented 1 year ago

I have an Orange Pi 5 16GB that I have been testing with for a few days and here's what I've found:

Started with v37 061623 on a fresh unchanged install and moved to v38 062423 with same results. All included emulators/roms would crash on start almost every time with audio set to auto, even plugged into monitors that do not support audio (I never tested headphone jack to see if there was actual audio). I only managed to get Old Towers to launch once (with audio) but it crashed just by backing out and trying again. I say crashed as I had the overlay showing core speeds and it also becomes unresponsive.

This same issue caused Batocera to crash if using the default startup video with audio; it would freeze with a blue screen and the version number most of the time. You had to unplug the HDMI and let it get to the UI before plugging it back in to change audio settings. I set it to the video without audio to fix it going forward. The video previews have never crashed it though, they either have audio or they don't depending on your settings.

Settings that worked on one TV (LG 1080p): ROCKCHIP-HDMI0PRO ROCKCHIP-ES8388STEREO OUTPUT

But taking it to another TV (TCL 4K), emulators would go back to crashing. I did eventually get HDMI audio out of it but it was only after several lockups and it was on one of the ALSA_* strange looking outputs mentioned above and then the crashes stopped.

If it does crash, I saw the same issue above with HDMI0PRO disappearing and instead there being this: ALSA_OUTPUT.PLATFORM-HDMI0-SOUND.HDMI__HW_ROCKCHIPHDMI0_SINK HDMI@ALSA_CARD.PLATFORM-HDMI0-SOUND which did not work until I changed it to AUTO, rebooted, and then I had HDMI0PRO again to select from.

When I do have proper audio output, I have very few lockups but only one has been repeatable. If I go into Gamecube and start any game, then go into config using HOTKEY+SOUTH and return to the game (doesn't matter if nothing is changed) the system will freeze, and then you will have the same ALSA options after a hard reboot.

GeneralChaotis commented 1 year ago

On a Samsung 4k TV these were the only settings I could find that worked: ROCKCHIP-HDMI0HDMI/DISPLAY PORT 1 STEREO ROCKCHIP-HDMI0HDMI/DISPLAY PORT 1 STEREO

JanDubcak commented 1 year ago

Hi all, I have almost same issue. Just no sound at all. OPi 5 connected to 4K TV Phillips 43pus7607/12. Batocera v38 beta. (I'm at work so I don't know exact build nr.) Also I am unable to pair to soundbar via bluetooth and use bluetooth audio. When I used Joshua Riek's version of Ubuntu for OPi5, I had both HDMI and Bluetooth audio working.

When I select Device / profile Output device: ROCKCHIP-HDMI0PRO Profile: ROCKCHIP-ES8388STEREO OUTPUT or ROCKCHIP-HDMI0PRO

No output and upon reboot Output audio device gets changed to: ALSA_OUTPUT.PLATFORM-HDMIO-SOUND.PRO-OUTPUT-O

Also gamecube crahses(have not tried another emulators) when sound is misconfigured.

I have verified that using 3.5mm jack with Device: ROCKCHIP-ES8388STEREO Profile: ROCKCHIPOUTPUT-ES8388STEREO OUTPUT works. So no HDMI audio on this TV for me...

Great thanks for making batocera work on OPi5. It is really comfortable when compared with compiling dolphin and flycast locally and doing all the shenanigans. This way also 6 YO kids are able to start a game. Just that audio output troubles me.

majick commented 8 months ago

after restarting, Batocera seemed to freeze during the loading screen several times, before the video splash would play. Then when it did fully load, the HDMI audio was gone and only audio profile available was now: ALSA_OUTPUT.PLATFORM-HDMIO-SOUND.PRO-OUTPUT-O are:

The current build of v39 for 5b does this as well. No HDMI audio whatsoever, but after fooling around with settings enough, eventually some kind of HDMI profile finally appears. Selecting it, however, is a recipe for disastrous hanging on boot—even going back to "auto" after that point will blow everything up until one of the other, non-working device/profile combinations is set manually in the config file. Once the HDMI output actually becomes visible to the system, things are about to go very wrong.

Are there any 5b builds that are functional enough (working wifi and audio i?n the same build, perhaps?) to use as a daily driver? I'd be happy to switch to a known good-enough build.