All adresses are also VALID data : 0x96000 alsaparams->data :0x96000 count :4032 alsaParams->pcm_handle : 0xcfbe0 Please go through belo problem ________________________________________ From: alsa-devel-bounces@xxxxxxxxxxxxxxxx [alsa-devel-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Irfan Shaikh [irfan.shaikh@xxxxxxxxxx] Sent: Thursday, November 18, 2010 12:44 PM To: alsa-devel@xxxxxxxxxxxxxxxx Subject: snd_pcm_mmap_writei Hello All, Replacing snd_pcm_writei with snd_pcm__mmap_writei gives SEGFAULT in My code. Works fine with pcm.c. Can ANyone help me on FINDING OUT WHAT MAY BE CAUSE OF SEGFAULT ? Is any thing specific required for MMAP Write ???? /$$$ Works FINE $$$/ //while ((pcmreturn = snd_pcm_writei(alsaParams->pcm_handle, data, count)) < 0) // ===>>>>Replaced by below LINE /$$$ SEG FAULT$$$/ while ((pcmreturn = snd_pcm__mmap_writei(alsaParams->pcm_handle, data, count)) < 0) // REPLACED ABOVE NORMAL WRTIE WITH MMAP WRITE { /* * My code */ } Thanks in advance, Best Regards 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 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel