Skip to contentSkip to conversation

signal loss recovery

DISCUSSION Burris Ewell 2 participants 2 messages Nov 28, 2003 – Nov 30, 2003

lore
Share & tools
lore
#0 lore raw

I am writing a simple capture program using 0.9.8 and a PDAudioCF card.
I want to recover gracefully when the A/D converter stops and starts
sending signal during capture. When signal is lost, I call snd_pcm_start periodically until the signal returns and continue capture. On odd numbered starts (first, third, fifth stop/start of A/D converter) everything recovers normally and I continue to capture the output of the converter. However, on even numbered starts (second, fourth, sixth stop/start of A/D converter) I capture full scale white noise.

I'm probably not doing something right. Any pointers or suggestions will be greatly appreciated.

thanks,
burris

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#1 lore raw
Quoted 10 lines · Burris Ewell

I am writing a simple capture program using 0.9.8 and a PDAudioCF card.
I want to recover gracefully when the A/D converter stops and starts
sending signal during capture. When signal is lost, I call
snd_pcm_start periodically until the signal returns and continue capture. On odd numbered starts (first, third, fifth stop/start of A/D converter) everything recovers normally and I continue to capture the output of the converter. However, on even numbered starts (second, fourth, sixth stop/start of A/D converter) I capture full scale white noise.

Quoted 2 lines

I'm probably not doing something right. Any pointers or suggestions will be greatly appreciated.

Can you send me your code? I'll try give a look to this problem.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/