Unix Technical Forum

Two sound cards - module loading and signal routing

This is a discussion on Two sound cards - module loading and signal routing within the Linux Operating System forums, part of the Unix Operating Systems category; --> Two questions... First, I've got two sound cards in my system: ICH4 845G/GL Chipset AC'97 Audio Controller 0 [I82801DBICH4 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:53 AM
Kevin
 
Posts: n/a
Default Two sound cards - module loading and signal routing


Two questions...

First, I've got two sound cards in my system:

ICH4 845G/GL Chipset AC'97 Audio Controller
0 [I82801DBICH4 ]: ICH - Intel 82801DB-ICH4
Intel 82801DB-ICH4 at 0xffaff800, irq 17
Module: snd-intel8x0

Sound Blaster AudioPCI64V/AudioPCI128
1 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
Ensoniq AudioPCI ENS1371 at 0xdc00, irq 18
Module: snd-ens1371

The first "sound card", number 0, is on the motherboard. I can't
get it to load as card number 1. /etc/modules.conf makes no
difference in this regard. "snd-card-0" and "sound-slot-0" seem
to be ignored. I've tried lots of variants in modules.conf to get
this to work, and tried various orders. Here's a simple case:

alias snd-card-1 snd-intel8x0
alias snd-card-0 snd-ens1371

Is there a way to get this to work?


My second question might be related to the first. If I disable
the on-board sound card, then all but one sound related thing
works for me. Audio in/out works, MIDI in/out works, speakers
work. Playing a CD does not produce sound no matter what the
application (cdp, Kscd, xmcd). If I enable the on-board sound,
then I can play CDs fine, but the output comes out of the
on-board sound card. I'd like to reroute the CD sound to come
out of the SoundBlaster PCI sound card. How can I do this?


Thanks....




FWIW, my loaded sound related modules are these:

snd-seq-midi 6176 0
snd-seq-oss 27648 0
snd-seq-midi-event 4480 2 snd-seq-midi,snd-seq-oss
snd-seq 40592 5 snd-seq-midi,snd-seq-oss,snd-seq-midi-event
snd-ens1371 17508 0
snd-pcm-oss 45992 0
snd-mixer-oss 16384 1 snd-pcm-oss
snd-intel8x0 26572 0
snd-ac97-codec 57936 2 snd-ens1371,snd-intel8x0
snd-pcm 68360 3 snd-ens1371,snd-pcm-oss,snd-intel8x0
snd-timer 19204 2 snd-seq,snd-pcm
snd-page-alloc 6408 2 snd-intel8x0,snd-pcm
gameport 2176 2 snd-ens1371,snd-intel8x0
snd-mpu401-uart 5504 1 snd-intel8x0
snd-rawmidi 17700 3 snd-seq-midi,snd-ens1371,snd-mpu401-uart
snd-seq-device 5640 4 snd-seq-midi,snd-seq-oss,snd-seq,snd-rawmidi
snd 38244 12 snd-seq-oss,snd-seq,snd-ens1371,snd-pcm-oss,\
snd-mixer-oss,snd-intel8x0,snd-ac97-codec,\
snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,\
snd-seq-device
soundcore 6112 2 snd,bttv


--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:53 AM
Edward
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Kevin wrote:

>
> Two questions...
>
> First, I've got two sound cards in my system:
>
> ICH4 845G/GL Chipset AC'97 Audio Controller
> 0 [I82801DBICH4 ]: ICH - Intel 82801DB-ICH4
> Intel 82801DB-ICH4 at 0xffaff800, irq 17
> Module: snd-intel8x0
>
> Sound Blaster AudioPCI64V/AudioPCI128
> 1 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
> Ensoniq AudioPCI ENS1371 at 0xdc00, irq 18
> Module: snd-ens1371
>
> The first "sound card", number 0, is on the motherboard. I can't
> get it to load as card number 1. /etc/modules.conf makes no
> difference in this regard. "snd-card-0" and "sound-slot-0" seem
> to be ignored. I've tried lots of variants in modules.conf to get
> this to work, and tried various orders. Here's a simple case:
>
> alias snd-card-1 snd-intel8x0
> alias snd-card-0 snd-ens1371
>
> Is there a way to get this to work?
>
>
> My second question might be related to the first. If I disable
> the on-board sound card, then all but one sound related thing
> works for me. Audio in/out works, MIDI in/out works, speakers
> work. Playing a CD does not produce sound no matter what the
> application (cdp, Kscd, xmcd). If I enable the on-board sound,
> then I can play CDs fine, but the output comes out of the
> on-board sound card. I'd like to reroute the CD sound to come
> out of the SoundBlaster PCI sound card. How can I do this?
>
>
> Thanks....
>
>
>
>
> FWIW, my loaded sound related modules are these:
>
> snd-seq-midi 6176 0
> snd-seq-oss 27648 0
> snd-seq-midi-event 4480 2 snd-seq-midi,snd-seq-oss
> snd-seq 40592 5
> snd-seq-midi,snd-seq-oss,snd-seq-midi-event
> snd-ens1371 17508 0
> snd-pcm-oss 45992 0
> snd-mixer-oss 16384 1 snd-pcm-oss
> snd-intel8x0 26572 0
> snd-ac97-codec 57936 2 snd-ens1371,snd-intel8x0
> snd-pcm 68360 3 snd-ens1371,snd-pcm-oss,snd-intel8x0
> snd-timer 19204 2 snd-seq,snd-pcm
> snd-page-alloc 6408 2 snd-intel8x0,snd-pcm
> gameport 2176 2 snd-ens1371,snd-intel8x0
> snd-mpu401-uart 5504 1 snd-intel8x0
> snd-rawmidi 17700 3 snd-seq-midi,snd-ens1371,snd-mpu401-uart
> snd-seq-device 5640 4
> snd-seq-midi,snd-seq-oss,snd-seq,snd-rawmidi
> snd 38244 12
> snd-seq-oss,snd-seq,snd-ens1371,snd-pcm-oss,\
> snd-mixer-oss,snd-intel8x0,snd-ac97-codec,\
> snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,\ snd-seq-device
> soundcore 6112 2 snd,bttv
>
>

go to:
http://www.mandrake.tips.4.free.fr/index.html
Click on: Configuration
and read the part:
"Webcam and pci soundcard issue"
This will give a different insight to the problem.
If you find the solution please let us know.
Rgds
--
Edward
Registered Linux User #224802
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 06:53 AM
Paul Colquhoun
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

On 07 Dec 2004 00:42:42 GMT, Kevin <nobody@tek.com> wrote:


| My second question might be related to the first. If I disable
| the on-board sound card, then all but one sound related thing
| works for me. Audio in/out works, MIDI in/out works, speakers
| work. Playing a CD does not produce sound no matter what the
| application (cdp, Kscd, xmcd). If I enable the on-board sound,
| then I can play CDs fine, but the output comes out of the
| on-board sound card. I'd like to reroute the CD sound to come
| out of the SoundBlaster PCI sound card. How can I do this?


If you open up your case, is there a thin cable running from the back
of your CDROM drive? If so, where does it go?

If the cable runs to the motherboard, then reconnect it to your PCI sound
card. If you don't have a cable, try to find one with appropriate
connectors and use it to connect your CDROM and sound card.


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 06:53 AM
Andreas Janssen
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Hello

Kevin (<nobody@tek.com>) wrote:

> First, I've got two sound cards in my system:
>
> ICH4 845G/GL Chipset AC'97 Audio Controller
> Sound Blaster AudioPCI64V/AudioPCI128
>
> The first "sound card", number 0, is on the motherboard. I can't
> get it to load as card number 1. /etc/modules.conf makes no
> difference in this regard. "snd-card-0" and "sound-slot-0" seem
> to be ignored. I've tried lots of variants in modules.conf to get
> this to work, and tried various orders. Here's a simple case:
>
> alias snd-card-1 snd-intel8x0
> alias snd-card-0 snd-ens1371
>
> Is there a way to get this to work?


I don't know how the modules are loaded, but I suppose it is either by
hotplug or harddrake. You can however set the default device for alsa
by editing /etc/asound.conf:

pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}

See the documentation of the alsa project for more info:
http://www.alsa-project.org/alsa-doc...module=Generic


> My second question might be related to the first. If I disable
> the on-board sound card, then all but one sound related thing
> works for me. Audio in/out works, MIDI in/out works, speakers
> work. Playing a CD does not produce sound no matter what the
> application (cdp, Kscd, xmcd). If I enable the on-board sound,
> then I can play CDs fine, but the output comes out of the
> on-board sound card. I'd like to reroute the CD sound to come
> out of the SoundBlaster PCI sound card. How can I do this?


That is probably because the CD drive is not connected to the sound
card, while it is connected to the onboard sound chip. Open the case
and look for a small cable coming out of the CD drive. Some players
like xmms also support a mode that doesn't need the cable (look for
"digital audio extraction").

best regards
Andreas Janssen

--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps-sarge.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 06:53 AM
Kevin
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Andreas Janssen <andreas.janssen@bigfoot.com> wrote:

> I don't know how the modules are loaded, but I suppose it is either by
> hotplug or harddrake. You can however set the default device for alsa
> by editing /etc/asound.conf:
>
> pcm.!default {
> type hw
> card 1
> }
>
> ctl.!default {
> type hw
> card 1
> }
>
> See the documentation of the alsa project for more info:
> http://www.alsa-project.org/alsa-doc...module=Generic


Some variation on the above could probably be made to work. But,
the simple "ctl.!default ..." advertised in the ALSA docs did not
work at all. It's probably my fault, but I couldn't find the
trouble.

> > My second question might be related to the first. If I disable
> > the on-board sound card, then all but one sound related thing
> > works for me. Audio in/out works, MIDI in/out works, speakers
> > work. Playing a CD does not produce sound no matter what the
> > application (cdp, Kscd, xmcd). If I enable the on-board sound,
> > then I can play CDs fine, but the output comes out of the
> > on-board sound card. I'd like to reroute the CD sound to come
> > out of the SoundBlaster PCI sound card. How can I do this?

>
> That is probably because the CD drive is not connected to the sound
> card, while it is connected to the onboard sound chip. Open the case
> and look for a small cable coming out of the CD drive. Some players
> like xmms also support a mode that doesn't need the cable (look for
> "digital audio extraction").


I got the CD playing to work by moving the cable. This was
enough to make me happy, and I've given up on loading modules
in my custom order.

Thanks...

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 06:54 AM
Peter Shaggy Haywood
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Groovy hepcat Kevin was jivin' on 07 Dec 2004 00:42:42 GMT in
alt.os.linux.mandrake.
Two sound cards - module loading and signal routing's a cool scene!
Dig it!

>First, I've got two sound cards in my system:
>
> ICH4 845G/GL Chipset AC'97 Audio Controller
> 0 [I82801DBICH4 ]: ICH - Intel 82801DB-ICH4
> Intel 82801DB-ICH4 at 0xffaff800, irq 17
> Module: snd-intel8x0
>
> Sound Blaster AudioPCI64V/AudioPCI128
> 1 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
> Ensoniq AudioPCI ENS1371 at 0xdc00, irq 18
> Module: snd-ens1371


This is very similar to what I have.

>The first "sound card", number 0, is on the motherboard. I can't
>get it to load as card number 1. /etc/modules.conf makes no
>difference in this regard. "snd-card-0" and "sound-slot-0" seem
>to be ignored. I've tried lots of variants in modules.conf to get
>this to work, and tried various orders. Here's a simple case:
>
>alias snd-card-1 snd-intel8x0
>alias snd-card-0 snd-ens1371
>
>Is there a way to get this to work?


Try adding the following to /etc/modules.conf:

options snd-intel8x0 snd_index=0
options snd-ens1371 snd_index=1

--

Dig the even newer still, yet more improved, sig!

http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 06:55 AM
Kevin
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Peter "Shaggy" Haywood <phaywood@alphalink.com.au.NO.SPAM> wrote:
> >The first "sound card", number 0, is on the motherboard. I can't
> >get it to load as card number 1. /etc/modules.conf makes no
> >difference in this regard. "snd-card-0" and "sound-slot-0" seem
> >to be ignored. I've tried lots of variants in modules.conf to get
> >this to work, and tried various orders. Here's a simple case:
> >
> >alias snd-card-1 snd-intel8x0
> >alias snd-card-0 snd-ens1371
> >
> >Is there a way to get this to work?

>
> Try adding the following to /etc/modules.conf:
>
> options snd-intel8x0 snd_index=0
> options snd-ens1371 snd_index=1


That didn't work either. Some kind person on either the ALSA
users mailing list or on the Linux audio users mailing list clued
me in to the fact that modules.conf is for kernels < 2.5. I'm
running 2.6.7 and 2.6.8, both of which get their info from
modprobe.conf. After I asked my question above, I managed to get
the add-on soundcard to perform all the functions I want at the
moment. I disabled the on-board sound and don't have to face
this issue for a while.

Thanks.....

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 06:55 AM
Dev Mazumdar
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Kevin wrote:

> Peter "Shaggy" Haywood <phaywood@alphalink.com.au.NO.SPAM> wrote:
>
>>>The first "sound card", number 0, is on the motherboard. I can't
>>>get it to load as card number 1. /etc/modules.conf makes no
>>>difference in this regard. "snd-card-0" and "sound-slot-0" seem
>>>to be ignored. I've tried lots of variants in modules.conf to get
>>>this to work, and tried various orders. Here's a simple case:
>>>
>>>alias snd-card-1 snd-intel8x0
>>>alias snd-card-0 snd-ens1371
>>>
>>>Is there a way to get this to work?

>>
>> Try adding the following to /etc/modules.conf:
>>
>>options snd-intel8x0 snd_index=0
>>options snd-ens1371 snd_index=1

>
>
> That didn't work either. Some kind person on either the ALSA
> users mailing list or on the Linux audio users mailing list clued
> me in to the fact that modules.conf is for kernels < 2.5. I'm
> running 2.6.7 and 2.6.8, both of which get their info from
> modprobe.conf. After I asked my question above, I managed to get
> the add-on soundcard to perform all the functions I want at the
> moment. I disabled the on-board sound and don't have to face
> this issue for a while.
>
> Thanks.....
>



If you use Open Sound system you'd have no problems making your ES1371 as the
first device and making intel8x0 as the second device. You can download OSS for
free at http://www.opensound.com/download.cgi



best regards

Dev Mazumdar
4Front Technologies
http://www.opensound.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 06:56 AM
Peter Shaggy Haywood
 
Posts: n/a
Default Re: Two sound cards - module loading and signal routing

Groovy hepcat Kevin was jivin' on 10 Dec 2004 20:13:20 GMT in
alt.os.linux.mandrake.
Re: Two sound cards - module loading and signal routing's a cool
scene! Dig it!

>Peter "Shaggy" Haywood <phaywood@alphalink.com.au.NO.SPAM> wrote:
>> >The first "sound card", number 0, is on the motherboard. I can't
>> >get it to load as card number 1. /etc/modules.conf makes no
>> >difference in this regard. "snd-card-0" and "sound-slot-0" seem
>> >to be ignored. I've tried lots of variants in modules.conf to get
>> >this to work, and tried various orders. Here's a simple case:
>> >
>> >alias snd-card-1 snd-intel8x0
>> >alias snd-card-0 snd-ens1371
>> >
>> >Is there a way to get this to work?

