Hello Leif,
Started a new subject heading in the hope to find a way
around this.
These underruns seem to be the major hangup now at this point with linrad here.
They seem to come randomly, previously I thought they had something to do
with my actions ( keyboard etc )
I have ALSA running and besides hoping to use Linrad I use
Iceweasal, the linux version of Firefox on this board.
Have not found any problems with audio using this browser, music
Youtubes etc.
Took the liberty to use Google again, searching for
"Alsa lib pcm.c: 7339:( and pcm_recover ) underrun occured "
It delivers many, many as usual, questions and no answers for
these overruns, happening in other programs using audio and perhaps
the audio sound hardware in Raspberry Pi.
I have included the lost attachment here were the underruns messages
are shown ( lower part of message )
I think they come in series of them and after a while it will stop
linrad. In the beginning, linrad keeps running at least it looks
like it is.
Yesterday I went outside the house, left Linrad running and 3 hours
later it was still running
I have an another USB sound card here somewhere in the shack of which the
rasberry users provide good reports in their reviews.
something like this
http://plugable.com/2014/11/06/how-to-switch-to-usb-audio-on-raspberry-pi
Do you think sampling rate of the audio output has anything to do with the underruniing
problem.
do you think linrad would find such a USB unit? and could it be selected?
Could the sample rate be set?
Just questions. I think to be stuck with out getting a solution for this!
gcc -o xlinrad -Wl,\
xmain.ol xvar.ol ui.ol lsetad.ol fft1.ol buf.ol lvar.ol radar.ol \
mouse.ol wide_graph.ol fft0.ol adtest.ol hires_graph.ol elad.ol \
baseb_graph.ol mix2.ol afc_graph.ol hwaredriver.ol affinity.ol \
sellim.ol palette.ol gifsave.ol timing.ol help.ol calibrate.ol \
calsub.ol calsub2.ol llsqvar.ol llsq.ol caliq.ol timf2.ol tx.ol \
powtim.ol selvar.ol fft2var.ol sigvar.ol screenvar.ol uivar.ol \
fft1var.ol fft3var.ol calvar.ol blnkvar.ol fft1_re.ol lxsys.ol \
powtvar.ol blank1.ol fft2.ol sdrip.ol loadusb.ol airspy.ol \
pol_graph.ol modesub.ol spur.ol cohsub.ol coherent.ol afedri.ol \
eme.ol spursub.ol freq_control.ol perseus.ol httpd.ol html_server.ol \
csplit.ol \
rxin.ol wcw.ol mix1.ol afcsub.ol morse.ol menu.ol fonts.ol rxout.ol \
tune.ol txtest.ol network.ol coh_osc.ol fm.ol soundcard.ol \
cwspeed.ol sdrvar.ol sdr14.ol keyboard_var.ol thrvar.ol pa.ol \
xsys.ol screen.ol cwdetect.ol tx_graph.ol txssb.ol pavar.ol lsdr.ol \
txvar.ol screensub.ol fft3.ol wxsys.ol meter_graph.ol wse.ol si570.ol \
extio.ol soft66.ol excalibur.ol usb2lpt.ol rtl2832.ol elektor.ol \
fcdpp.ol hid.ol pcie9842.ol bladerf.ol mirics.ol openhpsdr.ol \
oclprogs.ol \
\
/usr/lib/arm-linux-gnueabihf/libXext.so \
/usr/lib/arm-linux-gnueabihf/libX11.so \
/usr/lib/arm-linux-gnueabihf/libasound.so \
\
-lpthread -lm -ldl
You may want to disable pulseaudio in Ubuntu with this command:
sudo pasuspender -- ./xlinrad
root@raspberrypi:/home/linrad# ./xlinrad
Found Rafael Micro R820T tuner
Exact sample rate is: 230000.000533 Hz
Found Rafael Micro R820T tuner
Exact sample rate is: 230000.000533 Hz
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
‹ Previous | Next › | « Back to Sent
73 Rein W6SZ
-----Original Message-----
>From: Leif Asbrink <
le...@sm5bsz.com>
>Sent: Jun 1, 2015 12:26 AM
>To:
lin...@googlegroups.com
>Subject: Re: [Linrad] Raspi linrad audia
>
>Hello Rein,
>
>> Linrad is running now but is shutting down due to underruns it seems
>>
>> I did a new ./configure with help results in attachment 1
>>
>> and make xlinrad with messages in attachment 2
>No attachments, but does not matter. There is no info of
>interest since you were able to compile and start xlinrad.
>
>> ssb mode.
>> 230 kHz sampling
>> sound selections probably failing to do properly.
>????
>> 11% CPU and 24 % the other one, perhaps you can indicate
>> where I can read about the second.
>The second is the load due to the heaviest thread. Well under 100%
>so perfectly fine:-)
>Total load is 11% only.
>
>> noise somewhere selected for base band, see signal there. Red bar no effect
>> No audio produced.
>> Alsa lib pcm.c: 7339:( and pcm_recover ) underrun occured
>> At times I have seen here underruns and overruns messaging info
>> Source please, so I can read what is means and how to avoid it.
>> sure I have made errors in the sound card setup somewhere.
>> At one time a ran into error 1200
>You tried to select the OSS sound system which is not installed
>on your system. There is 4Front OSS on x86 platforms. Sometimes
>they provide better drivers than alsa. Maybe that is history now...
>
>> I have problem here what to, why and what is happening doing it.
>> Once I get a setup defined and saved to go return to, I should
>> be able to bootstrap up I think.
>OK.
>
>The first problem to solve is overrun error. Must not happen.
>The problem is that data arrives too fast for Linrad to attend
>to it in time. The buffer gets full and data is lost. Overrun.
>
>There can be many reasons.
>
>I suggest you start by installing gnome-system-monitor. Use it
>to monitor the total cpu load. You may well have a 100% CPU
>load problem due to the overhead caused by the desktop.
>If load is high, CPU sometimes above 95%, my guess is that this
>would be caused by the Gnome desktop environment. Then, install
>xfce4 which is a lightweight environment. Gnome may use up the CPU
>by emulating the visual effects that normally would have been done
>in a GPU.
>
>If you have an adequate margin on CPU load, peaks below 95%
>and average below 90% total cpu load, then something else is
>the problem. It could be due to latency. Bigger buffers might help.
>Then, in the U sub-menu, set max and min DMA rate equal and
>try different values. You can see the currently used DMA rate
>by pressing 'T' on the processing screen.
>
>You can set the priority higher. Up to real time if you tell you
>are an expert.
>
>If nothing of the above helps, I would conclude that something is
>wrong with your USB sub-system. Maybe something is wrong with
>your libusb-1.0 installation. You might get the latest from
>here:
http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.19/
>if you do not already have libusb-1.0.19
>
>Maybe it is a USB2/USB3 problem. Try other USB ports. Maybe there
>is a BIOS where you can configure the USB system.
>
>Others have been sucessful (I think) Hopefully someone else can
>give better ideas.
>
>Anyway, as long as you have underrun errors, do not expect anything
>to work...
>
>73
>
>Leif
>
>
>--
>You received this message because you are subscribed to the Google Groups "Linrad" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to
linrad+un...@googlegroups.com.
>To post to this group, send email to
lin...@googlegroups.com.
>For more options, visit
https://groups.google.com/d/optout.