LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-21-2006, 10:20 AM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
alsa uses wrong card [post attempt 4]


So I installed slackware two days ago. Somehow the install actually found the two sound cards and set them up in alsa. Very nice. Of course, being that there are two sound cards there was a 50% chance it would get it wrong, which it did. How can I have alsa use the *other* card as the default/main sound card? Thanks.

I used the button above to find similar threads. Their solutions did not work (of course). Tried to go to a url it won't let me say here and got "An error occurred while loading a url I can't say here Could not connect to host an ip I can't say here".

Riiiiight.
 
Old 09-21-2006, 10:21 AM   #2
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
the url i can't say here of course is the alsa site, btw.
 
Old 09-21-2006, 10:25 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
Here's how I set mine up.

With a SB16 and an Audigy 4, I made a file called sound in /etc/modprobe.d/:

Code:
 alias snd-card-0 snd-emu10k1
 alias sound-slot-0 snd-emu10k1
 alias snd-card-1 snd-ens1371
 alias sound-slot-1 snd-ens1371
 options snd-emu10k1 index=0
 options snd-ens1371 index=1
Then mixer controls etc can be accessed with -c switch
 
Old 09-21-2006, 11:19 AM   #4
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 760

Rep: Reputation: 34
I have Alsa compiled into my custom kernel, so I use the following append lines (instead of dive's method for modules - use one or the other of these solutions depending on how you have compiled Alsa, not both):

(In this case, I have an Audigy 2 Notebook PCMCIA card that I want to take precedence over the built-in sound).

Code:
snd-emu10k1.index=0 snd-atiixp.index=1
 
Old 09-25-2006, 11:40 AM   #5
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive
Here's how I set mine up.

With a SB16 and an Audigy 4, I made a file called sound in /etc/modprobe.d/:

Code:
 alias snd-card-0 snd-emu10k1
 alias sound-slot-0 snd-emu10k1
 alias snd-card-1 snd-ens1371
 alias sound-slot-1 snd-ens1371
 options snd-emu10k1 index=0
 options snd-ens1371 index=1
Then mixer controls etc can be accessed with -c switch
How odd. I did not have a directory called "modprobe.d". So I made one. Made a file called sound as you did. Used my two cards in the order I wanted them. Booted.

It didn't work.

Now what?

PS - I'm using the 10.0 version of slackware. I won't be even thinking of upgrading that until everything is working and stable first.
 
Old 09-25-2006, 11:54 AM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by moob8
How odd. I did not have a directory called "modprobe.d".
<snip>

PS - I'm using the 10.0 version of slackware. I won't be even thinking of upgrading that until everything is working and stable first.
You need to find which file to put those commands in then or upgrade to 10.2 ( or wait till 11.0 is released which should be soon ) and then try it because a lot has changed since 10.0 - i.e. different files in different locations, different udev to name but a few.

Last edited by dive; 09-25-2006 at 11:56 AM.
 
Old 09-25-2006, 01:19 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
moob8, you should put that content in /etc/modprobe.conf or /etc/modules.conf, I don't remember which one is used on 10.0. /etc/modprobe.d/ is not used on Slackware (at least not by default..)
Be sure to put the modules your sound cards use if they're not the same as cathectic's (snd-emu10k1 and snd-ens1371)

Last edited by gbonvehi; 09-25-2006 at 01:21 PM.
 
Old 09-25-2006, 01:49 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by gbonvehi
/etc/modprobe.d/ is not used on Slackware (at least not by default..)
modprobe.d is created by udev and/or module-init-tools

Last edited by dive; 09-25-2006 at 01:53 PM.
 
Old 09-25-2006, 09:12 PM   #9
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gbonvehi
moob8, you should put that content in /etc/modprobe.conf or /etc/modules.conf, I don't remember which one is used on 10.0. /etc/modprobe.d/ is not used on Slackware (at least not by default..)
Be sure to put the modules your sound cards use if they're not the same as cathectic's (snd-emu10k1 and snd-ens1371)
Coolness!!!! that was the hint I needed. I put those lines from dive (edited for my two sound cards) in /etc/modules.conf (commented out the lines already in there) and then rebooted. Audio the way I wanted. Excellent. Thank you all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there something wrong with the individual post counter? t3gah LQ Suggestions & Feedback 1 05-04-2005 03:49 PM
wrong login attempt limits jester_69 Linux - General 1 10-13-2003 01:57 PM
ALSA Problem: 2 soundcards, wrong order PrivatePanic Linux - Hardware 4 09-04-2003 01:15 PM
A newbies attempt at installing a vifdeo card driver... AMD Linux - Hardware 3 08-20-2003 03:11 PM
A post attempt on slashdot Larry James General 4 12-07-2000 08:54 PM


All times are GMT -5. The time now is 09:21 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration