linux persistent name for soundcard

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

linux persistent name for soundcard

ac6sl
After reboot, I was often having to edit ~/.quisk_conf.py to change name_of_sound_capt between either "hw:1,0" or "hw:2,0", in order to select my USB soundcard.

I found this email https://lists.debian.org/debian-user/2014/02/msg00251.html which explained:

1. "cat /proc/asound/cards"  displays symbolic names, e.g.
     1 [S51            ]: USB-Audio - SB X-Fi Surround 5.1

2. I can then change ~/.quisk_conf.py to use:
name_of_sound_capt = "hw:S51,0"

I expect a more complicated approach, using udev, would be required, if there were more than 1 soundcard of the same type.

-john ac6sl
Reply | Threaded
Open this post in threaded view
|

Re: linux persistent name for soundcard

ahlstromjc
Administrator
Instead of a name like hw:0,1, you can enter a text string as the Quisk name.  Please see the documentation.

Jim
N2ADR
Reply | Threaded
Open this post in threaded view
|

Re: linux persistent name for soundcard

ac6sl
In reply to this post by ac6sl
OK, after rereading http://james.ahlstrom.name/alsa_names.html for the 3rd time in the last 2 days:

"arecord -l" says:
card 2: S51 [SB X-Fi Surround 5.1], device 0: USB Audio [USB Audio]

and this setting in ~/.quisk_conf.py works OK:
name_of_sound_capt = "alsa:SB"

"alsa:SB,0" and "alsa:S51" yield "file does not exist".

Both "hw:S51" and "hw:S51,0" work OK.

-john ac6sl