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 Issues with samplerates below 44.1kHz
  • 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 5 replies
  • Subscribers 676 subscribers
  • Views 905 views
  • Users 0 members are here
  • raspberry_pi
  • raspeberry_pi_accessories
Related

Issues with samplerates below 44.1kHz

hiassoft
hiassoft over 10 years ago

I'm using the new 3.18 kernel (compiled from CirrusLogic git with bcmrpi_defconfig) on a RPi B+ with raspbian and noticed that playing files with samplerates below 44.1kHz still doesn't work as it should.

 

I used Audacity to generate a 10 second stereo 440Hz test tone, once using a sample rate of 44100Hz, and once using 32000Hz and saved them as WAVs (16-bit stereo).

 

Then, on the RPi I played back the 44100Hz file (using aplay) and it sounded correct. Immediately after that I played the 32000Hz file and the pitch was too low. Both files played back fine on my PC.

 

Files with 16kHz or 8kHz sample rate show the same issues.

 

so long,

 

Hias

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

    i also have this problem but it is playing 24/96 file. it will not play and if i play a 16/44.1 file, the pitch will be a bit higher. i have not done any trouble shooting yet but anybody have this problem also?

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

    i also have this problem but it is playing 24/96 file. it will not play and if i play a 16/44.1 file, the pitch will be a bit higher. i have not done any trouble shooting yet but anybody have this problem also?

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

    I did some more tests, using 48kHz and 96kHz files (all stereo, 16bit) and there's a distinctive pattern:

     

    If I first play the 44.1kHz file and then immediately after that any of the 8/16/32/48/96kHz files, that second file is played at a lower pitch.

     

    If I wait a bit (some 5-10 seconds), play any of the 8/16/... kHz files it plays fine, the pitch is correct. But if I play the 44.1kHz file immediately after the 8/16/... kHz file the 44.1kHz file is played at a higher pitch.

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

    I compared the current driver with the previous (kernel 3.12) version and noticed that the FLL1 pll setup was removed from snd_rpi_wsp_config_5102_clks - which doesn't seem to be quite correct.

     

    Re-adding the FLL1 configuration (as it was in the older driver) seems to fix this issue, now switching between 44.1 and 48kHz et al seems to work - see attached patch.

     

    I'm not 100% sure if this patch is correct, it would be fine if someone from Cirrus could have a look at it.

     

    so long,

     

    Hias

    Attachments:
    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 hiassoft

    Thanks for the patch!

     

    I have another one for you. The support for memory mapped i/o that was present in the 3.10 Wolfson kernel disappeared in 3.12 and is still absent in 3.18.

    Jack and some ALSA plugins don't work without mmap.

    --

    Ragnar

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

    thanks hias for the patch, my card is now working with different sample rates. my other problems was also caused by pulse audio i think.

    • 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