Wolfson Audio card with Volumio

Can someone provide an image that includes these drivers for the latest Volumio RP? I’d do this myself, however, foloowing the directions at https://www.bostonenginerd.com/posts/getting-the-wolfson-audio-card-working-with-volumio/ is not possible as I have no linux box to move from files around in. Please?

Nobody? At least somebody could provide a step by step insruction of
bostonenginerd.com/posts/ge … h-volumio/
for noobs like us who are not familiar with linux.
Thanks!

Ok, so firstly i’m no linux guru but after a few hours i have been able to take the latest 1.55 release of Volumio and patch in the Wolfson drivers as per this link.
bostonenginerd.com/posts/ge … h-volumio/

And i now have a working setup, all the scripts to set the inputs and outputs are in the \home\use_case_scripts folder so you should be able to set the output you want.

I’ve uploaded the image to my Google drive for anyone wanting to have a play:

drive.google.com/file/d/0B6RHv7 … sp=sharing

I originally put this in an 8Gb card so the image was quite large, however with a quick google i was able to truncate it down to 1.7Gb and then zip it, so fingers crossed it all works :slight_smile:

Thank you!
After much pain with Rune your preconfigured image worked great.
The only issue I had was that the bass was way to hot.
I did manually edit the /etc/mpd.conf as this had reverted due to a change. I also edited /etc/spopd.conf for Spotify.
Trouble is when I rebooted the web UI was blank.
A network scan shows the Pi on line and http service running/responding.
I can SSH using the IP and hostname but no HTTP.

I’m going to revert the two files I edited and see what happens.
I’ll report back.

TL

So the culprit was editing /etc/mpd.conf

From

[code]audio_output {

	 type 		"alsa"
	 name 		"Output"
	 device 	"hw:0,0"
	 dop 	"no"

}[/code]

to

[code]audio_output {

         type           "alsa"
         name           "Output"
         device         "hw:0,0"
         mixer_control  "HPOUT2 Digital"
         mixer_device   "hw:0"
         mixer_index    "0"
         dop    "no"}[/code]

reverting back brought the web ui back on line and I still have volume control but still have too much bass.

Any ideas?

I feel like I’m talking to myself :smiley:

All is working, bass still sounds too heavy. I tried the green line out and the black headphone output.
Maybe the output impedance of the Wolfson is not suitable for headphones??

Anyway hooked up to a monitor and found the problem.
The code that I copied is missing a return it should be:

[code]audio_output {

         type           "alsa"
         name           "Output"
         device         "hw:0,0"
         mixer_control  "HPOUT2 Digital"
         mixer_device   "hw:0"
         mixer_index    "0"
         dop    "no"

}[/code]

If the webui doesn’t show it means that mpd is not able to start…
So something must be wrong with your configuration…
Regarding too much bass, I would surely blame the DAC… But no way to adjust it, since Volumio doesn’t have an equalizer…

Translux

Your journey has just begun! Now if you want to add equalizer functionality to Volumio see here:

equalizer-t45-20.html

Some folks say that it is better to have bit-perfect music from Volumio and use a filter network with your speaker system. It is my experience that alsa equalization often gives better results than low quality filter components. Your opinion may differ if you can afford the very best filter components.

Hi all.

Did anyone already tried to use the official 1.55 image for PI and to add a new kernel (with Wolfson drivers) by following this procedure ? :
wget -q -O - rpi.autostatic.com/autostatic.gpg.key | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/autostatic-audio-raspbian.list rpi.autostatic.com/autostatic-au … pbian.list
sudo apt-get update
sudo apt-get install cirrus-config
sudo reboot
Playback_to_Lineout.sh

It worked for me on a PI2 with a Cirrus Logic card.
Original info : element14.com/community/thr … 5&tstart=0

If you’re still interested you can follow this post: https://www.element14.com/community/message/201098/l/re-driver-fixes-and-updates-to-kernel-31816-and-405#201098
It explains how to get the Wolfson Cirrus DAC running on Volumio RC2 hotfix.

This seems like a long thread, so hopefully some kind soul can help me find the info that I need. :slight_smile:
I’m trying to add analog and digital input to my pi and has a digital audio output. It seems the Wolfson/Cirrus DAC is the only one that does all 3.
So, my question is : does this dac work? Seems like yes after some tweaking. What about the audio inputs, do those work in Volumio?

Thanks,
JR

The short answer is no, at the moment there isn’t any official support for the Wolfson/Cirrus RPi DAC on either the original Volumio or Volumio2.

Long story if you don’t are not intimidated to delve in a Terminal console and change things around you can get support in both Volumios.

For support the original Volumio check previous posts on this thread where people have posted a few links detailing the procedure to get the DAC working on the original Volumio.

To get the DAC working with Volumio 2 check out this thread: https://volumio.org/forum/cirrus-logic-audio-card-element-t2324.html

Just thought I’d update this for any future reference of anyone who might still be interested in using this sound card with volumio.

