nullpointer Posted May 29, 2020 Posted May 29, 2020 Armbianmonitor: http://ix.io/2nJJ my alsa report Your ALSA information is located at http://alsa-project.org/db/?f=b3736e2229f641d5fd4fb38904d0b3ee6410a5ec
guidol Posted May 29, 2020 Posted May 29, 2020 "starts playing late" means that you missing the first seconds? on some board the amplifier has to be "started" from the system (because it is using a art of power-save for the sound). This will take up to 3 seconds where you will get no sound....and the system will shut off the amplifier after some seonds with a small "poff"-sound.... I did read about a "switch" in a config-file (like on WiFi powersave) - but I dont know it now from my mind. Got this also on my OPi Zero.... What I mean is in this thread: Put the following line at the end of /boot/cmdline.txt snd-soc-core.pmdown_time=-1 OR echo -1> /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time Maybe that will help you recover the start of your sound?
guidol Posted May 29, 2020 Posted May 29, 2020 Hmm there seems something changed: root@opi-zero(192.168.6.99):~# echo -1> /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time: Permission denied root@opi-zero(192.168.6.99):~# ls -l /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time ls: cannot access '/sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time': No such file or directory root@opi-zero(192.168.6.99):~# ls -l /sys/devices/platform/soc/1c22c00.codec/cdc/power total 0 -rw-r--r-- 1 root root 4096 May 29 19:16 autosuspend_delay_ms -rw-r--r-- 1 root root 4096 May 29 19:16 control -r--r--r-- 1 root root 4096 May 29 19:16 runtime_active_time -r--r--r-- 1 root root 4096 May 29 19:16 runtime_status -r--r--r-- 1 root root 4096 May 29 19:16 runtime_suspended_time Maybe we have to set the autosuspend_delay_ms to -1 ? But also root@opi-zero(192.168.6.99):~# sudo echo -1 > /sys/devices/platform/soc/1c22c00.codec/cdc/power/autosuspend_delay_msecho: write error: Input/output error
nullpointer Posted June 2, 2020 Author Posted June 2, 2020 On 5/29/2020 at 7:20 PM, guidol said: Hmm there seems something changed: root@opi-zero(192.168.6.99):~# echo -1> /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time: Permission denied root@opi-zero(192.168.6.99):~# ls -l /sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time ls: cannot access '/sys/devices/platform/soc/1c22c00.codec/cdc/pmdown_time': No such file or directory root@opi-zero(192.168.6.99):~# ls -l /sys/devices/platform/soc/1c22c00.codec/cdc/power total 0 -rw-r--r-- 1 root root 4096 May 29 19:16 autosuspend_delay_ms -rw-r--r-- 1 root root 4096 May 29 19:16 control -r--r--r-- 1 root root 4096 May 29 19:16 runtime_active_time -r--r--r-- 1 root root 4096 May 29 19:16 runtime_status -r--r--r-- 1 root root 4096 May 29 19:16 runtime_suspended_time Maybe we have to set the autosuspend_delay_ms to -1 ? But also root@opi-zero(192.168.6.99):~# sudo echo -1 > /sys/devices/platform/soc/1c22c00.codec/cdc/power/autosuspend_delay_msecho: write error: Input/output error Thank you, but these were not the solution.
kononvaler Posted December 15, 2021 Posted December 15, 2021 my solytion is play "empty" file before wav, for example aplay -d 1 /dev/zero && aplay test.wav
Recommended Posts