[alsa-devel] ALSA buffer query

Irfan Shaikh irfan.shaikh at sasken.com
Thu Nov 11 08:16:29 CET 2010

Hello All,

      1) My understanding :  snd_pcm_writei() takes the allocated buffer from applications and passes the buffer beneath to the ASLA library and then to the ALSA driver for rendering Audio.

      2) Query 1 : Instead of me allocating the buffer in ALSA application and passing the pointer in snd_pcm_writei, Can ALSA allocate the buffer and give to my application, so that i can copy my data into it.

      3) Query 2 : Is there any wayto diirectly get hardware ALSA buffer from the ALSA driver to application so that i can copy PCM data to this buffer directly.
                          If not, is there any way can we do this ?

Thanks in Advance !


SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html

More information about the Alsa-devel mailing list