Hey Denis!
Ok I'll try it! Thank you!
You're welcome. Here might be a better real world example using an onboard chip with analog and hdmi audio;
[command]: aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [U28E590]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Note that the analog is setup as 'card 1' and I want that to be the default as I have no use for hdmi audio. In this case I simply editted /etc/asound.conf to read;
--- my /etc/asound.conf for analog audio ---
defaults.pcm.card 1
defaults.ctl.card 1
--------------------------------------------
Also apps like mpg123 can output to different alsa cards from the commandline without changing defaults in asound.conf. That might be more along the line of what you're after.
Life is good,
Maurice
-o -o -o -o -o o- -o o- o- -o o- -o -o o- o- -o
(\ (\ (\ (\ (\ /) (\ /) /) (\ /) (\ (\ /) /) (\
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... Fidonet 4K - You load sixteen penguins and what do you get?
--- GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
* Origin: One of us @ (1:153/7001.2989)