batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.85k stars 472 forks source link

Le potato board, no analog audio in cvbs #11688

Closed efirshik closed 2 months ago

efirshik commented 2 months ago

Batocera build version

38 2023/10/15 01:11

Your architecture

Le Potato

Your Graphic Processor Unit(s) (GPU)

Amlogic Video Engine (AVE10)

Issue description

download and install batocera-s905-lepotato-38-20231015.img last image for Le Potato Board. cvbs video work, cvbs cable video and audio pinout properly. no audio with use only cvbs out (analog audio).

In Libre Computer forum this problem need fix in alsa mixer https://hub.libre.computer/t/libre-computer-le-potato-aml-s905x-cc-no-analog-audio-issues-with-alsamixer-and-high-voltage/31 . This file fix https://github.com/libre-computer-project/libretech-raspbian-portability/blob/master/apps/alsa/aml-s905x-cc.state . Which folder should the file aml-s905x-cc.state be placed in batocera linux?

Detailed reproduction steps

Install batocera Linux for Le Potato sbc and use cvbs out.

Details of any attempts to fix this yourself

No response

Details of any modifications you have made to Batocera.

no modification

Logs and data

No response

efirshik commented 2 months ago

sorry for question, i found solution for analog audio:

1) connect over ssh to batocera. 2) download state alsa for lepotato analog audio:

curl https://raw.githubusercontent.com/libre-computer-project/libretech-raspbian-portability/master/apps/alsa/aml-s905x-cc.state > /userdata/system/asound.state

3) make restore alsa state after boot:

mount -o remount,rw /boot
echo -e '#!/bin/bash\nalsactl --file /userdata/system/asound.state restore' > /boot/postshare.sh
chmod +x /boot/postshare.sh

4) reboot batocera and check analog audio.