Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 25
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/04 Matthew T. (35)
05/04 Amrit Deshmukh (60)
05/05 Alexandre (32)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Computer Science
« Previous topic | Next topic »   

Raspberry Pi and DACs

 1 2 3 4 
Move Thread LAN_403
Steve Conner
Wed Aug 01 2012, 10:47AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Would you care to qualify that by telling us what media player software is installed on it and whether it gives audio over HDMI? tongue
Back to top
Steve Conner
Wed Aug 01 2012, 01:38PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Sorry for the double post, but I think I answered my own question:
Link2

RaspMBC is a media centre distro and it appears to support digital audio out over HDMI.
Back to top
Pinky's Brain
Wed Aug 01 2012, 03:36PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
Then you need a HDMI to SPDIF converter ... kinda getting away from cheap and small.
Back to top
Steve Conner
Wed Aug 01 2012, 09:52PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The cheapest one I could find cost $10 more than the RPi itself :(

Still, you have to weigh it against the cost of the time taken to write a driver for whatever codec chip you might choose. Or maybe RaspBMC could easily be modified to drive a USB DAC, if it doesn't do that already?
Back to top
Ash Small
Sat Aug 04 2012, 11:51AM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Here is a link to the 'multimedia' section on the RPi forum, which may be of some relevance here;

Link2

EDITED; SEE THE TWO POSTS BELOW
Back to top
Pinky's Brain
Sat Aug 04 2012, 12:45PM
Pinky's Brain Registered Member #2901 Joined: Thu Jun 03 2010, 01:25PM
Location:
Posts: 837
Ash Small wrote ...
and HDMI-RCA converter for $8 from Amazon;

Link2
That's a scam :/
Back to top
Ash Small
Sat Aug 04 2012, 01:40PM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Pinky's Brain wrote ...

Ash Small wrote ...
and HDMI-RCA converter for $8 from Amazon;

Link2
That's a scam :/


So it is Pinky, I've just read the reviews. It looks lke you do need to spend ~$40.
Back to top
Steve Conner
Fri Nov 23 2012, 08:36PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I decided to resurrect this thread, as I've built a fairly successful Pi-based music player.

I used a Raspberry Pi Model B, a £29 USB DAC from Maplin (order code A14KF) and a spare 300GB hard drive in an external USB enclosure.

Using the latest Debian Wheezy image, the DAC is recognised automatically by snd-usb-audio. Due to the Pi's slightly funky USB controller, it won't play at bit rates above 44.1k/16 bit without stuttering and interfering with the USB keyboard. I decided to continue as 99% of my music collection is in this format.

I installed mpd (the "Music Player Daemon") and ncmpc, the console-based interface for it. After making the console font bigger, this interface works nicely on a tiny £16 reversing camera monitor from Ebay, hooked up to the Pi's composite output. Due to the 44.1k/16 bit limitation, I set mpd to resample everything to this format using its highest quality setting.

So yeah, a 300GB player that supports lossless formats for under £100. smile

The Pi's main chip has an I2S output, and this is brought out to the GPIO pins. It would be really nice if someone would write an ALSA driver for it. smile Some guys over at DIYAudio tried and failed, the DMA controller was too much for them: Link2
Back to top
Carbon_Rod
Sat Nov 24 2012, 02:37AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
@Steve
The Pis Audio & PWM DMA can be conflicted by device drivers.

#To enable the stereo analog line output:
sudo modprobe snd_bcm2835
sudo amixer cset numid=3 1

#Classic way to test audio:
sudo apt-get install flite
sudo flite -voice slt -t "The Enrichment Center is required to remind you that you will be baked, and then there will be cake"

Not sure about bit rates, but it plays fine with the most recent Wheezy kernel overclocked at 950MHz. Most Pi issues happen with a slightly unstable power supply, and it helps to have a 2A+ external 3.3v LDO regulator for DAC chips etc.

#Run kernel update
sudo raspi-config

#after script completes, re-run to overclock to "High" mode and set GPU to 16MiB
sudo raspi-config

#...reboot to enable the new settings
Back to top
macona
Sun Nov 25 2012, 08:58AM
macona Registered Member #3272 Joined: Mon Oct 04 2010, 11:40PM
Location: Beaverton, OR
Posts: 101
Why not use a Teensy 3.0? It is an ARM cortex M4 with DSP functions at 48Mhz (Overclockable to 96) and can handle a I2S audio input. Native USB so you dont have to deal with a serial-USB bottleneck.

8215871476 581f04d51d C
DPSS Yag laser cavity by macona, on Flickr
Back to top
 1 2 3 4 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.