element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Cirrus Logic Audio Card working on the Raspberry Pi 2
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 165 replies
  • Subscribers 684 subscribers
  • Views 22710 views
  • Users 0 members are here
  • wolfson
  • raspberry
  • audio
  • pi
  • cirrus
  • raspberry_pi
  • rpi2
  • raspeberry_pi_accessories
  • pi2
Related

Cirrus Logic Audio Card working on the Raspberry Pi 2

Former Member
Former Member over 10 years ago

Hi all!

 

As you might know, Cirrus Logic's main kernel source branch recently switched to 3.18.

My first thought was "Hmm, that means the Cirrus Logic card could finally work on the RPi2..."

I have built a couple of 3.18 kernels for my B+ and RPi2 and I have managed to get both models to produce sound image

 

It's still early days, i.e. there are possibly bugs and glitches to fix, but for those of you who would like to try it out I've made an image file that you can download here:

https://drive.google.com/file/d/0BzIaxMH3N5O1cmJ1bFhMcG1hc0E/view?usp=sharing

The file is a 1.3 GB zip. Uncompressed size is 3.1 GB, so it fits comfortably on a 4 GB card.


The image is based on the standard 2015-02-16-raspbian-wheezy image from the Foundation that you flash to a SD card for a fresh install.

I have only added my kernels and set up the configuration files to get the card going.

It should work on the older B model  with a Wolfson Audio Card too, but I haven't tested that yet.

 

Have fun!

--

