SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
--I've got an issue with Flash sound that only appears depending on the way devices are assigned during boot (I assume). Basically, it breaks down to the following - when flash sound works the output of 'aplay -l' is below:
As you can see, the difference is that flash sound works only when card 0 is the '[HDA ATI SB]' device. My question is how do I force this to always be card 0? I've read some things about .asoundrc but it all is as clear as mud. Since it seems to fluctuate on each boot (sometimes it is assigned to be card 0 and other times it's card 1 or card 2) I'm having a hard time figuring out how to force it to be card 0. More background info is below...
1) I use the onboard audio of my motherboard
2) I have a video card with an HDMI output
3) I have a webcam which is probably the USB audio
I have basically the same setup, I have an PCI soundcard, a USB webcam with microphone, and a video card with a HDMI input. What you need to do is set the order of your soundcards in the /etc/modprobe.d/sound.conf file. See this post for more details http://www.linuxquestions.org/questi...device-713793/. You can also blacklist the hdmi sound module if you are not using your video cards hdmi port. That is what I do since I am not using it and its one less sound device to deal with.
I ended up with a 'sound.conf' file that contains the following:
Code:
options snd slots=snd-hda-intel
Apparently, this forces the correct sound device to be assigned index 0. I've run some tests and powered on/off 5 times without any issues. Hopefully it'll stay that way...
I originally started with a 'alsa.conf' file but that caused something to go wrong and I ended up without any devices.
@Daedra - In order to blacklist your hdmi sound module, did you blacklist the module named 'snd-hda-codec-hdmi' ?
I blacklisted the module snd_hda_intel for my HDMI, but you can try snd-hda-codec-hdmi, that should work.
I thought this was the main sound module (corresponding HDA ATI SB). If I blacklist 'snd-hda-intel', won't my onboard audio disappear too such that no devices will be listed when I query with 'aplay -l'? Since you have an actual PCI sound card (whereas my sound is integrated onto the motherboard), this might be why it works for you...
Yes it is possible, I don't use onboard sound so I don't know. You don't have to blacklist it, that's just what I do.
Ok, fair enough. I think I've rebooted about 10-15 times without any issues now so I'll go ahead and close this out. The 'sound.conf' file was definitely the trick. I thought I had tried this previously but perhaps I had only created an 'alsa.conf' file instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.