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 Does cirrus logic audio card support real time processing?
  • 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
  • State Suggested Answer
  • Replies 7 replies
  • Answers 2 answers
  • Subscribers 675 subscribers
  • Views 809 views
  • Users 0 members are here
  • raspberry_pi
  • raspeberry_pi_accessories
Related

Does cirrus logic audio card support real time processing?

Former Member
Former Member over 10 years ago

Does cirrus logic audio card support real time processing?

I'm trying to read an input signal from two microphones then add the two signals and output them to the output line in real time. Any idea?

i appreciate any help.

Mohammed

  • Sign in to reply
  • Cancel
Parents
  • clem57
    0 clem57 over 10 years ago

    http://wiki.linuxaudio.org/wiki/raspberrypi for some background information on audio processing. This sounds like a great project to do. Please let us know what you discover.

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 10 years ago

    http://wiki.linuxaudio.org/wiki/raspberrypi for some background information on audio processing. This sounds like a great project to do. Please let us know what you discover.

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • clem57
    0 clem57 over 10 years ago in reply to clem57

    Cirrus Logic Audio Card for B+ and A+ onwards V1.02 documents examples of what you want. The only problem is one needs to be analogue and the other digital.

    Clem

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

    HI Clem Martins

    Thank you for the valuable information; in fact, i'm still know to raspberry pi, linux, and cirrus logic audio card, i'll try if the steps in the link would works with me since they are for USB cards and hopefully i'll get some where.

    i appreciate your help.

    Mohammed

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

    "I'm trying to read an input signal from two microphones then add the two signals and output them to the output line in real time."

    It is possible to mix the 2 microphone inputs together and then route them internally in the WM5102 to the line outputs. You need to create a specific setup script file to match the configuration you need. The WM5102 datasheet and alsa mixer will help. There are examples of this within the forum, see the following as an example

    http://www.element14.com/community/thread/32524/l/is-it-possible-to-send-audio-from-spdif-in-to-the-lineout-using-the-mixer

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

    Hi Scott Hendry

    thank you for the helpful informations. i think you direct me to the right direction. i looked to the link and in particular to

    2. Re: Re: Is it possible to send audio from "SPDIF In" to the Lineout using the mixer?

    imageLevel 4: Ohm

    Ragnar Jensen

    post. He attached script to run equalizer. i tried to run the same script as starting point but when i run the script i got three lines of this message

    amixer:Cannot find the given element from control hw:sndrpiwsp

    and this after i changed the CARD from hw:0 to hw:sndrpiwsp. i then tried to look to the WM5102 datasheet but its very long and i did not understand.

    i appreciate if you have any suggestions

    Mohammed

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

    Hi Mohammed!

     

    I wrote that script for the older Wolfson Audio Card.

    The error messages are because the old drivers have some controls that don't exist anymore.

     

    The controls in question are "RX Playback Switch" and "TX Playback Switch", you can remove any lines with them from the script.

     

    There are some more scripts (also for the Wolfson card)  to look at here:http://www.element14.com/community/message/114756/l/re-read-in-from-the-headset-jack-and-read-out-to-the-amplifier#114756

    and a brief description of the Wolfson card's in- and outputs here: http://www.element14.com/community/message/114760/l/re-a-lot-of-playback-items#114760

     

    I have not had the time to test/update my scripts for the Cirrus card, it's likely you have to tweak them yourself. But I hope those links can serve as a start.

    --

    Ragnar

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

    Hi Ragnar

    Thank you so much. I tried the listen_to_LineIn_on_Lineout.sh script with some changes and it did work. However, it turned out i can not do the real time processing by simply mix the two inputs. I read in the WM5102 datasheet that we con program a DSP space that can do signal processing. Do you have and tips about how to use the DSP?

    And I need to record two mics from the lineIn to two different fils. I set the hardware

     

    1. amixer -Dhw:0 cset name='IN3L Digital Volume' 138 
    2. amixer -Dhw:0 cset name='IN3R Digital Volume' 138 
    3. amixer -Dhw:0 cset name='AIF1TX1 Input 1' IN3R 
    4. amixer -Dhw:0 cset name='AIF1TX2 Input 1' IN3L 

    then used arecord -d 10 -Dhw:sndrpiwas -c 2 -f s16_LE -r wav 96000 -t wav -I mic1.wav mic2.wav

    but i got this error: arecord: Set_params:1076: Access type not available.

    I appreciate any help

    Mohammed

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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