Important!
My tech articles—especially Linux ones—are some of the most-viewed on The Z-Issue. If this one has helped you, please consider a small donation to The Parker Fund by using the top widget at the right. Thanks!Recently I was on a mission to make my audio experience on my main desktop more enjoyable. I had previously just used some older Bose AE2 headphones from 2010 plugged in directly to the 3.5mm audio output on the back of my desktop. The sound quality was mediocre at best, and I knew that a combination of a Digital-to-Analogue Converter (DAC) and some better headphones would certainly improve the experience. I also knew that the DAC would probably yield the most noticeable improvements, so I purchased the Big Ego USB DAC from one of my favourite audiophile-grade manufacturers, Emotiva. I have several of their monoblock amplifiers and use their amazing XMC1 for my preamp/processor in my home audio system, so I knew that the quality would be outstanding, especially for the price.
Now, the Big Ego FAQ on the Emotiva website indicates that it should work with all modern computing devices:
Q: What devices can I use the Ego DACs with?
A: The Ego DACs are basically designed to work with any modern “computer device” which can be used
with an external USB sound card, which includes:
1) All modern Apple computers
2) All modern Windows computers (Windows XP, Vista, 7, 8.0, 8.1, and Windows 10)
3) Many Linux computers (as long as they support USB Audio Class 1 or 2)
4) Some Android tablets and phones (as long as they support UAC1 or UAC2)
5) Apple iPhone 5 and iPhone 6 (with the lightning to USB camera adapter)
For many Linux users, the Big Ego probably works without any manual intervention. However, if it doesn’t, it shouldn’t be that difficult to get it working properly, and I hope that this guide helps if you are running into trouble.
Firstly, let’s get something out of the way, and that’s USB Audio Class 2 (UAC2) support within Linux. With all modern distributions (>=2.6 kernel), UAC2 is readily available. It can be validated by looking at the audio-v2.h
file within the kernel source:
# grep 'From the USB Audio' /usr/src/linux/include/linux/usb/audio-v2.h
* From the USB Audio spec v2.0:
Feel free to look at the full file to see the references to the UAC2 specification.
Kernel support:
Secondly, and also speaking to the kernel, if your distribution doesn’t even show the device, you are likely lacking the one needed kernel driver. To see if your system recognises the Emotiva Big Ego, try the following command and look for similar output:
$ lsusb -v | grep 'Emotiva Big Ego'
...
iProduct 3 Emotiva Big Ego
...
The full identifier (Vendor ID and Product ID) from lsusb
is 20ee:0021, even though it doesn’t have a description:
# grep -A 4 /var/log/messages
kernel: usb 9-1: New USB device found, idVendor=20ee, idProduct=0021
kernel: usb 9-1: New USB device strings: Mfr=1, Product=3, SerialNumber=2
kernel: usb 9-1: Product: Emotiva Big Ego
kernel: usb 9-1: Manufacturer: Emotiva
$ lsusb | grep '20ee:0021'
Bus 009 Device 005: ID 20ee:0021
If you don’t get similar output, then you’re lacking kernel support for the Big Ego. The one driver in the kernel that you need is the “USB Audio/MIDI driver” which can be found in the make menuconfig
hierarchy as:
Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
[*] USB sound devices --->
<*> USB Audio/MIDI driver
You can also check your kernel .config for it, or if you have it as a module, load it:
$ grep -i snd_usb_audio /usr/src/linux/.config
CONFIG_SND_USB_AUDIO=y
OR
# modprobe snd-usb-audio
ALSA configurations:
Thirdly, and now that you have the appropriate kernel support, let’s move on to configuring and using the Big Ego with ALSA. You can see a list of device names by using aplay -l
, and it’s best to address the device by name instead of number (because the numbering could possibly change upon reboot). This one-liner should show you precisely how it is named (note that your output may be different based on the available sound output devices on your system):
$ aplay -l | awk -F \: '/,/{print $2}' | awk '{print $1}' | uniq
Intel
NVidia
Ego
With that information, you are ready to set the Big Ego as your default sound output device by editing either .asoundrc
(in your home directory, for a per-user directive) or within the system-wide /etc/asound.conf
(which is the one that I would recommend for most situations). I tried various configurations for my ALSA configuration, but would end up with various oddities. For instance, I ran into a problem where I had sound in applications like Audacious, mpv, and even ALSA’s own speaker-test, but had no sound in other terminal applications like ogg123 or, more importantly, web browsers like Firefox and Chromium. The only configuration that worked fully for me was:
$ cat /etc/asound.conf
defaults.pcm.!card Ego
defaults.pcm.!device 0
defaults.ctl.!card Ego
defaults.ctl.!device 0
After changing your ALSA configuration, you need to reload it, and the method for doing so varies based on your distribution and init system. For me, using Gentoo Linux with OpenRC, I just issued, (as root), /etc/init.d/alsasound restart
and it reloaded. Worst case, just reboot your system to test the changes.
Now that you have it set as the default card, applications like alsamixer and such should automatically choose the Big Ego for your levels and mixing. One thing that I noticed with alsamixer is that there are two adjustable level sliders:
What I am guessing is that, even though they are labelled “Emotiva Big Ego” and “Emotiva Big Ego 1”, they actually correspond to the output that you are using on the DAC. For instance, I am using the 3.5mm headphone jack on the front, and that corresponds to the “Emotiva Big Ego 1” slider, whereas if I were using the line out jack on the back of the DAC (those rhymes are fun 😛 ), I would adjust it using the slider for “Emotiva Big Ego”.
Additional configurations:
Now that we have configured ALSA to use our USB DAC as the default sound card, there are some additional things that I would like for my convenience. I prefer to not use a full desktop environment (DE), but instead favour a more minimalistic approach. I just use the Openbox window manager (WM). One of the things that I like about Openbox is the ability to set my own key bindings. In this case, I would like to be able to control the volume by using the designated keys on my keyboard, regardless of the application that is using the USB DAC. Here are my key bindings, which are added to ~/.config/openbox/rc.xml
:
<!-- Keybinding for increasing Emotiva Big Ego volume by 1 -->
<keybind key="XF86AudioRaiseVolume">
<action name="execute">
<command>amixer set 'Emotiva Big Ego',1 1+</command>
</action>
</keybind>
<!-- Keybinding for decreasing Emotiva Big Ego volume by 1 -->
<keybind key="XF86AudioLowerVolume">
<action name="execute">
<command>amixer set 'Emotiva Big Ego',1 1-</command>
</action>
</keybind>
<!-- Keybinding for muting/unmuting volume -->
<keybind key="XF86AudioMute">
<action name="execute">
<command>amixer set 'Emotiva Big Ego',1 toggle</command>
</action>
</keybind>
Take note that the subdevice is ‘1’ (bold in the code above). That is because, like I showed in the alsamixer output, I’m using the headphone jack (so it corresponds to the secondary volume slider).
Further troubleshooting:
I hope that these instructions help you get your USB DAC working under Linux, but if they don’t, feel free to leave me a comment here. We’ll see what we can do to get it working for you. One last note is that I experienced some rather severe popping and other undesirable sounds when I had the Big Ego plugged into one of the USB2 ports on the back of my tower. Swapping it to its own non-shared USB3 port fixed that problem. So, if you have it plugged into a USB hub or something similar, try isolating it. Remember, it is a sensitive piece of audio equipment, and special considerations may need to be made. 🙂
Cheers,
Zach
6 comments
Skip to comment form
I have been using Ubuntu for a few years, but I have only now started to think about using it as a serious tool for setting up a Linux based DAW, but I don’t understand a single thing you typed. I don’t understand any Paths or how to get from one place to another.
Just give me some stuff to copy and paste into the terminal and I can DO that. But what you typed makes no sense to me.
When I first downloaded Ubuntu Studio I plugged in my Zoom UAC-2 and it Worked with Audacity just fine. The next day I turned it on, and Ubuntu would not even Recognize my Interface. I have no Idea what to try next. I searched the ZOOM website, it seems they have no idea either. Searched the web and all I found was a couple Musicians who suggested turning on the Class Compliant mode, and a couple who said that didn’t work either. I got it working on Windows today, but I have a whole bunch of Software to record with on Ubuntu, and no Working Interface.
Author
Hello Mark,
There isn’t really a way to provide commands for you to just “cut and paste”. Also, I would strongly advise against doing something like that as you wouldn’t know exactly what the commands could do to your system (and code provided by anyone should be checked to make sure that it isn’t malicious). If you need help with your particular device, I’d be willing to help you on an hourly basis.
Cheers,
Zach
I agree there are products that are over priced such as the apple beats but there are also products that provide you what you pay for. Unless you plan on building them yourself items that are built with good quality parts garner 1000s percent markups. You could take the whole market if you built good quality and didn’t charge an arm and a leg for it.
I would like to thank you for this guide I think it might be just what I was looking for to get my USB DAC and HDMI working in gentoo.
Author
You’re welcome. If you have any troubles with getting it set up, please feel free to post here, and we’ll see what we can do. 🙂
Cheers,
Zach
Sad, that people still think they have to run behind “audiophile” nonsense like a religion because they don’t understand the power of psychosomaty/placebos. … And waste loads of money on overpriced crap like Apple, Beats, Bose, Harman Kardon, etc …
But maybe I’m just bitter because I’m not the one ripping them off. XD
Even then, I’d rather spend my money to straight-up make the world better, instead of making crap to rip off people to make the world better. Let’s just skip the “making” part and gimme the money. I’ll say I’ll pray an “aura” over to you.
Author
Hello Barry,
I’m not really sure of your point here. I don’t think that the equipment mentioned in this post is overpriced at all, and the difference in sound quality is readily noticeable. If you think that pursuing better audio quality is a rip off, then you don’t have to partake.
Cheers,
Zach