No output device in iris

I use XMOS USB audio card and here is service status

● mopidy.service - Mopidy music server
     Loaded: loaded (/lib/systemd/system/mopidy.service; disabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-07-22 23:10:03 CST; 2s ago
    Process: 2834 ExecStartPre=/bin/mkdir -p /var/cache/mopidy (code=exited, status=0/SUCCESS)
    Process: 2835 ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy (code=exited, status=0/SUCCESS)
   Main PID: 2836 (mopidy)
      Tasks: 11 (limit: 16609)
     Memory: 34.7M
        CPU: 482ms
     CGroup: /system.slice/mopidy.service
             └─2836 /usr/bin/python3 /usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf

Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.__main__ Disabled extensions: musicbox_webclient, dleyna, mpris
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
Jul 22 23:10:03 pve mopidy[2836]: INFO     [Audio-2] mopidy.audio.actor Audio output set to "alsasink device=hw:1,0"
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend
Jul 22 23:10:03 pve mopidy[2836]: INFO     [IrisFrontend-7] mopidy_iris.core Starting Iris 3.58.0
Jul 22 23:10:03 pve mopidy[2836]: INFO     [HttpFrontend-9] mopidy.http.actor HTTP server running at [::ffff:0.0.0.0]:2680
Jul 22 23:10:03 pve mopidy[2836]: INFO     [MainThread] mopidy.commands Starting GLib mainloop

aplay output

root@pve:/etc/mopidy# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: DSD [HIFI DSD], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

mopidy.conf tried:
[audio]
output = alsasink device=hw:1,0

or
[audio]
output = autoalsasink device=hw:1,0

Both of them not work, also tried change to hw:0,0 still not work

I runs on PVE of Debian distribution

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 1: DSD [HIFI DSD], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

so I added these in /etc/asound.conf

pcm.!default {
 type hw
 card 1
}

ctl.!default {
 type hw
 card 1
}
root@pve:~# aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1349: Channels count non available

Seems audio test OK but still no output device in iris

Can you show the part of the log when you try and play something. If there’s a problem opening the alsa device it should log an error at that point.

Also, you keep saying “no output device in Iris”. Do you really mean that because iris itself is a webclient running in a web browser and there will be no output in the browser from Mopidy (unless you are trying to use snapcast but that’s something completely different to the setup you are describing here). Only the Mopidy server process will output audio.

Not just no output device, but here is an error when I test with aplay:

aplay: set_params:1349: Channels count non available

Seems the asound.conf not correct, so I use

pcm.!default {
 type plug
 slave {
 pcm "hw:1,0"
 }
}

to replace

pcm.!default {
 type hw
 card 1
device 0
}

Now aplay /xxx/test.wav works well, seems my problem solved here, but I don’t know why 1st conf works.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.