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 Wolfson Audio Card - no SPDIF out.
  • 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
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 674 subscribers
  • Views 1042 views
  • Users 0 members are here
  • wolfson
  • raspberry_pi
  • raspeberry_pi_accessories
  • spdif
Related

Wolfson Audio Card - no SPDIF out.

Former Member
Former Member over 11 years ago

I'm on my 2nd Wolfson card as I sent the first back thinking it was broken.

I just cannot get any output from SPDIF, not even with the example HD flacs. Lineout works fine.

I'm using mplayer -ao alsa to play flacs. There are no errors in output. Same with aplay. No errors but no sound.

I'm using a 32G class 10 SD card.

I've tried the pre-built wolfson kernel and also patched my own.

I'm not using an external power source as I understand that that's is just needed for speaker output?

 

I see a few errors and tracebacks in dmesg. Link to dmesg output:

 

http://www.r0t.co.uk/paste/p/78wvTi31.html

 

I'm beginning to wonder if it's the actual Pi that's faulty, but it seems OK for everything else.

 

Now this is the strange part: I get SPDIF out if there is a line out cable plugged in with a load across it - ie plugged into my hifi preamp.

If I pull the plug either end then SPDIF stops. I can verify that I am actually listening to the SPDIF output by turning off my DAC, and also the preamp selector switch is on input 1 for SPDIF and 4 for line in, so there is no way that the lineout signal is getting through. If I switch to the input that lineout is connected to, there is no output.

 

Any ideas?

 

Incidentally, both cards showed exactly the same symptoms.

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

    Hi,

     

    I've been using the Wolfson card, with SPDIF out, for quite  a few months now. Very happy with it, and no problems. You don't say whether you are using it via the Pi desktop, or using it headless?

     

    I use it headless. Originally I tried it with the Squeezeplug distribution, which I think worked. I had previously been using a USB DAC with the Raspyfi distribution, and I found a way of using that with the Wolfson, by using Ragnar Jensen's custom Wolfson kernel. That's what I still use, and it performs very well.

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

    Yeah I'm headless too. It's fine that yours works as expected. I'm using armed slack and I won't be changing distros because of this. My DAC is a SMSL SD-1955 which has a max of 24bit 192K, so it should play back anything thrown at it.

     

    I'm using Ragnar Jensen's custom Wolfson kernel too at the moment, while I'm waiting for a new one to finish off in qemu, then I'll switch to that.

     

    I'm wondering if the use_case_scripts are old and maybe I need to try out some new ones? Do you have a link to the ones that you are using?

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

    Hi,

     

    I don't know what the 'armed slack' is. I think the Raspyfi distribution i'm using is essentially Raspian with some tweaks to improve audio output, generally based on 'mpd' as the player. The 'use-case' scripts I'm using are the ones that Ragnar included with his 'stripped-down' version of the Wolfson download. So I'd imagine you've probably got those already.

     

    I'd guess the problems you are having may be something to do with using 'armed slack', so I'm not sure how you get round that. Or maybe the problem is the player? How about trying a different player? Like MPD. At least just to prove that you 'can' get sound out via SPDIF-out.

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

    Hi,

     

    I don't know what the 'armed slack' is. I think the Raspyfi distribution i'm using is essentially Raspian with some tweaks to improve audio output, generally based on 'mpd' as the player. The 'use-case' scripts I'm using are the ones that Ragnar included with his 'stripped-down' version of the Wolfson download. So I'd imagine you've probably got those already.

     

    I'd guess the problems you are having may be something to do with using 'armed slack', so I'm not sure how you get round that. Or maybe the problem is the player? How about trying a different player? Like MPD. At least just to prove that you 'can' get sound out via SPDIF-out.

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

    Armed Slack = Slackware for Arm, basically.

     

    I have the same problem playing a wav with aplay so I know it isn't mplayer.

     

    This seems to be a problem with connecting outputs to inputs internally. I will probably test a few different loads on the line out to see what works and what doesn't. I did have a quick look through alsamixer to see what was connected to what, but I haven't thoroughly tested.

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

    Dave Wood wrote:

     

    Armed Slack = Slackware for Arm, basically.

     

     

    OK. I didn't know that was still around. I think I used that back in the 90s (Slackware)! It must be one of the oldest distros around.

     

    If you have a spare SD card it might be worth trying another distro, just to see if it works. That would at least point to the problem being with Slackware's interaction with the Wolfson card, or the 'use-case' scripts. The official Wolfson download is I think based on the Raspian distribution, so if you are using something else that may produce anomalies. Maybe Ragnar would know something, as he seems to be pretty knowlegeable.

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

    Yes Slackware /is/ the oldest surviving distro :-)

     

    I have just bought a 32G card so that does leave the 16G card I could do something with, but there isn't any interaction between the distro itself (just a bunch of software anyway) and the sound card; it's all down to the kernel and and the player. I built mplayer from source and I know it works fine on other boxes with the same DAC. It could be something to do with alsa though...

     

    No, I really think this is down to the kernel, alsa, the card, or some setting that needs changing in the SPDIF_playback.sh script,

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

    Dave Wood wrote:

     

    Yes Slackware /is/ the oldest surviving distro :-)

     

     

    I'm sure I remember that coming on two floppy disks! A boot disk and a RAM disk :-) Seems like cave-man stuff now.

     

    I've not delved into the 'use-case' scripts. They just worked, so there was no need. I think they are basically setting up Alsa, so that may be where you need to look.

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

    Slackware had progressed a bit these days. It's quite up-to-date even though it still uses the old dialog installer and pkgtools. The best thing is no automatic dependency resolution. It's left for the admin to consider what else needs installing for deps.

     

    Anyway, back to the problem: I've just had a look at my PSU and noticed that it's only rated at 1A. I think that could be the problem. It was one of these 'deals' on amazon where you buy a few accessories along with the Pi. From what I've read it's best to get one rated at 2A. I don't think that I have another to test with at the moment. Need to go through my spares boxes...

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

    I'm marking this as solved. The new DAC I ordered arrived this morning and it works fine, without any hacks.

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