[L2Ork-dev] Re3 [newbie] Rapspi3 + CirrusLogicAudio card

francois.heslot at free.fr francois.heslot at free.fr
Thu May 12 15:03:21 UTC 2016


Hi,

I progressed toward using the cirrus audio card + raspi3, on kernel 4.4.6

I am still logging directly on the raspi by attaching a mouse, a keyboard, and a monitor (i.e. not using a headless mode).

Following the install instructions,

* * * * * * * * * * * * * * * * * *
I did first the library loading:

sudo apt-get install bison flex automake qjackctl tcl-dev (.......),
 
as described in the link:
http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/raspberry-pi/

followed by sudo apt-get update because a tens of packages were not found.

then a 2nd time,
sudo apt-get install bison flex automake qjackctl tcl-dev (.......)
 followed by sudo apt-get update

that would still leave missing ttf-dejavu-core, and byacc

the a 3rd time
sudo apt-get install bison flex automake qjackctl tcl-dev (.......)
all required packages seemed then to have loaded.

* * * * * * *
Then l2-ork install:

pi at raspberrypi:~/Downloads $ sudo dpkg -i pd-l2ork-armv6l-20151102.deb
(Reading database ... 145561 files and directories currently installed.)
Preparing to unpack pd-l2ork-armv6l-20151102.deb ...
Unpacking pd-l2ork (20151102) over (20151102) ...
Setting up pd-l2ork (20151102) ...
Processing triggers for systemd (215-17+deb8u3) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
pi at raspberrypi:~/Downloads $

that seemed to go smoothly (no error messages, but quite a bit of waiting of course)

* * * * * *
ENABLING THE PROPER CIRRUS AUDIO PATH
Before testing, I started a script for enabling the proper mode of the cirrus audio card (following the instructions from the link given in my previous message): http://www.horus.com/~hias/cirrus-driver.html :

playback_to_Headset.sh

* * * * * *
Then:
RUNNING PD-L2ORK:
 
pi at raspberrypi:~ $ pd-l2ork
priority 6 scheduling enabled.
priority 8 scheduling enabled.
snd_pcm_open: No such file or directory
/etc/pd/gem.conf: No such file or directory
/home/pi/.config/pure-data/gem.conf: No such file or directory
./gem.conf: No such file or directory
load plugins 'film' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_film*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmAVIPLAY.so'!
<init> : Avifile RELEASE-0.7.48-141218-05:28-../src/configure
<init> : Available CPU flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmGMERLIN.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmMPEG3.so'!
library loading returned: dlerror 'libmpeg3.so.1: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_filmQT4L.so'!
load plugins 'image' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_image*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageJPEG.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
library loading returned: dlerror 'libMagick++.so.5: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageSGI.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageTIFF.so'!
library loading returned: dlerror 'libtiff.so.4: cannot open shared object file: No such file or directory'
not reloading 'image' plugins (already 2 loaded)
load plugins 'image' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_image*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageJPEG.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageMAGICK.so'!
library loading returned: dlerror 'libMagick++.so.5: cannot open shared object file: No such file or directory'
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageSGI.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_imageTIFF.so'!
library loading returned: dlerror 'libtiff.so.4: cannot open shared object file: No such file or directory'
load plugins 'model' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_model*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_modelOBJ.so'!
load plugins 'record' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_record*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_recordQT4L.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_recordV4L.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_recordV4L2.so'!
load plugins 'video' in '/usr/lib/pd-l2ork/extra/Gem/'
pattern : /usr/lib/pd-l2ork/extra/Gem/gem_video*.so
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_videoDC1394.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_videoV4L.so'!
dylib loading file '/usr/lib/pd-l2ork/extra/Gem/gem_videoV4L2.so'!


* * * * * *

There are some error messages in the list above; I decided to nevertheless test the audio output:


In a new pd-l2ork window, in the "preferences", I find in the ALSA mode:
bcm2835(hardware), bcm2835(plugin), snd_rpi_wsp(hardware),snd_rpi_wsp(plugin) 
I selected 
input: snd_rpi_wsp(hardware), 1 channel (from headset+mic plug)
outut: snd_rpi_wsp(hardware), 2 channels (from headset+mic plug)

Then tested the audio output on the Cirrus audio card, using a headset:

* * * * * *

It does fine !!, I get either a tone or white noise as a function of the selected test. :-)

* * * * * *

I checked for I/O errors, and get some:
errors checks:
ALSA: set input channels to 2
audio I/O error history:
seconds ago	error type
   412.26	DAC blocked
   412.26	A/D/A sync
   421.24	unknown
   426.37	A/D/A sync
   426.37	A/D/A sync
   426.37	A/D/A sync
   426.37	A/D/A sync
   426.37	A/D/A sync
   426.37	A/D/A sync
etc...

Curiously, the setting of 1 input channel is not taken into account (see ALSA line above)
For the error history, they are probably related to the fact that I am not running the rpi headless.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
So at this point,

1: 
I need to run headless

2:
2.1: pd-l2ork is running (raspberry 3, kernel 4.4.6, pd-l2ork(20151102),although I get some error messages.
2.2: the sound output of the Cirrus card is properly activated by pd-l2ork :-) 


* * * * * * * *
QUESTIONS:

What should I do to the install in order to avoid the error messages of pd-l2ork upon startup ?

What are the missing functionalities at this stage (because of the above errors) ?

What are (in the ALSA section) the audio_card(plugin) with respect yo the audio-card(hardware), and what is the specific use/interest of the "plugin" version ? 

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
NOTE:

the Cirrus audio card has the following advertised characteristics:
( https://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card):

Capable of rendering HD Audio, at 24-bit, 192kHz
3.5mm 4-pole jack for a headset/boom mic combination for gaming or VoIP applications
Two DMIC microphones onboard for stereo recording
3.5mm jack for Stereo Line Input for high quality audio recording or capture
3.5 mm jack Stereo Line Output for connection to devices such as external stereo amplifiers or powered speakers
Stereo Digital input and output (SPDIF)

>>> What are the characteristics of the Sabrent USB external stereo sound adapter ?


More information about the L2Ork-dev mailing list