Wolfson Audio card with Volumio

Volumio portings supported by community members

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Wolfson Audio card with Volumio

Postby jrubins » Mon Aug 22 2016 01:43

This seems like a long thread, so hopefully some kind soul can help me find the info that I need. :)
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
Random avatar
jrubins
Sunday DIYer
Sunday DIYer
 
Posts: 35
Joined: Sat Feb 20 2016 18:54

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Wolfson Audio card with Volumio

Postby gvasco » Thu Oct 06 2016 12:57

jrubins wrote:This seems like a long thread, so hopefully some kind soul can help me find the info that I need. :)
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.

beano_2278 wrote: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.
https://www.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:

https://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 :)


keldo wrote: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 - http://rpi.autostatic.com/autostatic.gpg.key | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/autostatic-audio-raspbian.list http://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 : https://www.element14.com/community/thr ... 5&tstart=0


To get the DAC working with Volumio 2 check out this thread: https://volumio.org/forum/cirrus-logic-audio-card-element-t2324.html
User avatar
gvasco
Sunday DIYer
Sunday DIYer
 
Posts: 40
Joined: Sun Oct 02 2016 17:59


Re: Wolfson Audio card with Volumio

Postby gvasco » Fri Aug 18 2017 09:25

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
User avatar
gvasco
Sunday DIYer
Sunday DIYer
 
Posts: 40
Joined: Sun Oct 02 2016 17:59


Wolfson Audio card with Volumio

Postby simonrg » Sat Oct 07 2017 13:06

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:
Code: Select all
    {"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 :D, only frustration is I seem to have lost my local music database :( (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:
Code: Select all
softdep arizona-spi pre: arizona-ldo1

3. Download cirrus-ng-scripts.tgz and extract it for example in /home/pi/bin.
Code: Select all
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:
Code: Select all
./Reset_paths.sh
./Playback_to_Lineout.sh
./Playback_to_SPDIF.sh
./Record_from_Linein.sh


5. 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:
Code: Select all
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


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.

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)
Last edited by simonrg on Mon Jan 15 2018 11:49, edited 1 time in total.
Random avatar
simonrg
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Sat Oct 07 2017 12:37


Wolfson Audio card with Volumio

Postby simonrg » Sat Oct 07 2017 20:27

Another update to 2.284 release today 7th October, fixed my database error and left the DAC setting intact. :D
Random avatar
simonrg
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Sat Oct 07 2017 12:37


Wolfson Audio card with Volumio

Postby simonrg » Sat Oct 14 2017 11:30

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
Random avatar
simonrg
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Sat Oct 07 2017 12:37


Wolfson Audio card with Volumio

Postby shano » Sun Nov 05 2017 23:28

Thanks for the guide Simon, got it working :)

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
User avatar
shano
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Tue Dec 17 2013 12:18
Location: Dublin, Ireland


Wolfson Audio card with Volumio

Postby gvasco » Sun Nov 05 2017 23:48

shano wrote:Thanks for the guide Simon, got it working

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”
User avatar
gvasco
Sunday DIYer
Sunday DIYer
 
Posts: 40
Joined: Sun Oct 02 2016 17:59


Wolfson Audio card with Volumio

Postby shano » Tue Nov 07 2017 09:29

Terrific thanks gvasco.
That worked.
I didn't have the issue with distortion and found that volume at 80 was about right for me...
User avatar
shano
Sunday DIYer
Sunday DIYer
 
Posts: 36
Joined: Tue Dec 17 2013 12:18
Location: Dublin, Ireland


Wolfson Audio card with Volumio

Postby simonrg » Mon Jan 15 2018 11:53

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.
Random avatar
simonrg
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Sat Oct 07 2017 12:37

Previous

Return to Community portings

Who is online

Users browsing this forum: No registered users and 1 guest