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
Mon Feb 11 2013, 12:28PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Yeah, but the network chip was also the USB hub. :( The Broadcom SOC only has one USB port.

Update: I have hours of glitch-free listening at 16/44.1 and 24/48 now, and 24/96 seems glitch-free too. At 24/192 I get a pop every few minutes. I'm thinking of getting a Model A to see if removing a USB hub from the chain helps.
Back to top
Carbon_Rod
Tue Feb 12 2013, 01:23AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Some codec + DAC chips have a buffer that automatically rate-limits the playback.

Depending on your overclock settings (far more stable at 850MHz with no over-voltage)
The USB lag issues may still be jamming up the works:
Link2
Link2
Link2


Also, some distros have a fudged clock backup that runs every few minutes on a cron job.
wink

The 512MB B version definitely performs better as the i/o write bottleneck is usually SDHC card related, and the low-swap mode setting forces most so libs into resident ram. The 256MB version B we tested also >seems< to have slightly less CPU performance running identical OSs.

Back to top
Steve Conner
Tue Feb 12 2013, 12:07PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I'm not using any overclock. I disabled the ondemand governor so it runs at the standard clock rate (700MHz?) all the time. Are you saying that an overclock to 850MHz would make it more stable than this? Or do you mean it's more stable than a more radical overclock would be?

Also, what's a "fudged clock backup", how would I go about looking for it? Something to do with the Pi's lack of a RTC?

When my system is playing, it hardly seems to access the SD card. The activity light blinks once every few seconds. I've considered trying to get it all to run from a ramfs, to get SD card DMA transfers out of the picture, but I'm not sure where to start.
Back to top
Carbon_Rod
Wed Feb 13 2013, 03:11AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
A mode 6 no over voltage on core setting ensures the SD card i/o will behave better, and reduces the USB stack latency which can cause a reset glitch.

Note, the read speeds are far faster than block writes on most of these cards.

In general, one can use the auto generated temp path that overflows to a swap file, but it is less predictable.
mount -t tmpfs tmp /mnt/tmp

...or preallocate an area of RAM to fit two flac/mp3 tracks
mount -t ramfs ram /mnt/ram

That later fixed area should make the buffer more reliable if intermittently fetching a file in one thread while playing another already ram cached file.

=)
Rod
Back to top
Steve Conner
Wed Feb 13 2013, 11:18AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I'll try winding it up to 850MHz and report back! :)

I'm using MPD as my player. I don't know how I would make it cache things in a RAM disk. I suspect it already caches quite a lot of audio in ordinary RAM. If that got swapped out, things could indeed get nasty.

I'm wondering whether I can get the entire OS to run out of a ramfs, like our Windows CE platform does at work. When you power it up, the bootloader copies the whole OS image from flash into RAM, and executes it from there. The flash is never touched after that, except for a small partition that I use as a FAT formatted drive to store field-upgradeable code and calibration data.

Raspbian is far bigger than our 12MB image, but then again the Pi has lots more RAM than our embedded system.
Back to top
Carbon_Rod
Fri Feb 15 2013, 08:37AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Just about every LiveCD uses the squashfs + chroot, but it depends how much room you need.
Link2

Some people who only need the bare kernel plus a few programs will simply create a larger <100MB custom initramfs image that loads at boot time. Quite common for PXE booting anti-virus software for example.

Back to top
Conundrum
Sun Feb 17 2013, 08:50AM
Conundrum Registered Member #96 Joined: Thu Feb 09 2006, 05:37PM
Location: CI, Earth
Posts: 4059
What about bypassing the SD altogether and raw booting directly from the pins the network SoC uses with an external microSD reader.. ?
Ought to work maybe?
Back to top
Hon1nbo
Thu Mar 12 2015, 03:36PM
Hon1nbo Registered Member #902 Joined: Sun Jul 15 2007, 08:17PM
Location: North Texas
Posts: 1040
(reviving the dead, both this post and my account activity!)

Turns out, they now make an add-on for the Pi that has some good Wolfson DACs on it. IT will max out the Pi's performance if you don't do out of the box tweaks, but it works.

Link2

This is actually similar to the original DAC back when I planned the project. I have since had little time to do much with it, along with many other projects outside of classes.
I currently have an iBasso DX90 (was a very generous gift for my graduation), but I am planning to test this combo out as well for some other uses... maybe make a 3D printed enclosure, include a small OLED screen, and package it all. (as I grab my 3D mouse for CAD)
Cheers,

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