by W4MMP » Mon Apr 27, 2015 5:30 pm
Hi Florin,
The problem is with OpenExpertSDR.
1) My first test was using a C-Media USB audio adapter. The problem is that OpenExpertSDR is not properly examining the capabilities of the audio device as presented by portaudio and reporting that the audio adapter is not compatible with Openexpersdr . This C-Media adapter only has a mono stereo input. I understand that a mono input is not compatible with OpenExpertSDR , however OpenExpertSDR should report that. At the moment it is causing portaudio to throw an exception:
Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1438
Expression 'ValidateParameters( inputParameters, hostApi, StreamDirection_In )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2742
pa19::start(): Invalid number of channels
I posted this to the portaudio email list and it is confirmed the cause of the exception is that OpenExpertSDR is ignoring the capabilities of the audio device and attempting to features the device is not capable of.
2)I attached my Peaberry to the RPi 2. OpenExpertSDR detects the Peaberry sound device and allows me to set the Peaberry sound device in the configuration window. However, when I press the OpenExpertSDR start button, it again causes portaudio to throw an exception:
Expression 'alsa_snd_pcm_hw_params_set_buffer_size_near( self->pcm, hwParams, &bufSz )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2005
Expression 'PaAlsaStreamComponent_FinishConfigure( &self->capture, hwParamsCapture, inParams, self->primeBuffers, realSr, inputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2655
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_l
inux_alsa.c', line: 2767
This probably because OpenExpertSDR is not honoring the capabilities of the Peaberry sound device. I have tested the Peaberry sound device with the portaudio utilities and everything tests good.
What source file has the code for opening and configuring the audio device?
73
Ron / W4MMP