Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

aplay sound starts playing late

Featured Replies

"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?

 

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_ms
echo: write error: Input/output error

  • Author
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_ms
echo: write error: Input/output error

 

Thank you, but these were not the solution.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.