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
    About the element14 Community
  • 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 Wolfson and MPD  working
  • 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 45 replies
  • Subscribers 683 subscribers
  • Views 5171 views
  • Users 0 members are here
Related

Wolfson and MPD  working

superpat
superpat over 12 years ago

Hi,

 

I installed MPD onto the provided Wolfson Audio distribution, running it headless,  console via ssh.

 

I copied the provided demo flac files to the mpd music directory.

 

I ran alsamixer and wound up the digital i/p's and outputs.

 

controlling  MPD with the GMPC client on my LInux desktop

 

96Kbps flacs are playing  superbly, output  lineout  and into my desktop audio amp and speakers,

 

Next I will set mpd to get music from my NAS using nfs, which will be interesting, as this tends load the Pi system and  cause problems with the Pi and usb dacs!

 

cheers

 

 

P

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

    OK, so I will send it back...

     

    20 hours wasted because of a defect hardware... image

     

    anyway: THANK YOU for your HELP & PATIENCE!!!

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

    Hello,

    I using Raspian + MPD + Wolfson audio card over NFS. I plugged the Lineout output on Hifi amplifier and it's working well except one thing : the volume control.

    I can't control volume with any Music Player clients.

    I think the mixer is not correctly configured but I don't know how I can configure it. Do you have any suggestions (tests or settings ) ?

     

    Thank you in advance !

    • 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 Alexis,

    I had the same problem. But I think I finally found the right setting to use the hardware mixer of the WM5102 with mpd. This is the important part of the mpd.conf:

    audio_output {
        type          "alsa"
        name          "Wolfson"
        device        "hw:0"
        mixer_type    "hardware"
        mixer_control "HPOUT2 Digital"
    }

    But be careful I'm not sure if this is fully correct and reduce the volume of your amp. Just in case ;-)

     

    If this matters: I use alsa-utils 1.0.28-1 and mpd 0.18.12-1

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

    Hello,

    Thank you twoflower.

    I can now control the volume through my favourite mpd client. However, It's difficult to adjust the volume without saturating my amplifier, because it seems that the volume scale is not linear but something almost exponential.

    Do you know if I can limit the upper volume value to avoid this behaviour ?

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

    I noticed that today too. The evening I found this configuration I was not trying this out in the sake of my neighbors sleep. So far I haven't found a fully working solution. Reducing the input levels of the mixer seems to help little:

    > amixer -Dhw:0 cset name='HPOUT2L Input 1 Volume' 10
    > amixer -Dhw:0 cset name='HPOUT2R Input 1 Volume' 10

    But the distortion stays there. I wish I would have a scope here to understand a little better what happens. And/Or some more time to read the 500+ pages datasheet of the WM5102.

     

    UPDATE: OK, I think I understand what's going on. According to the WM5102 datasheet all values above 0x80 (128) will amplify the input signal. That's what we want to avoid. This behavior seems to be true for most if not all volume knobs in the device. This might be useful in case you have low input signals. But in normal cases this will cause distortions. A solution might be to tell alsa (the mixer used by mpd) that the maximum value is not 0xBF (191) but 0x80 or a bit lower to avoid clipping. But so far I was not able to find the place to override the default. If I understand this right, alsa 'asks' the device about which knobs and values are valid. So there's no existing config file to tweak. But I'm sure there's a way to override stuff. One candidate is to create a alsactl_init but this seems to be not a 5 minute task to understand.

    • 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 © 2026 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