Ragnar

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 10 years ago

    I tried the patched kernel with Ubuntu MATE Beta 15.04 and it worked.

    But with the new stable release of Ubuntu the kernel breaks all network connections and input devices even bluetooth keyboard image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Hello,

    thank you for the provided image. The audio works fine.

    However, I am trying to compile the kernel with cirrus driver and RT patch without success. I assume it already fails with the cirrus part.

    I followed the cirrus instructions from here: https://github.com/CirrusLogic/rpi-linux/wiki/Building-the-code

    and added the RT patch from https://www.kernel.org/pub/linux/kernel/projects/rt/3.18/older/patch-3.18.9-rt5.patch.gz

    How did you build your image, Ragnar?

    Martin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    No need to recompile, Jack2 from the Raspbian repositories works on the RPi (contrary to Jack1 which needs a patch to work around the bus error). You need to tell it where the dbus session bus is though:

    export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket


    Then it probably still won't start because Jack2 can not acquire the sound card, you can fix that by adding the following lines to /etc/dbus-1/system.conf:

      <policy user="pi">
            <allow own="org.freedesktop.ReserveDevice1.Audio1"/>
      </policy>


    More info here: http://wiki.linuxaudio.org/wiki/raspberrypi#running_jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I patched the kernel in my image to add mmap support for I2S cards. The stock Raspbian kernel doesn't have it, but the old Wolfson 3.10 kernel does.

    Could you please provide me with the entire patch file, I'm getting a malformation error.

    That's why I built my own, without dbus. Almost all of my Pis are headless, thus no X server running and consequently no dbus service.

    Since mine are headless too, this might be interesting. Where did you disable the dbus service?

     

     

    After inserting this in /etc/dbus-1/system.conf and adding export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket

      <policy user="pi">
            <allow own="org.freedesktop.ReserveDevice1.Audio0"/>
            <allow own="org.freedesktop.ReserveDevice1.Audio1"/>
      </policy>

    I was able to start jack2 via jackd -v -P70 -p16 -t2000 -d alsa -dplughw:0,0 -p 1024 -n 3 -r 44100 -s but only with the increased buffer size and -dplughw:0,0

    which might not start in RT and does not make a stable impression.

    Jack: JackPosixThread::StartImp : create non RT thread
    Jack: JackPosixThread::ThreadHandler : start
    Jack: JackThreadedDriver::Init real-time
    Jack: JackPosixThread::AcquireRealTimeImp priority = 70
    Jack: JackPosixThread::StartImp : create non RT thread
    Jack: JackPosixThread::ThreadHandler : start

     

    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048
    Jack: JackAlsaDriver::Read warning fBufferSize = 1024 nframes = 2048

     

    pi@raspberrypi2 ~ $ jackd -v -P70 -p16 -t2000 -d alsa -dhw:0,0 -p 128 -n 3 -r 44100 -s
    jackdmp 1.9.9
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2012 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK server starting in realtime mode with priority 70
    Jack: JackPosixThread::StartImp : create non RT thread
    Jack: JackPosixThread::ThreadHandler : start
    Jack: playback device hw:0,0
    Jack: capture device hw:0,0
    Jack: frames per period = 128
    Jack: apparent rate = 44100
    Jack: JackDriver::Open capture_driver_name = hw:0,0
    Jack: JackDriver::Open playback_driver_name = hw:0,0
    Jack: Check protocol client = 8 server = 8
    Jack: JackEngine::ClientInternalOpen: name = system
    Jack: JackEngine::AllocateRefNum ref = 0
    Jack: JackPosixSemaphore::Allocate name = jack_sem.1000_default_system val = 0
    Jack: JackEngine::NotifyAddClient: name = system
    Jack: JackGraphManager::SetBufferSize size = 128
    Jack: JackConnectionManager::DirectConnect first: ref1 = 0 ref2 = 0
    Jack: JackGraphManager::ConnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
    Jack: JackDriver::SetupDriverSync driver sem in flush mode
    control device hw:0
    control device hw:0
    audio_reservation_init
    Acquire audio card Audio0
    creating alsa driver ... hw:0,0|hw:0,0|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
    control device hw:0
    configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
    ALSA: mmap-based access is not possible for the capture stream of this audio interface
    ALSA: cannot configure capture channel
    Jack: JackDriver::Close
    Jack: JackConnectionManager::DirectDisconnect last: ref1 = 0 ref2 = 0
    Jack: JackGraphManager::DisconnectRefNum cur_index = 0 ref1 = 0 ref2 = 0
    Jack: JackEngine::ClientInternalClose ref = 0
    Jack: JackEngine::ClientCloseAux ref = 0
    Jack: JackGraphManager::RemoveAllPorts ref = 0
    Jack: JackPosixSemaphore::Destroy name = jack_sem.1000_default_system
    Jack: ~JackDriver
    Cannot initialize driver
    Jack: no message buffer overruns
    Jack: JackPosixThread::Stop
    Jack: JackPosixThread::ThreadHandler : exit
    JackServer::Open failed with -1
    Jack: Succeeded in unlocking 13589216 byte memory area
    Jack: JackShmMem::delete size = 0 index = 0
    Jack: ~JackDriver
    Jack: Succeeded in unlocking 1040 byte memory area
    Jack: JackShmMem::delete size = 0 index = 1
    Jack: Cleaning up shared memory
    Jack: Cleaning up files
    Jack: Unregistering server `default'
    Failed to open server

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I have noticed that you can get invisible junk characters if you copy-paste from this web site, especially from the "view plain" window.

    While you're at it, you might be interested in a patch supplied by hiassoft that solves some problems when switching sampling rates, described here Issues with samplerates below 44.1kHz

     

    Building jack with its default compilation mode produces a dbus-less version. You have to explicitly give it a --dbus flag at configure time to enable it.

    --

    Ragnar

    Attachments:
    cirrus_mmap_v2.patch.zip
    0638.fll.patch.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Try using -hw:sndrpiwsp instead of -hw:0,0 and use the appropriate Wolfson amixer scripts to enable the inputs and outputs you want to to use with JACK before starting JACK.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I applied the mmap patch. The fll patch had to be applied manually to ~/code/rpi-linux/sound/soc/bcm/rpi-cirrus-sound-pi.c since the patch was looking for a rpi-cirrus-sound-pi.c.orig

    Recompiled the kernel but JACK seems to miss the alsa driver I should have inclueded with ./waf configure --alsa but it requires version 1.0.18

    What kind of package of alsa is that?

    I was under the impression of this being the alsa version:

    pi@raspberrypi2 ~/jack2 $ cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version k3.18.9-v7+.

     

    Jeremy, I used the Playback_to_Lineout.sh script but I got sound from the headset port aswell.

     

    And the jack errors with missing alsa driver:

    pi@raspberrypi2 ~/jack2 $ jack_control start
    Traceback (most recent call last):
      File "/usr/local/bin/jack_control", line 399, in <module>
        main()
      File "/usr/local/bin/jack_control", line 158, in main
        bus = dbus.SessionBus()
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__
        mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
        bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
        bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    
    pi@raspberrypi2 ~/jack2 $ jackd  -P70 -p16 -t2000 -d alsa -dhw:sndrpiwsp -p 1024 -n 3 -r 44100 -s
    jackdmp 1.9.11
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2014 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    Unknown driver "alsa"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Recompiled the kernel but JACK seems to miss the alsa driver I should have inclueded with ./waf configure --alsa but it requires version 1.0.18

    What kind of package of alsa is that?

    It's the ALSA developer files and libraries.

    sudo apt-get install libasound2-dev

     

    I used the Playback_to_Lineout.sh script but I got sound from the headset port aswell.

    The scripts are cumulative, switching an output on does not switch the others off. That's why Reset_paths.sh exists, it switches everything off.

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I see, Jeremy just meant it is not advisable to configure the soundcard after starting JACK.

     

    It's getting closer: JACK2 compiled successfully and I can start the daemon. Although the build had many warnings (http://pastebin.com/Q22hQBV6) and not everything works as expected. It is still looking for the dbus.

     

    pi@raspberrypi2 ~ $ jack_control start
    Traceback (most recent call last):
      File "/usr/local/bin/jack_control", line 399, in <module>
        main()
      File "/usr/local/bin/jack_control", line 158, in main
        bus = dbus.SessionBus()
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__
        mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
        bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
        bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

     

    pi@raspberrypi2 ~ $ export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
    pi@raspberrypi2 ~ $ jack_control start
    Traceback (most recent call last):
      File "/usr/local/bin/jack_control", line 399, in <module>
        main()
      File "/usr/local/bin/jack_control", line 160, in main
        controller = bus.get_object(service_name, "/org/jackaudio/Controller")
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
        follow_name_owner_changes=follow_name_owner_changes)
      File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
        self._named_service = conn.activate_name_owner(bus_name)
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
        self.start_service_by_name(bus_name)
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
        'su', (bus_name, flags)))
      File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
        message, timeout)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files

     

     

    The daemon starts but clients are not able to connect

    pi@raspberrypi2 ~ $ jack_simple_client 
    Cannot open jack_simple_client client
    jack_client_open() failed, status =

    pi@raspberrypi2 ~/jack2 $ jackd -P70 -p16 -t2000 -d alsa -dhw:0,0 -p 128 -n 3 -r 44100 -s
    jackdmp 1.9.11
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2014 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK server starting in realtime mode with priority 70
    self-connect-mode is "Don't restrict self connect requests"
    creating alsa driver ... hw:0,0|hw:0,0|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
    configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
    ALSA: final selected sample format for capture: 32bit integer little-endian
    ALSA: use 3 periods for capture
    ALSA: final selected sample format for playback: 32bit integer little-endian
    ALSA: use 3 periods for playback
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    JackPosixSemaphore::Signal name = jack_sem.1000_default_system already deallocated!!
    JackAudioDriver::ProcessGraphAsyncMaster: ResumeRefNum error
    status error: Bad file descriptor
    ALSA: prepare error for playback on "hw:0,0" (File descriptor in bad state)
    JackAudioDriver::ProcessAsync: read error, stopping...
    JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
    Driver is not running
    Cannot create new client
    JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
    Driver is not running
    Cannot create new client
    JackPosixProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
    Driver is not running
    Cannot create new client
    ^CJack main caught signal 2
    Segmentation fault

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    It is still looking for the dbus

    Where have you installed your self-compiled jackd? Mine lives in /usr/local/bin and I've put a symlink to it in /usr/bin because that's where some of the jack_* utilities look for it.

     

    It's jack_control and jack_simple_client that's trying to use dbus to start a jack daemon.

    If they actually manage to start a jack daemon, it might be because they have found the old dbus-enabled jackd in /usr/bin

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    I used the default path when executing sudo ./waf install

    I also deinstalled and removed all jack related binaries to make sure only the newly compiled dbus-less version gets used.

    Maybe I checked out a different JACK2 version than you did?

     

     

    pi@raspberrypi2 ~ $ ll /usr/local/bin/
    total 520
    drwxrwsr-x 2 root indiecity  4096 Feb 16 13:29 indiecity
    -rwxr-xr-x 1 root staff      8918 May 10 17:41 jack_alias
    -rwxr-xr-x 1 root staff      9393 May 10 17:41 jack_bufsize
    -rwxr-xr-x 1 root staff     12033 May 10 17:41 jack_connect
    -rwxr-xr-x 1 root staff     15725 May 10 13:14 jack_control
    -rwxr-xr-x 1 root staff     12738 May 10 17:41 jack_cpu
    -rwxr-xr-x 1 root staff      7747 May 10 17:41 jack_cpu_load
    lrwxrwxrwx 1 root staff        12 May 10 13:24 jack_disconnect -> jack_connect
    -rwxr-xr-x 1 root staff      9344 May 10 17:41 jack_evmon
    -rwxr-xr-x 1 root staff      7778 May 10 17:41 jack_freewheel
    -rwxr-xr-x 1 root staff     13053 May 10 17:41 jack_iodelay
    -rwxr-xr-x 1 root staff     12159 May 10 17:41 jack_latent_client
    -rwxr-xr-x 1 root staff     10665 May 10 17:41 jack_load
    -rwxr-xr-x 1 root staff     13849 May 10 17:41 jack_lsp
    -rwxr-xr-x 1 root staff     14799 May 10 17:41 jack_metro
    -rwxr-xr-x 1 root staff     12954 May 10 17:41 jack_midi_dump
    -rwxr-xr-x 1 root staff     31878 May 10 17:41 jack_midi_latency_test
    -rwxr-xr-x 1 root staff      9933 May 10 17:41 jack_midiseq
    -rwxr-xr-x 1 root staff     10275 May 10 17:41 jack_midisine
    -rwxr-xr-x 1 root staff      7325 May 10 17:41 jack_monitor_client
    -rwxr-xr-x 1 root staff     14606 May 10 17:41 jack_multiple_metro
    -rwxr-xr-x 1 root staff     38948 May 10 17:41 jack_netsource
    -rwxr-xr-x 1 root staff      7864 May 10 17:41 jack_samplerate
    -rwxr-xr-x 1 root staff     12988 May 10 17:41 jack_server_control
    -rwxr-xr-x 1 root staff     11743 May 10 17:41 jack_session_notify
    -rwxr-xr-x 1 root staff      8316 May 10 17:41 jack_showtime
    -rwxr-xr-x 1 root staff     10132 May 10 17:41 jack_simple_client
    -rwxr-xr-x 1 root staff     10913 May 10 17:41 jack_simple_session_client
    -rwxr-xr-x 1 root staff     66387 May 10 17:41 jack_test
    -rwxr-xr-x 1 root staff     10479 May 10 17:41 jack_thru
    -rwxr-xr-x 1 root staff      7682 May 10 17:41 jack_unload
    -rwxr-xr-x 1 root staff      9667 May 10 17:41 jack_wait
    -rwxr-xr-x 1 root staff      8064 May 10 17:41 jack_zombie
    -rwxr-xr-x 1 root staff     28881 May 10 17:41 jackd

     

    pi@raspberrypi2 ~ $ ll /usr/bin/jack*
    lrwxrwxrwx 1 root root 27 May 11 08:52 /usr/bin/jack_control -> /usr/local/bin/jack_control
    lrwxrwxrwx 1 root root 33 May 11 08:59 /usr/bin/jack_simple_client -> /usr/local/bin/jack_simple_client
    lrwxrwxrwx 1 root root 20 May 11 08:50 /usr/bin/jackd -> /usr/local/bin/jackd
    pi@raspberrypi2 ~ $ jack_control start
    Traceback (most recent call last):
      File "/usr/local/bin/jack_control", line 399, in <module>
        main()
      File "/usr/local/bin/jack_control", line 158, in main
        bus = dbus.SessionBus()
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 211, in __new__
        mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
        bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
      File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
        bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
    dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

     

     

     

    PS: The fll patch worked, I can now play my wave testfile with aplay!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Maybe I checked out a different JACK2 version than you did?

    Mine is older than yours (1.9.9.5) but otherwise  the same.

    But, jack_control has only one purpose; to control jack-dbus. It's a python script, it isn't configured or built, just copied.

     

     

    The fll patch worked, I can now play my wave testfile with aplay!

    image

     

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Maybe I checked out a different JACK2 version than you did?

    Mine is older than yours (1.9.9.5) but otherwise  the same.

    But, jack_control has only one purpose; to control jack-dbus. It's a python script, it isn't configured or built, just copied.

     

     

    The fll patch worked, I can now play my wave testfile with aplay!

    image

     

    --

    Ragnar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    But, jack_control has only one purpose; to control jack-dbus. It's a python script, it isn't configured or built, just copied.

    So there is no need for jack_control if I want to run it headless anyway?

     

    I removed all jack files and started over, this time I used a prefix to install it directly into /usr/bin

    ./waf configure --alsa --prefix /usr/

     

    The jackd executes fine, but I did not find a client who was able to connect. This was working at least partially with the JACK1 version from the raspbian repository.

     

    pi@raspberrypi2 ~/jack2 $ jackd  -P70 -p16 -t2000 -d alsa -dhw:sndrpiwsp -p 1024 -n 3 -r 44100 -s
    jackdmp 1.9.11
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2014 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    JACK server starting in realtime mode with priority 70
    self-connect-mode is "Don't restrict self connect requests"
    creating alsa driver ... hw:sndrpiwsp|hw:sndrpiwsp|1024|3|44100|0|0|nomon|swmeter|soft-mode|32bit
    configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 3 periods
    ALSA: final selected sample format for capture: 32bit integer little-endian
    ALSA: use 3 periods for capture
    ALSA: final selected sample format for playback: 32bit integer little-endian
    ALSA: use 3 periods for playback

     

     

    pi@raspberrypi2 ~/jack2 $ jack_simple_client 
    unknown option character l
    connect(2) call to jackdmp 1.9.11/jack-1000/default/jack_0 failed (err=No such file or directory)
    jackdmp 1.9.11
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2014 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    `default' server already active
    Failed to open server
    connect(2) call to jackdmp 1.9.11/jack-1000/default/jack_0 failed (err=No such file or directory)
    connect(2) call to jackdmp 1.9.11/jack-1000/default/jack_0 failed (err=No such file or directory)
    connect(2) call to jackdmp 1.9.11/jack-1000/default/jack_0 failed (err=No such file or directory)
    connect(2) call to jackdmp 1.9.11/jack-1000/default/jack_0 failed (err=No such file or directory)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Hello Martin, what are your plans with the RPi?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Hi Jeremy, I am trying to setup a low latency audio system for filtering etc. I might even get into AMP with some RTOS but getting the cirrus board to work in bare metal might take to long.

    So for now it is just the RT kernel JACK and maybe Supercollider or pure C.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube