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 5021 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
Reply
  • 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
Children
  • 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
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    "Device or resource busy"

    Something else is using the sound card.

     

    Try this to find out what:

    fuser -uv /dev/snd/pcmC0D0p

     

    "sudo /home/pi/use_case_scripts/Playback_to_All.sh"

    Don't use sudo to run the use case scripts.

    --

    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 ~ $ fuser -uv /dev/snd/pcmC0D0p

                         BEN.        PID ZUGR.  BEFEHL

    /dev/snd/pcmC0D0p:   pi         2342 F...m (pi)xmms2d

     

    btw my alsa-base:

    # autoloader aliases

    install sound-slot-0 /sbin/modprobe snd-card-0

    install sound-slot-1 /sbin/modprobe snd-card-1

    install sound-slot-2 /sbin/modprobe snd-card-2

    install sound-slot-3 /sbin/modprobe snd-card-3

    install sound-slot-4 /sbin/modprobe snd-card-4

    install sound-slot-5 /sbin/modprobe snd-card-5

    install sound-slot-6 /sbin/modprobe snd-card-6

    install sound-slot-7 /sbin/modprobe snd-card-7

    # Cause optional modules to be loaded above generic modules

    install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; : ; }

    install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }

    install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }

    # Keep snd-pcsp from beeing loaded as first soundcard

    options snd-pcsp index=-2

    # Keep snd-usb-audio from beeing loaded as first soundcard

    options snd-usb-audio index=-2

    # Prevent abnormal drivers from grabbing index 0

    options bt87x index=-2

    options cx88_alsa index=-2

    options snd-atiixp-modem index=-2

    options snd-intel8x0m index=-2

    options snd-via82xx-modem index=-2

    • 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 the xmms2 daemon is running. Probably some other player has started it. E.g. LXMusic is an xmms2 client.

    Do you have any other player programs running? Close them.

    If not, kill it. kill 2342

    --

    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, the fisrt step is done...

    Now I get:

     

    pi@raspberrypi ~ $ mplayer /media/lady.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/lady.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: 40004->384000)

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

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

    waitpid(): No child processes

    AO: [pulse] Init failed: Internal error

    Failed to initialize audio driver 'pulse'

    [AO_ALSA] Format floatle is not supported by hardware, trying default.

    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)

    Video: no video

    Starting playback...

    A:   0.0 (00.0) of 216.0 (03:36.0) ??,?%

    (here the pi strucks until I press ^C twice)

     

    As I mentioned aboce, I startet new - so I didn't install mpd / mpc: ist that a problem? should I?

    • 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 have the exact same output as you from mplayer. Except mine plays the file...

    The two lines you have bolded can be ignored, they are from when mplayer tries to find an infra-red remote control receiver.

     

    What is the output from aplay -l and aplay -L ?

    What happens if you try to play a wav file with aplay -vv file.wav?

     

    EDIT: No don't install mpd/mpc yet. That will only complicate matters.

    I don't have them installed.

     

    --

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

    **** Liste der Hardware-Geräte (PLAYBACK) ****

    Karte 0: sndrpiwsp [snd_rpi_wsp], Gerät 0: WM5102 AiFi wm5102-aif1-0 []

      Sub-Geräte: 1/1

      Sub-Gerät #0: subdevice #0

    Karte 1: ALSA [bcm2835 ALSA], Gerät 0: bcm2835 ALSA [bcm2835 ALSA]

      Sub-Geräte: 8/8

      Sub-Gerät #0: subdevice #0

      Sub-Gerät #1: subdevice #1

      Sub-Gerät #2: subdevice #2

      Sub-Gerät #3: subdevice #3

      Sub-Gerät #4: subdevice #4

      Sub-Gerät #5: subdevice #5

      Sub-Gerät #6: subdevice #6

      Sub-Gerät #7: subdevice #7

    pi@raspberrypi ~ $ aplay -L

    null

        Discard all samples (playback) or generate zero samples (capture)

    sysdefault:CARD=sndrpiwsp

        snd_rpi_wsp,

        Default Audio Device

    sysdefault:CARD=ALSA

        bcm2835 ALSA, bcm2835 ALSA

        Default Audio Device

     

    aplay -vv /media/cross.mp3

    Wiedergabe: Rohdaten '/media/cross.mp3' : Unsigned 8 bit, Rate: 8000 Hz, mono

    aplay: set_params:1081: Sample-Format nicht unterstützt

    Available formats:

    - S16_LE

    - S32_LE

    • 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