Hi,
I used to use jackd on-demand with the Alsa backend, but now I only use
ALSA without a sound server. I can't say anything about pulseaudio or,
in your case, pipewire, except that I can give you some tips on the ALSA
backend.
It is possible, with some limitations, to predefine how the sound
devices should be integrated.
• rocketmouse@archlinux ~
$ cat /etc/modprobe.d/alsa-base.conf
# ALSA module ordering
options snd slots=snd_hdspm,snd_ice1712,snd_ice1712
In my case, /etc/modprobe.d/alsa-base.conf reserves card 0 for an hdspm
card, car1 and card 2 for an ice1712 card each. An activated onboard
device would thus become card 3, and if I were to plug in a USB audio
device after booting, it would become card 4.
There is already a problem here: if two ice1712 cards were plugged in,
it would not necessarily be clear which of the two cards would become
card 1 or card 2.
To get information about the current status of the ALSA cards, I
recommend using the aplay command.
• rocketmouse@archlinux ~
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDSPMx579bcc [RME AIO_579bcc], device 0: RME AIO [RME AIO]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 1: ALC897 Digital [ALC897 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 3: HDMI 0 [EV2450]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 4: USB [Scarlett 18i20 USB], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
There are no ice1712 cards inserted, and since the slots are reserved, I
don't have card 1 or card 2. The Intel HDMI device becomes card3 because
the USB audio device is never connected. I only connected it now for
demonstration purposes.
What I want is for audio signals to be output via the speakers of my
EV2450 LCD display, so I have created the following file in $HOME:
• rocketmouse@archlinux ~
$ cat .asoundrc
defaults.pcm.card 3
defaults.pcm.device 3
In the past, when I also used jackd, I didn't have .asoundrc.
Without this .asoundrc, I was able to instruct the jackd sound server to
use the hdspm card, for example, by telling it to do so using the
corresponding option in the form of
hw:0,0
or
hw:HDSPMx579bcc,0
However, if you always have a second USB audio device plugged in
alongside the HD-AMP1, I don't know how you can specify the order in
which the two USB devices are connected, as this probably won't work via
/etc/modprobe.d/alsa-base.conf.
I used to be deeply rooted in Linux pro audio, but switched to a
proprietary solution for audio a long time ago.
There may be mechanisms, especially in connection with pipewire, that
allow you to reliably define the HD-AMP1 as the default audio device
even when multiple audio devices are using snd-usb-audio.
It might be advisable to consult an openSUSE user mailing list with more
traffic than this list or to check out
https://lists.linuxaudio.org/postorius/lists/linux-audio-user.lists.linuxaudio.org/.
Regards,
Ralf
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user