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 5017 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
  • superpat
    superpat over 12 years ago in reply to shabaz

    Hi Shabaz,

     

    Explain this then:-

     

    http://www.datasheetarchive.com/PCM5102-datasheet.html

     

     

    Texas Instruments Cross Reference Results

     

    Texas Instruments Part   Industry Part                  Manufacturer               Type                                          Comment                 Description
    PCM5102 BuyWM8521 BuyWolfson MicroelectronicsLoad support is 1000 ohms vs. Cirrus 5000 ohms. PCM5102 supports up to 10 end products in parallel112dB Stereo DAC with 2VRMS output and Integrated Audio PLL

    I always thought there was some wheeling and dealing between Burr Brown and Texas and Wolfson over the DAC design!

     

    regards

     

    Patrick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to superpat

    As stated earlier:

    From a hardware point of view it won't have effects like skip or anything like the USB ones you've experienced. The interface is very different, and is at a determined rate with no contention from other devices like USB. It is a dedicated audio interface.

    There may well be software or driver, or other issues, but I'm afraid I can't help with that. Perhaps someone else can.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to superpat

    Two part numbers are on the one website, agreed (and just to avoid confusion - neither of these part numbers have anything to do with the

    Wolfson audio card!), but they are not similar parts. For any part (Wolfson audio or not) it can be confirmed by looking at the manufacturer data sheets.

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

    I don't think I've read about anyone having usb bandwidth issues after switching from usb dacs to i2s. Shouldn't all the success hifberry users have also be true for wolfson card users in this respect?

     

    I'm not sure if you mentioned this or not, but were you able to play 24/192 files through usb dacs without glitches when the files were on the sd card?

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

    I have just played a bunch of 96 and 192 KHz/24bit tracks with the lxmusic player, average bit rate 5 111 Kbps.

    The flac files reside on another RPi that I have NFS-mounted.

    Both Pis use USB hard disks, I only have a boot partition on the SD cards.

    I experience no clicks or pauses whatsoever. When playing 192KHz tracks, the nfs server processes use ~9% CPU, at 96KHz they use less than 0.1%

     

    --

    Ragnar

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

    of course i replaced the kernel after the update... image

    cat /proc/version

    Linux version 3.10.25_Wolfson+ (ragnar@kernel) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Fri Feb 21 00:03:14 CET 2014

     

    yes I did....

    pi@raspberrypi ~ $ /home/pi/use_case_scripts/Playback_to_All.sh

    numid=151,iface=MIXER,name='HPOUT2 Digital Switch'

      ; type=BOOLEAN,access=rw------,values=2

      : values=on,on

    numid=389,iface=MIXER,name='HPOUT2L Input 1'

      ; type=ENUMERATED,access=rw------,values=1,items=99

      ; Item #0 'None'

      ; Item #1 'Tone Generator 1'

      ; Item #2 'Tone Generator 2'

      ; Item #3 'Haptics'

      ; Item #4 'AEC'

      ; Item #5 'Mic Mute Mixer'

      ; Item #6 'Noise Generator'

     

    I always get an error:

    mpd

    Failed to bind to '[::]:6600': Failed to create socket: Address family not supported by protocol

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

    "Failed to bind to '[::]:6600'"

    It looks like mpd is trying to use IPv6.

    Could you post your mpd.conf file?

    --

    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

    sorry took a few days to get back to life...

     

    To make sure, that I made no mistake i started from beginning...

     

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

    - update

    # sudo apt-get update

    # sudo apt-get upgrade

    # sudo rpi-update

    # sudo reboot

     

    - replace kernel and check it:

    pi@raspberrypi ~ $ cat /proc/version

    Linux version 3.10.25_Wolfson+ (ragnar@kernel) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 PREEMPT Fri Feb 21 00:03:14 CET 2014

    - install Music-progr's:

    pi@raspberrypi ~ $ sudo apt-get install lxmusic xmms2 xmms2-plugin-all volumeicon-alsa mpg123 mplayer

     

    - use use-case-script

    pi@raspberrypi ~ $ sudo /home/pi/use_case_scripts/Playback_to_All.sh

     

    which gives me an output (I removed the lines with the ";" in front  to make the list shorter ;-)

    numid=151,iface=MIXER,name='HPOUT2 Digital Switch'
      ; type=BOOLEAN,access=rw------,values=2
      : values=on,on
    numid=389,iface=MIXER,name='HPOUT2L Input 1'
      : values=15
    numid=120,iface=MIXER,name='HPOUT2L Input 1 Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=48,step=0
      : values=32
      | dBscale-min=-32.00dB,step=1.00dB,mute=0
    numid=385,iface=MIXER,name='HPOUT2R Input 1'
      : values=16
    numid=124,iface=MIXER,name='HPOUT2R Input 1 Volume'
      ; type=INTEGER,access=rw---R--,values=1,min=0,max=48,step=0
      : values=32
      | dBscale-min=-32.00dB,step=1.00dB,mute=0

     

    when i start mplayer with a music file I get:

     

    pi@raspberrypi ~ $ mplayer /media/cross.mp3

    MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team

    mplayer: could not connect to socket

    mplayer: No such file or directory

    Failed to open LIRC support. You will not be able to use your remote control.


    Playing /media/cross.mp3.

    libavformat version 53.21.1 (external)

    Mismatching header version 53.19.0

    Audio only file format detected.

    Clip info:

    Title:

    Artist:

    Album:

    Year:

    Comment:

    Genre: Unknown

    Load subtitles in /media/

    ==========================================================================

    Requested audio codec family [mpg123] (afm=mpg123) not available.

    Enable it at compilation.

    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders

    libavcodec version 53.35.0 (external)

    Mismatching header version 53.32.2

    AUDIO: 48000 Hz, 2 ch, floatle, 320.0 kbit/10.42% (ratio: 40003->384000)

    Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)

    ==========================================================================

    AO: [pulse] Init failed: Connection refused

    Failed to initialize audio driver 'pulse'

    [AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device or resource busy

    [AO_ALSA] Playback open error: Device or resource busy

    Failed to initialize audio driver 'alsa'

    [AO SDL] Samplerate: 48000Hz Channels: Stereo Format floatle

    [AO SDL] using aalib audio driver.

    [AO SDL] Unsupported audio format: 0x1d.

    [AO SDL] Unable to open audio: No available audio device

    Failed to initialize audio driver 'sdl:aalib'

    Could not open/initialize audio device -> no sound.

    Audio: no sound

    Video: no video

    Exiting... (End of file)


    So, I think there is a configuration problem of mplayer or alsa....


    Any hint?

    • 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