Asus Xonar U5 issue in RPI 2B

Hi,
I installed the device in RPI 2 B, Kodi recogniced properly de device and everything seemed ok, but found this issue when I ran alsamixer:
Front slider-> ok
Rear slider-> manage central speaker.
Central slider-> manage rear left speaker.
Subwofer slider-> manage rear right speaker.

On the other side, speaker-test work fine, every speaker sounds with its correct name, these are some outputs.

osmc@pi2:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U5 [ASUS XONAR U5], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U5 [ASUS XONAR U5], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: U5 [ASUS XONAR U5], device 2: USB Audio [USB Audio #2]
Subdevices: 1/1
Subdevice #0: subdevice #0

osmc@pi2:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dmix:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct sample snooping device
hw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Hardware device with all software conversions
default:CARD=U5
ASUS XONAR U5, USB Audio
Default Audio Device
sysdefault:CARD=U5
ASUS XONAR U5, USB Audio
Default Audio Device
front:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
Front speakers
surround21:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
Direct sample mixing device
dmix:CARD=U5,DEV=1
ASUS XONAR U5, USB Audio #1
Direct sample mixing device
dmix:CARD=U5,DEV=2
ASUS XONAR U5, USB Audio #2
Direct sample mixing device
dsnoop:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
Direct sample snooping device
dsnoop:CARD=U5,DEV=1
ASUS XONAR U5, USB Audio #1
Direct sample snooping device
dsnoop:CARD=U5,DEV=2
ASUS XONAR U5, USB Audio #2
Direct sample snooping device
hw:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
Direct hardware device without any conversions
hw:CARD=U5,DEV=1
ASUS XONAR U5, USB Audio #1
Direct hardware device without any conversions
hw:CARD=U5,DEV=2
ASUS XONAR U5, USB Audio #2
Direct hardware device without any conversions
plughw:CARD=U5,DEV=0
ASUS XONAR U5, USB Audio
Hardware device with all software conversions
plughw:CARD=U5,DEV=1
ASUS XONAR U5, USB Audio #1
Hardware device with all software conversions
plughw:CARD=U5,DEV=2
ASUS XONAR U5, USB Audio #2
Hardware device with all software conversions

Is there any way to configure alsamixer to work properly?

Thanks in advance.

I’ve looked around and I don’t think it’s possible to swap channels in amixer/alsamixer. The channels in a USB audio device are in the order FL, FR, FC, LFE, RL, RR which comes from Microsoft. Earlier linux and therefore ALSA uses FL, FR, RL, RR, FC, LFE. So alsamixer assumes the channels are in that order.

For pcm sound, the order can be (and is) swapped in alsa .conf files but there’s no swapping available for the controls.

If it really bothers you, you could remove the channel swapping by editing /usr/share/alsa/pcm/surround51.conf and just swap your rear amp cables with the center/subwoofer on the U5 but there may be a low-pass filter on the LFE output.

If you don’t want that faff, note that you can adjust individually left and right rear (ie centre and subwoofer) in alsamixer using the z, q, e and c keys.

Thanks Grahamh alsamixer keys were enaught for me.