Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
two soundcards, dmix, dsnoop & kmix [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hansolocg
n00b
n00b


Joined: 26 Feb 2006
Posts: 22

PostPosted: Mon Aug 28, 2006 7:05 pm    Post subject: two soundcards, dmix, dsnoop & kmix [solved] Reply with quote

Hi,
im want use both my onboard intel8x0 and my old SB live. The SB should be the default however, i only want to use the onboard to playback a second stream. Right now SB live has hw-id 1, the onboard chip id 0
So far the basic audio setup works, but the KDE tools for mixer settings (kmix and kmilo, both 3.5.2) will not use the correct mixer device.

One solution to the problem would obviously be to compile the drivers as modules and autoload them in the wished order at boottime, so that the SB live gets id 0. But that way i would lose all the builtin default alsa-setups for dmix and dsnoop for the onboard sound (which are only used for id0, right?). I still would like to use these, as they worked out better for me than any custom configs in asound.conf and i guess it would be simpler.

So, the question is, is there a way to change the default mixer device for kmilo and kmix (the selection for the default mixer channel in kmix does not work for me either), or to adress the builtin routines of alsa (something like nForce2:dmix or hw1:dmix) for card id 1?

Code:

# asound.conf

pcm.!default {
   type plug;
   slave.pcm "sblive";
}

ctl.!default {
   type hw;
   card Live;
}

pcm.sblive {
   type hw;
   card Live;
}

ctl.sblive {
   type hw;
   card Live;
}



pcm.onboard {
   type asym;
   playback.pcm "dmix";
   capture.pcm "dsnoop";
}


pcm.multi {
   type multi;
   slaves.a.pcm "nForce2:0";
   slaves.a.channels 2;
   slaves.b.pcm "spdif";
   slaves.b.channels 2;
   bindings.0.slave a;
   bindings.0.channel 0;
   bindings.1.slave a;
   bindings.1.channel 1;
   bindings.2.slave b;
   bindings.2.channel 0;
   bindings.3.slave b;
   bindings.3.channel 1;
}

pcm.ttable {
   type route;
   slave.pcm "multi";
   slave.channels 4
#   route_policy duplicate
   ttable.0.0 1;
   ttable.1.1 1;
   ttable.0.2 1;
   ttable.1.3 1;
}

ctl.ttable {
   type hw;
   card nForce2;
}

ctl.multi {
   type hw;
   card nForce2;
}


Last edited by hansolocg on Tue Aug 29, 2006 5:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
redelk1
n00b
n00b


Joined: 29 Aug 2006
Posts: 1

PostPosted: Tue Aug 29, 2006 3:29 am    Post subject: Do you have a Bridgable Chipset Reply with quote

Northchip bridgeable chipsets, If you don't have one, get one. They rock!
Back to top
View user's profile Send private message
hansolocg
n00b
n00b


Joined: 26 Feb 2006
Posts: 22

PostPosted: Tue Aug 29, 2006 5:45 pm    Post subject: Reply with quote

Ok, i found a solution. I compiled both modules and loaded them in modules.autoload.d/kernel2.6 (kernel parameters might also work) to get them in the desired order. The default plugin-devices are still available through dmix:nForce2 (or dmix:<card_id>).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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