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 684 subscribers
  • Views 5060 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
Parents
  • Former Member
    Former Member over 11 years ago

    I'm trying to get my wolfson card going-but I'm terribly struck...

     

    What i did:

    - install 2014-01-07-wheezy-raspbianW.zip

    - expandet the FS

    - updated

    - sudo apt-get install lxmusic xmms2 xmms2-plugin-all volumeicon-alsa mpg123 mplayer 

     

    startx, and the musicplayer:

    there is no sound, altough i tried all output sound-systems..

     

    at the bash

    i get errors when i try to play some music directly...

     

    Any hint how to get it working?

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

    You remembered to run the appropriate use case script (Playback_to...) first?

     

    "-updated"

    Updated what? It's possible you have updated the kernel, and now have an official Foundation kernel without the Wolfson drivers.

     

    The command

    cat /proc/version

    should return "Linux version 3.10.25_Wolfson+ (ragnar@kernel)..."

    If it doesn't, try

    sudo cp /boot/kernel_wolfson.img /boot/kernel.img

    and reboot.

    --

    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

    OK, I have managed to replicate the error.

    If I run the Reset_paths.sh script to disconnect all outputs, my mplayer stalls like yours do.

    What if you try to run the Playback_to_Lineout.sh or SPDIF_playback.sh  script first?

     

    EDIT: The wav file you tried with is the wrong format. Must be at least 32kHz and 2 channels.

    --

    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

    pi@raspberrypi ~ $ aplay -vv /media/aaron.wav

    Wiedergabe: WAVE '/media/aaron.wav' : Signed 16 bit Little Endian, Rate: 44100 Hz, stereo

    Soft volume PCM

    Control: Master

    min_dB: -51

    max_dB: 0

    resolution: 256

    Its setup is:

      stream       : PLAYBACK

      access       : RW_INTERLEAVED

      format       : S16_LE

      subformat    : STD

      channels     : 2

      rate         : 44100

      exact rate   : 44100 (44100/1)

      msbits       : 16

      buffer_size  : 22052

      period_size  : 5513

      period_time  : 125011

      tstamp_mode  : NONE

      period_step  : 1

      avail_min    : 5513

      period_event : 0

      start_threshold  : 22052

      stop_threshold   : 22052

      silence_threshold: 0

      silence_size : 0

      boundary     : 1445199872

    Slave: Hardware PCM card 0 'snd_rpi_wsp' device 0 subdevice 0

    Its setup is:

      stream       : PLAYBACK

      access       : MMAP_INTERLEAVED

      format       : S16_LE

      subformat    : STD

      channels     : 2

      rate         : 44100

      exact rate   : 44100 (44100/1)

      msbits       : 16

      buffer_size  : 22052

      period_size  : 5513

      period_time  : 125011

      tstamp_mode  : NONE

      period_step  : 1

      avail_min    : 5513

      period_event : 0

      start_threshold  : 22052

      stop_threshold   : 22052

      silence_threshold: 0

      silence_size : 0

      boundary     : 1445199872

      appl_ptr     : 0

      hw_ptr       : 0

    ##############+                                    | 26%

     

    the same: at the end the pi strucks until I ctrl-C

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

    Yes, that is what happens for me too, if I haven't set up any playback output on the card.

    What if you try to run the Playback_to_Lineout.sh or SPDIF_playback.sh script first?

    --

    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

    i did! as you recomended - of course!! ;-)

     

    pi@raspberrypi ~ $ /home/pi/use_case_scripts/Reset_paths.sh >reset.txt

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

     

     

    pi@raspberrypi ~ $ /home/pi/use_case_scripts/Playback_to_Lineout.sh >lin.txt

     

    do you need the output files?

    • 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 get the " Cannot find the given element from control hw:0" too. They forgot to remove a line from the script.

     

    What is output from

    amixer -Dhw:0 cget name='HPOUT2L Input 1'

    and

    amixer -Dhw:0 cget name='HPOUT2R Input 1' ?

    Only the last line is important, should be

    values=15 and

    values=16

    If they are, the card is setup to playback to the Line Out jack and the players should be able to play.

    --

    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

    amixer -Dhw:0 cget name='HPOUT2L Input 1'

      : values=15

     

    and


    amixer -Dhw:0 cget name='HPOUT2R Input 1'

    : values=16

     

    so this should be correct....

     

    But while strucks the player instead of playing image

     

    do you think it may help if I reinstall mplayer with -force?

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

    You could try, but I'm not sure it will help.

     

    To find out if  it will play at all, try to play back to the Pi's built-in audio:

    mplayer -ao alsa:device=hw=1.0 somefile.mp3

     

    I'm getting short of ideas...

    --

    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

    YES!

    it plays out of the PI-Jack...

     

    btw how is the command to switch back - maybee it works now

     

    so maybee I will have just to return the card and get an "simple" DAC...

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

    You don't have to switch it back.

    -ao alsa:device=hw=1.0 tells mplayer to use hardware card number 1 temporarily.

    By default it will use card number 0 - the Wolfson.

     

    I'm starting to think that your Wolfson card might be broken.

    --

    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

    but if I try to play via the wolfson card the mplayer gets strucked...

    You think this might happen because of a defect hardware?

    • 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

    but if I try to play via the wolfson card the mplayer gets strucked...

    You think this might happen because of a defect hardware?

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

    Yes, it's quite possible.

    --

    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

    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
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