[alsa-devel] ALSA underruns for S32_LE format
Hi,
I am trying to play raw audio as S32_LE format and I am getting underruns.
*# aplay /userdata/raw -fS32_LE -r48000 -c2* *Playing raw data '/userdata/raw' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo* *underrun!!! (at least 0.055 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)*
I am able play it fine as S16_LE format. (aplay /userdata/raw -fS16_LE -r48000 -c2)
I would like to get it working fine S32_LE format. Any help, suggestions to get away with underruns is welcome.
Regards, Kuldeep
On Fri, Aug 19, 2011 at 4:06 PM, kuldeep ghan ghankp@gmail.com wrote:
Hi,
I am trying to play raw audio as S32_LE format and I am getting underruns.
*# aplay /userdata/raw -fS32_LE -r48000 -c2* *Playing raw data '/userdata/raw' : Signed 32 bit Little Endian, Rate 48000 Hz, Stereo* *underrun!!! (at least 0.055 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)*
I am able play it fine as S16_LE format. (aplay /userdata/raw -fS16_LE -r48000 -c2)
I would like to get it working fine S32_LE format. Any help, suggestions to get away with underruns is welcome.
Hi, Thanks Jassi, I dont my System is too slow, I have dual core processor, 1.5GHz. no CPU consuming process running on it. I Shall confirm if it does not support S32_LE.. Is there any means by which I can confirm the same without going through Codec Driver?? Kuldeep
On Fri, Aug 19, 2011 at 5:13 PM, Jassi Brar jassisinghbrar@gmail.comwrote:
On Fri, Aug 19, 2011 at 4:06 PM, kuldeep ghan ghankp@gmail.com wrote:
Hi,
I am trying to play raw audio as S32_LE format and I am getting
underruns.
*# aplay /userdata/raw -fS32_LE -r48000 -c2* *Playing raw data '/userdata/raw' : Signed 32 bit Little Endian, Rate
48000
Hz, Stereo* *underrun!!! (at least 0.055 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)*
I am able play it fine as S16_LE format. (aplay /userdata/raw -fS16_LE -r48000 -c2)
I would like to get it working fine S32_LE format. Any help, suggestions
to
get away with underruns is welcome.
From the info you provide, it seems your codec doesn't support 32bps and your system is too slow to be able to afford plugin's conversion overhead.
On Sat, Aug 20, 2011 at 12:03 AM, kuldeep ghan ghankp@gmail.com wrote:
Hi, Thanks Jassi, I dont my System is too slow, I have dual core processor, 1.5GHz. no CPU consuming process running on it.
It sure is not slow. Most probably I can't help anyways.
I Shall confirm if it does not support S32_LE.. Is there any means by which I can confirm the same without going through Codec Driver??
Generally, if the following works fine $ speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE
*underrun!!! (at least 0.055 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)*
Btw, these uniform skips seem interesting. Some expert might dissect better.
On Sat, Aug 20, 2011 at 12:40 AM, Jassi Brar jassisinghbrar@gmail.comwrote:
On Sat, Aug 20, 2011 at 12:03 AM, kuldeep ghan ghankp@gmail.com wrote:
Hi, Thanks Jassi, I dont my System is too slow, I have dual core processor, 1.5GHz. no CPU consuming process running on it.
It sure is not slow. Most probably I can't help anyways.
I Shall confirm if it does not support S32_LE.. Is there any means by which I can confirm the same without going through Codec Driver??
Generally, if the following works fine $ speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE
Speaker-test mentioned above results into write error -32. I tried googling it but did not get the right reason yet. what does the write error -32. error imply?
*# speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE* * * *speaker-test 1.0.23* * * *Playback device is hw* *Stream parameters are 48000Hz, S32_LE, 2 channels* *Sine wave rate is 200.0000Hz* *Rate set to 48000Hz (requested 48000Hz)* *Buffer size range from 1024 to 6144* *Period size range from 512 to 3072* *Using max buffer size 6144* *Periods = 4* *was set period_size = 3072* *was set buffer_size = 6144* * 0 - Front Left* *Write error: -32,Broken pipe* *Write error: -32,Broken pipe* *Write error: -32,Broken pipe* *Write error: -32,Broken pipe*
*underrun!!! (at least 0.055 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.043 ms long)* *underrun!!! (at least 0.040 ms long)*
Btw, these uniform skips seem interesting. Some expert might dissect better.
On Mon, Aug 22, 2011 at 11:51 AM, kuldeep ghan ghankp@gmail.com wrote:
Thanks Jassi, I dont my System is too slow, I have dual core processor, 1.5GHz. no CPU consuming process running on it.
It sure is not slow. Most probably I can't help anyways.
I Shall confirm if it does not support S32_LE.. Is there any means by which I can confirm the same without going through Codec Driver??
Generally, if the following works fine $ speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE
Speaker-test mentioned above results into write error -32. I tried googling it but did not get the right reason yet. what does the write error -32. error imply? # speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE speaker-test 1.0.23 Playback device is hw Stream parameters are 48000Hz, S32_LE, 2 channels Sine wave rate is 200.0000Hz Rate set to 48000Hz (requested 48000Hz) Buffer size range from 1024 to 6144 Period size range from 512 to 3072 Using max buffer size 6144 Periods = 4 was set period_size = 3072 was set buffer_size = 6144 0 - Front Left Write error: -32,Broken pipe Write error: -32,Broken pipe Write error: -32,Broken pipe Write error: -32,Broken pipe
I am tempted to bet on driver being broken for S32_LE.
On Mon, Aug 22, 2011 at 02:21:07PM +0800, kuldeep ghan wrote:
On Sat, Aug 20, 2011 at 12:40 AM, Jassi Brar jassisinghbrar@gmail.comwrote:
On Sat, Aug 20, 2011 at 12:03 AM, kuldeep ghan ghankp@gmail.com wrote:
Hi, Thanks Jassi, I dont my System is too slow, I have dual core processor, 1.5GHz. no CPU consuming process running on it.
It sure is not slow. Most probably I can't help anyways.
I Shall confirm if it does not support S32_LE.. Is there any means by which I can confirm the same without going through Codec Driver??
Generally, if the following works fine $ speaker-test -Dhw -c 2 -t sine -f 200 -r 48000 -F S32_LE
Speaker-test mentioned above results into write error -32. I tried googling it but did not get the right reason yet. what does the write error -32. error imply?
Hi,
Could you please run `alsa-info.sh` and post the output here? Thus other people will know more details about your platform and have a better chance to figure out what might be wrong.
participants (3)
-
Jassi Brar
-
kuldeep ghan
-
Lu Guanqun