[alsa-devel] Copy call back for capture substream

kshemanth.vasireddi at wipro.com kshemanth.vasireddi at wipro.com
Mon May 2 13:17:15 CEST 2011


Copy call is working, Thanks for inputs.

When I tried to record using arecord "arecord -d 10 -c 2 -f s16_LE -r
48000 -t wav test.wav" sterio mode of recording works.

If I want to record both channels in separate files, what command should
be given to arecord, I am not clear on -I option. Do I require to change
my driver.

Thanks and regards,

-----Original Message-----
From: Clemens Ladisch [mailto:clemens at ladisch.de] 
Sent: Friday, April 29, 2011 8:52 PM
To: Kshemanth Vasireddi (WT01 - Manufacturing & Hi Tech)
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] Copy call back for capture substream

kshemanth.vasireddi at wipro.com wrote:
> Yes, I am not clear on what should be returned in pointer call back.
> From my understanding we have return available frames in buffer.

No, it has to return the position in the buffer after the most recently
captured sample.

> My ADC doesn't have buffer so, I maintain a ring buffer of 2 periods.
> ...
> 	.periods_min =		1,
> 	.periods_max =		2,

You need periods_min = 2.

> The information contained in this electronic message ...

This e-mail contains public information intended for any subscriber of
this mailing list and for anybody else who bothers to read it; it will
be copied, disclosed and distributed to the public.  If you think you
are not the intended recipient, please commit suicide immediately.
These terms apply also to any e-mails quoted in, referenced from, or
answering this e-mail, and supersede any confidentiality notices in
those e-mails.  Additionally, confidentiality notices in those e-mails
will incur legal processing fees of $42 per line; you have agreed to
this by reading this confidentiality notice.


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 


More information about the Alsa-devel mailing list