Jump to content

aplay sound starts playing late


nullpointer

Recommended Posts

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines