Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual Sound Card Setup [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sat May 27, 2006 6:40 am    Post subject: Dual Sound Card Setup [SOLVED] Reply with quote

I am planing on setting up my box with a dual sound card setup.

Currently i am using an audigy as sound card:
Code:
01:0b.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
01:0b.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 03)
01:0b.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port


Code:
Card: Audigy 1 [SB0090]                 
Chip: TriTech TR28602


I am using the kernel 2.6.16.16 alsa drivers compiled staticly and not as modules.

I also have an onboard sound card that i would like to setup/use and if possible the idea is to be able to use both at the same time.
I would like to use 1 sound card for some programs and another for other programs.

the onboard sound card is:
Code:
Intel High Definition
C-Media CMI9880 7.1


and the kernel driver available seems to be:
Code:
<> Intel HD Audio

Say Y here to include support for Intel "High Definition                                                                                   
  │ Audio" (Azalia) motherboard devices.                                                                                                         
  │                                                                                                                                               
  │ To compile this driver as a module, choose M here: the module                                                                             
  │ will be called snd-hda-intel.                                                                                                               
  │                                                                                                                                               
  │ Symbol: SND_HDA_INTEL [=n]                                                                                                                   
  │ Prompt: Intel HD Audio                                                                                                                       
  │   Defined at sound/pci/Kconfig:320                                                                                                           
  │   Depends on: !M68K && SOUND!=n && PCI && SND                                                                                                 
  │   Location:                                                                                                                                   
  │     -> Device Drivers                                                                                                                         
  │       -> Sound                                                                                                                               
  │         -> Advanced Linux Sound Architecture                                                                                                 
  │           -> Advanced Linux Sound Architecture (SND [=y])                                                                                     
  │             -> PCI devices                                                                                                                   
  │   Selects: SND_PCM                                                                                                                             
  │                                                   


Questions :

a: can this dual setup be done with no problems and fully working ?
b: can anyone confirm if the kernel driver works with the onboard sound card?
c: can i use both sound cards at the same time with no problems and setup for different applications?

Thank you
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244


Last edited by HeXiLeD on Fri Aug 04, 2006 5:06 am; edited 2 times in total
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Sat May 27, 2006 2:23 pm    Post subject: Reply with quote

Hey there,

Well at first glance here: http://www.alsa-project.org/alsa-doc/index.php?vendor=vendor-C-Media#matrix

I'd guess that it may be tricky to get working.

I am curious as why use 2 sound cards ? Could you elaborate as to why you'd want to do this ?

I have onboard and I bought a audigy 2zs and I just disabled the onboard becuase it is crappy compared to the card.

-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sat May 27, 2006 5:08 pm    Post subject: Reply with quote

Well the reason why i would like to have it working is mostly due to the fact that all my audigy inputs/outputs are taken and i need a few more. ( i know i could use a jack spliter but i also would like to have more hardware working)
Many of my posts are hardware related because i would like to see most of it working with linux and see how far it can be pushed.

Part of the usage for this card is, as i said above, to try to have diffieent programs using a different card.

Lets say; xmms uses the audigy and vlc uses the C-media onboard card.

There is also another detail about my alsa. If i raise the volume to the max with some aplications such as xmms the sound gets a bit static and noisy. I always have alsa PCM volume around 80% and xmms around 80% too if i want to see how high can i go with the master volume without causing sound distortion. ( i wonder why this happens ).
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Sat May 27, 2006 8:06 pm    Post subject: Reply with quote

Hmmm,

Sounds like someone is going for ghetto 7.1 surround sound. The other problem you may have is actually having proggys specifically target a card. My best *guess* leads me to believe that sound from proggys is achieved not throught direct interaction w/ hardware but w/ sound servers like alsa, arts or esd.

BTW, I also like pushing linux as hard/far as I can, I am just quite curious as to your intent here. So, I may type rude, but I am not trying to be.

-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sat May 27, 2006 9:32 pm    Post subject: Reply with quote

well... my current speakers are 5.1... and according to what i have read 7.1 for the 'regular' user is not really worthy.
But still it would be cool to have this working.
Quote:

sound from proggys is achieved not throught direct interaction w/ hardware but w/ sound servers like alsa, arts or esd.


probably, i have to check that too and if true... it might be an issue to run both cards at the same time with alsa.

i guess that if it happens that way, i can try alsa for the audigy and esd.
i was thinking about something like :

audigy being /dev/dsp1
cmedia being /dev/dsp2


and then i could setup each media application to use a specified /dev/dsp*

or simply choose the desired card in the program used like we can see here

however this is all new ground here for me and currently time available for nixing ... is almost none.

Today i recompiled the kernel for a few things and enabled the onboard sound in the bios.
It was a surprise for me to see that i can turn on the onboard audio card to be AC97 or Intel Audio.

currently as:
Code:
0:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)

_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Sun May 28, 2006 4:12 am    Post subject: Reply with quote

Quote:

i guess that if it happens that way, i can try alsa for the audigy and esd.
i was thinking about something like :

audigy being /dev/dsp1
cmedia being /dev/dsp2



Hmmmm. Except that esd need alsa to run. I made it sound like they are all separate from one another, but they really are not. Again, if you can get this figured out, I'd be super curiouse.

-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jun 16, 2006 6:37 am    Post subject: Reply with quote

Blue-Steel wrote:
Quote:
sound from proggys is achieved not throught direct interaction w/ hardware but w/ sound servers like alsa, arts or esd.


ALSA provides low-level sound drivers, not high-level sound servers like arts or esd.

Blue-Steel wrote:
it might be an issue to run both cards at the same time with alsa.


No, I have two sound cards running with ALSA simultaneously.

Blue-Steel wrote:
audigy being /dev/dsp1
cmedia being /dev/dsp2


And that should work just fine.
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Fri Jun 16, 2006 10:40 am    Post subject: Reply with quote

Philantrop wrote:
No, I have two sound cards running with ALSA simultaneously.

Can you explain more of the details of your setup? Especially the alsa configuration? I'd like to use my USB headset and speakers simultaneously, but so far I can only make one or the other work.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jun 16, 2006 11:02 am    Post subject: Reply with quote

Uhm, well, gladly if I knew what you'd like to know. :-)

I simply compiled the ALSA kernel drivers for both cards as modules and they get loaded at boot time. I have (a)dsp devices for both of them as well as mixers and the rest of the gang. I can use them to my heart's content. :-)

It simply works for me but if you have specific questions I'll gladly elaborate on them.
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Fri Jun 16, 2006 1:01 pm    Post subject: Reply with quote

Quote:
ALSA provides low-level sound drivers, not high-level sound servers like arts or esd.


Sure, but one can have sounds with just ALSA and not arts and not esd. In that regard, ALSA is sort of like a sound server.
But that is a point not worth going any farther on.

Quote:
No, I have two sound cards running with ALSA simultaneously.


I still don't understand the point of why one would want to do that. But the other 1/2 of the requirement is being able to have some proggys use one card while other proggys use another card. That is something I have never thought of doing and am quite curious on how that would get done.


-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jun 16, 2006 2:30 pm    Post subject: Reply with quote

scoon wrote:
Quote:
No, I have two sound cards running with ALSA simultaneously.

But the other 1/2 of the requirement is being able to have some proggys use one card while other proggys use another card. That is something I have never thought of doing and am quite curious on how that would get done.


Pretty easily: For applications that can use a(n) (a)dsp device directly, configure them to use one or the other. It's possible, too, to start artsd with the "-D" option to run on a specific sound device. I guess the same is possible with esd (which I don't use).
Back to top
View user's profile Send private message
scoon
l33t
l33t


Joined: 23 Aug 2003
Posts: 747
Location: Philadelphia, PA

PostPosted: Fri Jun 16, 2006 3:32 pm    Post subject: Reply with quote

Whew, that sounds like a lot of work to me. Thanks for the response tho.

-scoon
_________________
Hope this helps........
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Sun Jul 30, 2006 7:38 pm    Post subject: Reply with quote

well i had this working a while ago (in my last post) and didnt even noticed.
this is very simple to do.

Conclusion:
2 Sound cards

1: pci - Multimedia audio controller: Creative Labs SB Audigy (rev 03)
2: onboard - Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)

kernel support:

Code:
<*> Sound card support
 Advanced Linux Sound Architecture  --->
      <*> Advanced Linux Sound Architecture 
      <*>   OSS Mixer API
      <*>   OSS PCM (digital audio) API
      [*]     OSS PCM (digital audio) API - Include plugin system
      PCI devices  --->
      <*> Emu10k1 (SB Live!, Audigy, E-mu APS)\
      <*> Intel HD Audio


$ almixer -help
This would be : $ alsamixer -c 0 (for the audigy) and $ alsamixer -c 1 ( for the intel audio)

After this we can choose which card we want to use for which application in the application menu/preferencies/options.
Ie:
audigy being /dev/dsp1
cmedia being /dev/dsp2


Here is an example with xmms

This topic is solved.
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum