On Jul 26, 2017, at 17:42, drew Roberts <[email protected]> wrote:
> rdalsaconfig seems to "choose" sound cards by their number and not by their
> "name" which is fine until the order changes and then the config is not valid.
>
> what is the current proper way to "force" the sound cards into a certain
> order on centos 7?
>
> For some reason, I an struggling to find the info needed for centos 7. I see
> info for centos 5.
>
> /etc/modprobe.d/alsa.conf?
>
> If so,what should go in there for centos 7?
You can lock it down by name in ‘/etc/asound.conf’. First, run RDAlsaConfig
and get things set the way you want. Then, do
cat /proc/asound/cards
to get a list of sound cards by number. It will look something like:
*** snip snip ***
0 [M1010LT ]: ICE1712 - M Audio Delta 1010LT
M Audio Delta 1010LT at 0xd040, irq 19
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf6130000 irq 31
2 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf6080000 irq 17
3 [ASI6685 ]: ASIHPI - AudioScience ASI6685
AudioScience ASI6685 0
*** snip snip ***
Then open up /‘etc/asound,conf’ in a text editor. It will look something like:
*** snip nip ***
# *** Start of Rivendell configuration generated by rdalsaconfig(1) ***
pcm.rd0 {
type hw
card 1
device 0
}
ctl.rd0 {
type hw
card 1
}
# *** End of Rivendell configuration generated by rdalsaconfig(1) ***
*** snip snip ***
wherever you see ‘card <n>’, replace <n> with the name of the device. For
example, in this case the resulting file would look like:
*** snip snip ***
# *** Start of Rivendell configuration generated by rdalsaconfig(1) ***
pcm.rd0 {
type hw
card PCH
device 0
}
ctl.rd0 {
type hw
card PCH
}
# *** End of Rivendell configuration generated by rdalsaconfig(1) ***
*** snip snip ***
Save it and restart the Rivendell service:
service rivendell restart
Now it won’t matter if the ‘PCH’ device gets a different number at boot up, as
you’re referring to it by name.
> Fred, for the future, would there be any way to have rdalsaconfig save the
> settings by name rather than number?
Agreed, ‘twould be a Good Thing.
Cheers!
|----------------------------------------------------------------------|
| Frederick F. Gleason, Jr. | Chief Developer |
| | Paravel Systems |
|----------------------------------------------------------------------|
| A room without books is like a body without a soul. |
| -- Cicero |
|----------------------------------------------------------------------|_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev