snd_pcm_link : Function not implemented
Hi All,
I have download and compile latency.c application from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.
I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.
please find pointers.
Thanks in Advance
Ashwani
Quoted 14 lines · ashwanik <ashwani.kumar <at> freesystems.biz> writes:
Hi All,
I have download and compile
latency.capplication from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.
Quoted 6 lines
please find pointers.
Thanks in Advance
Ashwani
Hi,
Bringing to Top ,anyone faced similar problem of "snd_pcm_link" returning error val=-38 and prints "Streams link error: Function not implemented".
Thanks in advance
Regards
Ashwani.
At Wed, 15 Jun 2011 05:50:29 +0000 (UTC),
Quoted 19 lines · Ashwani Kumar
Quoted 16 lines · ashwanik <ashwani.kumar <at> freesystems.biz> writes:
Hi All,
I have download and compile
latency.capplication from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.please find pointers.
Quoted 8 lines
Quoted 4 lines
Thanks in Advance
AshwaniHi,
Bringing to Top ,anyone faced similar problem of "snd_pcm_link" returning error val=-38 and prints "Streams link error: Function not implemented".
I don't know of such a problem. Better to check what went wrong via strace or such.
Takashi
Quoted 23 lines · Takashi Iwai
At Wed, 15 Jun 2011 05:50:29 +0000 (UTC),
Quoted 21 lines · Ashwani Kumar
Quoted 19 lines · ashwanik<ashwani.kumar<at> freesystems.biz> writes:
Hi All,
I have download and compile
latency.capplication from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.please find pointers.
Thanks in Advance
Ashwani
Quoted 8 lines
Quoted 3 lines
Hi,
Bringing to Top ,anyone faced similar problem of "snd_pcm_link" returning error val=-38 and prints "Streams link error: Function not implemented".I don't know of such a problem. Better to check what went wrong via strace or such.
Takashi
Thanks for your reply,
I left that application(latency.c).
now i have merged alsa playback and capture application and thats working with following issue on omap4 board:
Quoted 2 lines
when i am executing this apps getting "underrun occurred" error CPU consumption very high 22 - 27%.
please help to sort-out above problems.
Thanks in advance
Ashwani
At Thu, 16 Jun 2011 16:39:04 +0530,
Quoted 35 lines · ashwanik
Quoted 30 lines · Takashi Iwai
At Wed, 15 Jun 2011 05:50:29 +0000 (UTC),
Quoted 17 lines · Ashwani Kumar
Quoted 15 lines · ashwanik<ashwani.kumar<at> freesystems.biz> writes:
Hi All,
I have download and compile
latency.capplication from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.please find pointers.
Quoted 7 lines
Quoted 4 lines
Thanks in Advance
AshwaniHi,
Bringing to Top ,anyone faced similar problem of "snd_pcm_link" returning error val=-38 and prints "Streams link error: Function not implemented".I don't know of such a problem. Better to check what went wrong via strace or such.
Quoted 7 lines
Quoted 1 line
Takashi
Thanks for your reply,
I left that application(latency.c).
now i have merged alsa playback and capture application and thats working with following issue on omap4 board:Quoted 1 line
when i am executing this apps getting "underrun occurred" error
This is usually a driver issue.
Quoted 1 line
Quoted 1 line
CPU consumption very high 22 - 27%.
This is normal. It's a sort of stress-test, after all.
Takashi
Quoted 43 lines · Takashi Iwai
At Thu, 16 Jun 2011 16:39:04 +0530,
Quoted 34 lines · ashwanik
Quoted 30 lines · Takashi Iwai
At Wed, 15 Jun 2011 05:50:29 +0000 (UTC),
Quoted 17 lines · Ashwani Kumar
Quoted 15 lines · ashwanik<ashwani.kumar<at> freesystems.biz> writes:
Hi All,
I have download and compile
latency.capplication from
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2latency_8c-example.html.
This application is working fine on Linux PC. But when I am using this application on my omap4 board(using ubuntu10.10) is not working.I am getting"Streams link error: Function not implemented" error. I debug the application and found this error coming from the *snd_pcm_link* function.
I am using ALSA Driver Version 1.0.23.please find pointers.
Quoted 7 lines
Quoted 4 lines
Thanks in Advance
AshwaniHi,
Bringing to Top ,anyone faced similar problem of "snd_pcm_link" returning error val=-38 and prints "Streams link error: Function not implemented".I don't know of such a problem. Better to check what went wrong via strace or such.
Quoted 7 lines
Quoted 1 line
Takashi
Thanks for your reply,
I left that application(latency.c).
now i have merged alsa playback and capture application and thats working with following issue on omap4 board:Quoted 1 line
when i am executing this apps getting "underrun occurred" error
Quoted 7 lines
This is usually a driver issue.
Quoted 1 line
Quoted 1 line
CPU consumption very high 22 - 27%.
This is normal. It's a sort of stress-test, after all.
Takashi
Thanks takashi.
I tried to reduce cpu consumption by simple capture & playback application but no success.
In my capture & playback application set sample rate to 44100 bits/sec. looking alsa mix upsample the 44100 rate to 48000 bits/sec. I tried to change defaults.pcm.dmix.rate 44100 in alsa.conf but this change doesn't reflected in /proc/asound/card0/pcm0c/sub0/hw_params .
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)period_size: 35buffer_size: 6720
Please suggest me how to change hw_params.
Thanks in Advance
Ashwani