Query regarding broken pipe on capturre device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

    I am facing a certain problem in the application development using
ALSA.Below is the small description of my problem

    I am trying to read from the capture device using "snd_pcm_readi"; but
sometimes i get a error saying "error reading from capture device : broken
pipe -32". Which results in the audio break.

    I have tried to use the port in blocking as well as non blocking mode
but that does not seem to help. I have tried to make sure the buffer sizes
match, using the below mentioned formula.

    ALSA Buffer size in my Apllication = 1024 * 8 =  Periodsize * number of
periods = HW Buffer size

    Can you please suggest me, as to what could be the reason for the
broken pipe error and how can I get rid of that?

regards,
-Ketan

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux