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 jack & full duplex possible
  • 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 22 replies
  • Subscribers 675 subscribers
  • Views 2582 views
  • Users 0 members are here
Related

jack & full duplex possible

Former Member
Former Member over 11 years ago

Hi all,

 

I was wondering if it's possible to use Jack?

If yes, is full duplex (in & out) possible?

What can I expect for the latency (less than 20ms, more than 100 ms)?

 

If not, with Alsa is it possible to have analog in & analog out working at the same time?

 

Off-topic:

 

Some people are talking about this distribution that is featuring low latency / jack solution:

https://ccrma.stanford.edu/~eberdahl/Satellite/

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

    I was wondering if it's possible to use Jack?

    Yes.

    If yes, is full duplex (in & out) possible?

    Yes.

    What can I expect for the latency (less than 20ms, more than 100 ms)?

    Don't know, I've never tested latency in Jack. ALSA gives me 6 - 7 ms.

    If not, with Alsa is it possible to have analog in & analog out working at the same time?

    Yes.

    --

    Ragnar

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

    Wonderful! Is it better to use Alsa (less CPU, lower latency)? I was wondering if it is also a good idea to run everything in root (I know it's never a good idea normally) - but for getting the best performance out of the raspberry pi... Should I try to apply those modifications: http://wiki.linuxaudio.org/wiki/raspberrypi

     

    Thanks!

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

    Ok make sense (using Ubuntu Studio for cross compiling and raspbian for the actuel distro)! In the meantime I found this tutorial: Talk Unafraid » Real Time kernels and audio on the Raspberry Pi - but I have to say that I would very much like to use your solution because I also want a similar setup (usb midi, pure data).

     

    Keep in touch!

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

    Hi Pat,

    next weekend there will be more information on how to compile the 3.12 kernel with rt-preemption and wolfson drivers included on my website. Please be patient and

    Have fun.

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

    Here we go:

    http://blog.georgmill.de/2014/04/26/compile-wolfson-audio-card-driver-for-kernel-3-12-y/

    Have fun.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    I have problem:

    git reset --hard 4639d2b773b318d4b0409f67d3d5e73a513ba64b

    fatal: Could not parse object '4639d2b773b318d4b0409f67d3d5e73a513ba64b'.

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

    Hi Georg!

     

    Thank you so much for this. Will try to find the time asap to confirm that it's working. With your permission, I will upload the rt-kernel with module so that people can simply do Step 53 (or maybe you already share the files somewhere)?

     

    Talk to you soon

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

    @ Jan Tomasik

    Hi Jan,

    what does

    git status

    say?

    Georg

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

    I tried both, of course, it's always the same:

    git reset --hard 4639d2b773b318d4b0409f67d3d5e73a513ba64b

    fatal: Could not parse object '4639d2b773b318d4b0409f67d3d5e73a513ba64b'.

     

    the object does not exist.

     

    git status

    # On branch rpi-3.12.y

    nothing to commit (working directory clean)

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

    Hi Jan,

    you are right. Maybe I made a mistake with git and now have the gravity (movie) effect: Detached sources and lost in space? ;-)

    Hope there is time enough to find a solution for that soon. I'll let you know.

    Georg (without having fun)

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

    Hi Jan,

     

    please have a look at http://blog.georgmill.de/2014/04/29/compile-wolfson-audio-card-driver-for-kernel-3-12-y-a-new-try/

    Test and report,  please. Here I'm able to use the Wolfson card full duplex with jackd and calf-plugins. I routed the two onboard mics through calf reverb and then trough calf phaser to system playback. What an echooooooooo ;-)

    With much more fun than ever !

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

    Many thanks Georg

    I used your kernel source code to create patch for Runeaudio with Wolfson Audio Card and Power-on-off circuit.

    The only problem is in boot with "vc_cma: dma_declare_contiguous (11800000, d400000) failed", I used the workaround described in http://archlinuxarm.org/forum/viewtopic.php?f=31&t=6432

    Otherwise, it works great, thanks for the great work.

     

    Re: Instructions for compiling the wolfson audio card kernel drivers and supported use cases

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

    Many thanks Georg

    I used your kernel source code to create patch for Runeaudio with Wolfson Audio Card and Power-on-off circuit.

    The only problem is in boot with "vc_cma: dma_declare_contiguous (11800000, d400000) failed", I used the workaround described in http://archlinuxarm.org/forum/viewtopic.php?f=31&t=6432

    Otherwise, it works great, thanks for the great work.

     

    Re: Instructions for compiling the wolfson audio card kernel drivers and supported use cases

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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