batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.93k stars 496 forks source link

OGA No Audio Output With Headphones #9886

Open ghost opened 12 months ago

ghost commented 12 months ago

I'm using a ODROID-Go Advance. I recently updated to Batorcera Linux ES v37 2023/06/16 and the headphone output stopped working. If I boot it with the headphones plugged in, it'll freeze once it gets to the main menu. If I plug it in after the fact, it won't have audio at all but will run fine otherwise. I did check to make sure it wasn't muted and I turned the volume all the way up. Audio works through the built-in speaker just fine.

I did have the freezing issue before, but I ignored it because the headphone output would work fine if I waited until after it was done booting to plug them in.

Looking through the log, I did find this entry:

batocera kernel: [ 476.189122] snd_soc_jack_report report hp status = 0

I don't know how relevant that is.

dmanlfc commented 12 months ago

@Quinn64 we are moving to a v38 on a few weeks. Please try the v38 beta & let us know.

ghost commented 12 months ago

On Sun, 2023-09-17 at 02:02 -0700, Daniel Martin wrote:

@Quinn64 we are moving to a v38 on a few weeks. Please try the v38 beta & let us know.

It looks like the beta isn't available for the OGA yet. I'll try it out when it is

joinski1 commented 12 months ago

hopefully this issue can be fixed too before release of stable v38? https://github.com/batocera-linux/batocera.linux/issues/9323

@nadenislamarre @dmanlfc would also like to test a v38 butterfly for oga (rk3326)

dmanlfc commented 12 months ago

@joinski1 don't jump on another thread to bump the interest in another issue.

joinski1 commented 12 months ago

Sorry, just wanted to mention that I would also like to test a beta for OGA (for both problems). And the link to the other issue just for Quinn64, so that he knows that there is another issue he could test as well on his device with the beta.

nadenislamarre commented 12 months ago

yep, i'll start it one today.

ghost commented 11 months ago

I tried the new beta build (v38 dev 3506c5658f 2023/09/22 14:50) and same issue. On top of that, the beta build breaks Syncthing

a7nougie commented 11 months ago

same issue on odroid go super. I change the audio profile from AUTO to ROCKCHIP, RK817-CODEPRO AUDIO and now it works.

20230924_165908

ghost commented 11 months ago

On Sun, 2023-09-24 at 08:05 -0700, Axel Nougier wrote:

same issue on odroid go super. I change the audio profile from AUTO to ROCKCHIP, RK817-CODEPRO AUDIO and now it works.

20230924_165908

Unfortunately, that doesn't fix it on my end. If I only plug in my headphones part way to where it doesn't detect them plugged in, audio comes through the headphones just fine. It's when it detects them and disables the built in speaker output that I also lose headphone audio, so I don't think it's a hardware issue on my end.

joinski1 commented 11 months ago

can confirm on my powkiddy rgb10 (oga be clone) i also have no sound via headphone. if i plug in headphone while device is on, no sound via headphone. if i inplug, sound comes from internal speakers. even if i set Audio Output from AUTO to HEADPHONE, no sound via Headphone. when i plug in headphones before turning on the device, i still have no sound and controls suddenly do not wark anymore. tested on current butterfly build (38-dev 2023/09/22)

nadenislamarre commented 11 months ago

the audio automatic switching is a work i've to do correctly as a general issue.

dmanlfc commented 11 months ago

take the changes from here - https://github.com/batocera-linux/batocera.linux/pull/10040/files and test also for your OGA device. This fixes problems with the same rockchip chipset.

joinski1 commented 11 months ago

I just tested the current butterfly from 01.10.23 of oga (rk3326) on my powkiddy rgb10 (odroid go advance be clone) and noticed, when setting Audio Profile to "ROCKCHIP ,RK817-CODECPRO AUDIO" i have working Audio via internal speakers, and when plugging in Headphones into the 3.5mm Audio Jack, the audio switches to headphones successfully (and when unplugging the headphones, the audio switches back to internal speakers). So issue is fixed, with setting Audio Profile to "ROCKCHIP ,RK817-CODECPRO AUDIO" ;)

ghost commented 11 months ago

It's fixed for me now under the latest beta build as well, but does require the user to manually set the Audio Profile, so probably shouldn't close the issue quite yet.

EDIT: Oh, the UI still freezes if the headphones are plugged in when it boots.

joinski1 commented 11 months ago

Can confirm. With headphones plugged in before starting the device, controls do not work and sound still comes out of the internal speakers instead of the headphones

akschu commented 10 months ago

I downloaded the latest batocera-rk3326-rk3326-38-20231016.img.gz image for my Odroid Go Advanced and I can see the ROCKCHIP ,RK817-CODECPRO AUDIO profile, but when I select it I only get sound from the external speaker.

Joinski1 reports that 01.10.23 resolves it, but I'm running a version later than that and still having trouble. Any ideas on what version to run to fix this or when the ultimate fix will be in the latest release? I'm happy to help test and report back.