Since then a set of drivers built by HiasSoft has been integrated to RPi Kernel 4.9 and this Kernel has since been integrated into volumio.

Although activating the DAC is still not possible form within the WebUI, hopefully that will come soon, it is still quite breezy overall over ssh. Just need to alter and add a couple of files for which the instructions can be found in the link below.

www.horus.com/~hias/cirrus-driver.html

It would be great if anyone with advanced knowledge of the inner workings of this DAC could develop a plugin that could allow one to use these from within the UI in an easier to understand format. But you don’t really need it to start enjoying the wonderful sound that is output by this DAC.

Sent from my iPad using Tapatalk Pro

Just updated to 2.282 released 6th October and now have Wolfson Audio card working on a Raspberry Pi 1 B, great software.

It was fairly easy to do, I previously had it working manually following the instructions here http://www.horus.com/~hias/cirrus-driver.html and selecting the DAC in the webUI. Making sure I had a back up of my working SD card, needless to say on updating through the webUI and restart, I had no sound.

All I had to do was add a line to /volumio/app/plugins/system_controller/i2s_dacs/dacs.json after RPi-DAC:

{"id":"rpi-cirrus","name":"RPi-Cirrus","overlay":"rpi-cirrus-wm5102","alsanum":"1","mixer":"","modules":"","script":"","needsreboot":"yes"},
Restart and then I had sound and volume control works on Youtube and Spotify :smiley:, only frustration is I seem to have lost my local music database :frowning: (next thing to fix).

I assume that if you start from a clean system then doing the above will not result in sound, but if after your first reboot having selected the Wolfson card, then carry out some of the instructions on http://www.horus.com/~hias/cirrus-driver.html please check on the original that I have copied correctly i.e.

  1. ssh into your Volumio, log in as volumio default password volumio
  2. Create a file /etc/modprobe.d/cirrus.conf with the following content i.e. sudo nano /etc/modprobe.d/cirrus.conf:
softdep arizona-spi pre: arizona-ldo1
  1. Download cirrus-ng-scripts.tgz and extract it for example in /home/pi/bin.

cd ~ wget http://www.horus.com/~hias/tmp/cirrus/cirrus-ng-scripts.tgz mkdir bin cd bin tar zxf ../cirrus-ng-scripts.tgz
4. You have to start the appropriate scripts before you can use the card. For example:

./Reset_paths.sh ./Playback_to_Lineout.sh ./Playback_to_SPDIF.sh ./Record_from_Linein.sh

  1. Then check on http://www.horus.com/~hias/cirrus-driver.html to see if there is anything else you want to change and check the troubleshooting if it doesn’t work for you.

My /boot/config.txt now contains (# removed from dtparam line 6th October 19 - no longer needed in fact causes HW1:0 missing error)

[code]initramfs volumio.initrd
gpu_mem=16
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1

Volumio i2s setting below: do not alter

dtoverlay=rpi-cirrus-wm5102[/code]

Needless to say all errors are mine, all great stuff is down to the Team for Volumio and HIAS the Wolfson insights.

Hope this works for others.

Edit: added need for sudo to create cirrus.conf. If you delete user data then you will need to complete steps 1-5 before running the first run wizard, i.e. delete user data reboot, log in as volumio, do steps 1-5 and then go to the web gui to do the first run wizard.

I have also added gvasco’s instructions from this thread for adding volume control, thanks.

Another update to 2.284 release today 7th October, fixed my database error and left the DAC setting intact. :smiley:

After update to 2.285 all is ok, apart them dtparam=audio=on, which changes the numbering of the playback hardware devices, so it needs to be commented out before reboot - #dtparam=audio=on

Thanks for the guide Simon, got it working :slight_smile:

Only thing I can’t seem to change is the volume via the UI, it looks like it’s set at 100%
Is this to be expected or do you know a way it can be configured?
I have tried both DSD playback options

It’s unrelated to DSD settings. By default I think Volumio is set to use software volume control. However you can change this as follows:

In “Playback Options” scroll down to “Volume Options”

In mixer type select:
“Software” for volume control done by the software.
“Hardware” to use the integrated hardware volume control only possible for headphone, line out or speaker outputs. Coax out doesn’t seem to have Hardware volume control.

Then in “Mixer Controll Name” select:
“HPOUT1 Digital” for headphone output volume controll
“HPOUT2 Digital” for line out output volume control (p.s. any volume setting on the Web GUI above 40 may cause audible distortion as values higher than this will add gain so I recommend setting “Max Volume Level” to this or the highest your music can withstand without getting distorted)
“SPKDAT1 Digital” for speaker volume control (not sure about this last one since I’ve never used it)

EDIT: changed “interface” to “Web GUI”

Terrific thanks gvasco.
That worked.
I didn’t have the issue with distortion and found that volume at 80 was about right for me…

My 2 systems are now working for Volumio 2.348, but I had to delete user data in order to be able to play NAS tracks without GUI hanging, so I edited previous post and updated the instructions.