Closed millallo closed 3 years ago
At least with KDE you can change audio output device directly in sound settings. Which desktop are you using?
I don't have a desktop, only a CLI server with jellyfin and i would like to use as a player with jellycli also. I found the workaround creating inside the home dir of the jellycli user the file named .asoundrc with this content:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
This overrides the 'default' Alsa card (which usually is 0) to my preferred 1
Thanks
It's probably better to specify the card by name instead of index.
cat /proc/asound/cards
0 [Loopback ]: Loopback - Loopback
Loopback 1
1 [IQaudIODAC ]: IQaudIODAC - IQaudIODAC
IQaudIODAC
2 [vc4hdmi0 ]: vc4-hdmi - vc4-hdmi-0
vc4-hdmi-0
3 [vc4hdmi1 ]: vc4-hdmi - vc4-hdmi-1
vc4-hdmi-1
pcm.!default {
type hw
card IQaudIODAC
}
ctl.!default {
type hw
card IQaudIODAC
}
Perhaps this should be added to the documentation?
Actually, it's even easier to configure this with the environment variable ALSA_CARD
in the container.
sudo podman run \
-it \
--device /dev/snd \
--env ALSA_CARD=IQaudIODAC \
--label "io.containers.autoupdate=registry" \
--name jellycli \
--rm \
--volume jellycli-config:/root/.config:Z \
localhost/jellycli:latest --no-gui
Further granularity for the output device can be configured with ALSA_PCM_DEVICE
. Such as when you want audio to be played through a specific loopback device.
sudo podman run \
-it \
--device /dev/snd \
--env ALSA_CARD=Loopback \
--env ALSA_PCM_DEVICE=0 \
--label "io.containers.autoupdate=registry" \
--name jellycli \
--rm \
--volume jellycli-config:/root/.config:Z \
localhost/jellycli:latest --no-gui
Hi, is it possible to select a specific device for output in Linux? I have these sound cards:
And i would like to use card1 device0 (hw:1,0) which has an SPDIF link to my HiFi system.