* While writing to speaker sometimes segmentation fault comes.
[not found] <844569205.107413.1385097196700.JavaMail.zimbra@iwavesystems.com>
@ 2013-11-22 5:21 ` ranjith vs
2013-11-22 11:07 ` Clemens Ladisch
2013-12-16 8:54 ` Noise is coming from speaker when I do aplay ranjith vs
0 siblings, 2 replies; 4+ messages in thread
From: ranjith vs @ 2013-11-22 5:21 UTC (permalink / raw)
To: alsa-devel; +Cc: krishna ks
Hello,
I am streaming audio from vlc,in the following formats sampling frequency 44100 stereo 16 bit.On the receiver side receiveing pcm frames
and writing to speaker using alsa interface. But sometimes i'm getting segmentation fault in the snd_pcm_writei function. And one more thing is that eventhough I try to set the buffer size to 4096. It is setting it's own value.But i'm writing the buffer of length which I received from pcm_avail_upadte function.
Thanks & Regards,
Ranjith
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: While writing to speaker sometimes segmentation fault comes.
2013-11-22 5:21 ` While writing to speaker sometimes segmentation fault comes ranjith vs
@ 2013-11-22 11:07 ` Clemens Ladisch
2013-12-16 8:54 ` Noise is coming from speaker when I do aplay ranjith vs
1 sibling, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2013-11-22 11:07 UTC (permalink / raw)
To: ranjith vs, alsa-devel; +Cc: krishna ks
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Noise is coming from speaker when I do aplay
2013-11-22 5:21 ` While writing to speaker sometimes segmentation fault comes ranjith vs
2013-11-22 11:07 ` Clemens Ladisch
@ 2013-12-16 8:54 ` ranjith vs
2013-12-16 14:31 ` Clemens Ladisch
1 sibling, 1 reply; 4+ messages in thread
From: ranjith vs @ 2013-12-16 8:54 UTC (permalink / raw)
To: alsa-devel
Hello,
While doing arecord and aplay I'm able to hear the sound. But some little bit noise is there. How can I reduce the noise. I'm using in i.mx6 board linux.
Thanks & Regards,
Ranjith
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Noise is coming from speaker when I do aplay
2013-12-16 8:54 ` Noise is coming from speaker when I do aplay ranjith vs
@ 2013-12-16 14:31 ` Clemens Ladisch
0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2013-12-16 14:31 UTC (permalink / raw)
To: alsa-devel
ranjith vs wrote:
> While doing arecord and aplay I'm able to hear the sound. But some little bit noise is there. How can I reduce the noise.
That depends on where the noise comes from.
Try disabling playback of any analog inputs.
If that does not help, use a better power supply, or use better-designed hardware.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-16 14:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
2013-12-16 8:54 ` Noise is coming from speaker when I do aplay ranjith vs
2013-12-16 14:31 ` Clemens Ladisch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).