LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-02-2003, 11:30 AM   #1
PrivatePanic
LQ Newbie
 
Registered: Aug 2003
Location: Muenster, Germany
Distribution: Slackware 9.0
Posts: 3

Rep: Reputation: 0
ALSA Problem: 2 soundcards, wrong order


Hi everybody!

I've got a problem with ALSA, I searched the forums here and the different ALSA-FAQ's and HowTo's but I didn't find a solution yet

Here's my situation:

I've got two soundcards, a Soundblaster Live! Platinum and an ESS Solo1 compatible card.

Both cards seem to work, my output of cat /proc/asound/cards is:

Code:
0 [Solo1          ]: ES1938 - ESS ES1938 (Solo-1)
                     ESS ES1938 (Solo-1) rev 0, irq 3
1 [Live           ]: EMU10K1 - Sound Blaster Live!
                     Sound Blaster Live! (rev.7) at 0xd400, irq 9
But this output also contains my problem: the Solo1 is card 0 and the SB Live is card 1. I want it the other way round.

My modules.conf:

Code:
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

options snd snd_major=116 snd_cards_limit=3 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0

# Creative SoundBlaster Live! Platinum
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

# ESS Solo1
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

# ALSA portion
alias snd-card-0 snd-card-emu10k1
options snd-card-0 snd_enable

alias snd-card-1 snd-esssolo1


alias char-major-195 nvidia
I thoughed to set the order of the cards it'd suffice to edit the aliases (As you can see I made the Soundblaster Live snd-card-0 and the solo1 snd-card-1, but this doesn't work as I mentioned)

How can I set the SB Live to be card 0?

Thanks in advance,

PrivatePanic
 
Old 09-02-2003, 03:05 PM   #2
blakerwry
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1, knoppix
Posts: 22

Rep: Reputation: 15
i think changing the alias will work.. but remember to keep the correct slot (sound-slot-0)

if that doesn't work you can try changing the order the modules load in or changing the order of the cards on the PCI bus.
 
Old 09-02-2003, 05:48 PM   #3
PrivatePanic
LQ Newbie
 
Registered: Aug 2003
Location: Muenster, Germany
Distribution: Slackware 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
i think changing the alias will work..
No, I already changed the aliases! Before, it was

Code:
# ALSA portion
alias snd-card-0 snd-esssolo1

alias snd-card-1 snd-card-emu10k1
options snd-card-1 snd_enable
and it didn't work, and I swapped the aliases and it doesn't work, too.


Quote:
you can try changing the order the modules load in or changing the order of the cards on the PCI bus.
Excuse my ignorance, but how can I do these things?

Thanks for your reply, if you'd help me further I'd be very grateful

PrivatePanic
 
Old 09-03-2003, 10:45 AM   #4
PrivatePanic
LQ Newbie
 
Registered: Aug 2003
Location: Muenster, Germany
Distribution: Slackware 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry for bumping... but I just can't imagine I'm the first one with this kind of problem

Anyone can help me?

How can I change the order how the two modules are loaded during startup? They're ALSA drivers, as I mentioned, and both seem to load correctly.

I get sound without problems out of the Solo 1 card, alsamixer works and stuff. I just want the other card to be the 1st card used, and be the card used for the normal KDE sound output.

I really hope someone can help me I also can post my bootlog, not just now as I'm at work atm

Later,

PrivatePanic
 
Old 09-04-2003, 02:15 PM   #5
blakerwry
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1, knoppix
Posts: 22

Rep: Reputation: 15
For example, if your modules.conf were this:
Code:
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

options snd snd_major=116 snd_cards_limit=3 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0

# Creative SoundBlaster Live! Platinum
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

# ESS Solo1
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

# ALSA portion
alias snd-card-0 snd-card-emu10k1
options snd-card-0 snd_enable

alias snd-card-1 snd-esssolo1


alias char-major-195 nvidia
Then the Live would be in PCI slot 0 (probably the top PCI slot on the mobo) and would load 1st.


The ensoniq would be in slot 1 (2nd PCI slot from the top.. if it's onboard then it is probably shared w/ the second PCI slot) and would load second.



If you change the order of things in the modules file so that the ensoniq apears 1st then it's drivers will load 1st and vise-versa.

example:

Code:
# ESS Solo1
alias sound-slot-1 snd-card-0
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss

# Creative SoundBlaster Live! Platinum
alias sound-slot-0 snd-card-1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss


# ALSA portion
alias snd-card-0 snd-esssolo1

alias snd-card-1 snd-card-emu10k1
options snd-card-0 snd_enable
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Soundcards in ALSA jp_ Slackware 7 12-11-2006 04:31 PM
setting up two soundcards with alsa. shorty_boy Linux - Software 0 06-29-2005 08:22 PM
Configure Two soundcards, ALSA...How? Outabux Debian 0 12-15-2004 01:48 PM
Two soundcards and ALSA josiah Linux - Hardware 0 09-11-2004 03:57 PM
Wrong soundcards order Bothkill Slackware 11 07-22-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration