Hi everyone,
I have finally managed to get my N3 to work as a usb DAC in Linux. If anyone else is having trouble with this the key step for me was to change my udev rules so that pulseaudio does not try to use the N3, this allows alsa to use the device directly.
First you will need to find out where your udev rules are stored, this is usually /etc/udev/rules.d/
In this folder create (or edit) a file called 89-pulseaudio-usb.rules and make sure it contains the lines:
Code:
ATTRS{idVendor}=="2d87", ATTRS{idProduct}=="001a", ENV{PULSE_IGNORE}="1"
ATTRS{idVendor}=="2d87", ATTRS{idProduct}=="001a", GROUP="users"
The first line ensure pulseaudio does not try to grab the N3, the second line (which may not be needed) sets up permissions for the this device - it sets the devices group to "users" this means that all members of the "users" group should be able to access it (you may want check which groups your user is a member of to ensure that you will be able to access the N3).
After creating this file and rebooting the computer everything should (mostly) work. You will not be able to use this device through pulseaudio so only programs that use alsa will work - I have had success with DeadBeef, mpd and mopidy music players. Sometimes when I plug the N3 into the computer it will not work straight away - so far simply unplugging the N3 and restarting it seems to do the trick.
It would seem to me that the N3 sometimes gets "messed up" in the sense that when a program tries to play music through it as a usb DAC in the "wrong way" (whatever that might be, for me using aplay with the incorrect settings seems to do the job) the N3 goes into a state where it refuse to work as usb DAC until it is restarted. It would be great
@CayinSupport could look into this and improve Linux support in future firmware releases. I accept that this might not be entirely Cayin's fault, audio on Linux is a fickle beast! That being said other usb audio devices I own do work without any of this faff and are literally plug and play (even with pulseaudio).
Regardless I am very pleased with the N3 especially as now all of its features are working for me. It would be great if Cayin could iron out some firmware related issues - particularly the click in between tracks in gapless mode which I know a few people on here are experiencing.