>>
>> Try adding the following to /etc/modules.conf:
>>
>> options snd-intel8x0 snd_index=0
>> options snd-ens1371 snd_index=1

>
>That didn't work either. Some kind person on either the ALSA
>users mailing list or on the Linux audio users mailing list clued
>me in to the fact that modules.conf is for kernels < 2.5. I'm
>running 2.6.7 and 2.6.8, both of which get their info from


Ah! I assumed you were using a < 2.6 kernel since you mentioned
modules.conf.
All you need to do, then, is put the card you want to be the first
one in modprobe.conf before the other one. Here's what I have in my
modprobe.conf relating to sound:

# Sound
alias sound-slot-0 snd-intel8x0
alias sound-slot-1 snd-ens1371
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install \
snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install snd-ens1371 /sbin/modprobe --first-time --ignore-install \
snd-ens1371 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; \
/sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
remove snd-ens1371 { /sbin/modprobe -r snd-pcm-oss; } ; \
/sbin/modprobe -r --first-time --ignore-remove snd-ens1371

--

Dig the even newer still, yet more improved, sig!

http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-18-2008, 06:58 AM
Kevin
 
Posts: n/a
Default SOLUTION - Re: Two sound cards - module loading

Peter "Shaggy" Haywood <phaywood@alphalink.com.au.NO.SPAM> wrote:
> Ah! I assumed you were using a < 2.6 kernel since you mentioned
> modules.conf.


Yeah, I'm starting to catch onto the 2.4 - 2.6 differences. A
lot of the Linux sound and ALSA docs and google ref's on this
stuff still relate to 2.2 and 2.4. I haven't found much on the
2.6 differences within the Linux sound community, yet.

> All you need to do, then, is put the card you want to be the first
> one in modprobe.conf before the other one. Here's what I have in my
> modprobe.conf relating to sound:
>
> # Sound
> alias sound-slot-0 snd-intel8x0
> alias sound-slot-1 snd-ens1371
> install snd-intel8x0 /sbin/modprobe --first-time --ignore-install \
> snd-intel8x0 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
> install snd-ens1371 /sbin/modprobe --first-time --ignore-install \
> snd-ens1371 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
> remove snd-intel8x0 { /sbin/modprobe -r snd-pcm-oss; } ; \
> /sbin/modprobe -r --first-time --ignore-remove snd-intel8x0
> remove snd-ens1371 { /sbin/modprobe -r snd-pcm-oss; } ; \
> /sbin/modprobe -r --first-time --ignore-remove snd-ens1371


This works for me:

alias sound-slot-0 snd-ens1371
alias sound-slot-1 snd-intel8x0
remove snd-ens1371 /sbin/modprobe -r snd-pcm-oss; \
/sbin/modprobe --first-time -r --ignore-remove snd-ens1371
install snd-ens1371 /sbin/modprobe --first-time \
--ignore-install snd-ens1371 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install snd-ens1371 /sbin/modprobe --first-time \
--ignore-install snd-ens1371 && { /sbin/modprobe snd-seq-midi; /bin/true; }
remove es1371 /sbin/modprobe --first-time -r --ignore-remove es1371
install es1371 /sbin/modprobe --first-time --ignore-install es1371
remove snd-intel8x0 /sbin/modprobe --first-time -r --ignore-remove snd-intel8x0
install snd-intel8x0 /sbin/modprobe --first-time --ignore-install snd-intel8x0

This part of the above:

install snd-ens1371 /sbin/modprobe --first-time \
--ignore-install snd-ens1371 && { /sbin/modprobe snd-seq-midi; /bin/true; }

Is due to the fact that ALSA 1.0.6a, which is what's in
Mandrake's kernels for their 10.1 distribution release, has
trouble loading snd-seq-midi reliably, i.e. I've never had
it load at all at boot time. The above line in modprobe.conf
makes snd-seq-midi load whenever snd-ens1371 is loaded.

Now I'm happy. :^)

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com