All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: ranjith vs <ranjithvs@iwavesystems.com>, alsa-devel@alsa-project.org
Cc: krishna ks <krishnaks@iwavesystems.com>
Subject: Re: While writing to speaker sometimes segmentation fault comes.
Date: Fri, 22 Nov 2013 12:07:20 +0100	[thread overview]
Message-ID: <528F3AE8.9050109@ladisch.de> (raw)
In-Reply-To: <1750043993.107445.1385097675393.JavaMail.zimbra@iwavesystems.com>

ranjith vs wrote:
> i'm getting segmentation fault in the snd_pcm_writei function.

Then there's something wrong with the code that calls it.

I'd guess that you computed the frames parameter as bytes.

> And one more thing is that eventhough I try to set the buffer size to
> 4096. It is setting it's own value.

The buffer size is constrained by the hardware capabilities.


Regards,
Clemens

  reply	other threads:[~2013-11-22 11:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <844569205.107413.1385097196700.JavaMail.zimbra@iwavesystems.com>
2013-11-22  5:21 ` While writing to speaker sometimes segmentation fault comes ranjith vs
2013-11-22 11:07   ` Clemens Ladisch [this message]
2013-12-16  8:54   ` Noise is coming from speaker when I do aplay ranjith vs
2013-12-16 14:31     ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528F3AE8.9050109@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=krishnaks@iwavesystems.com \
    --cc=ranjithvs@iwavesystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.