From owner-freebsd-questions@FreeBSD.ORG Wed Oct 12 14:11:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46DB516A41F for ; Wed, 12 Oct 2005 14:11:50 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from web36204.mail.mud.yahoo.com (web36204.mail.mud.yahoo.com [209.191.68.230]) by mx1.FreeBSD.org (Postfix) with SMTP id B3FC443D5E for ; Wed, 12 Oct 2005 14:11:27 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 43703 invoked by uid 60001); 12 Oct 2005 14:11:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5Esm44rfs4n2a2kaLV9EgC6D1Mu4JLVKi8RbFFlwxM7+q5dJdNhdd2QPN1kGZFTRrZH9xZSqA0ZBUf09kli5x8XEPiG375P4pxiG06i8NVn0e3Y2ipBJwmRn/UMgy2HSVAoBzU0gfSeb5TJB/aHAQ0W+9KdFlxnIkSbvV4pxHnI= ; Message-ID: <20051012141127.43701.qmail@web36204.mail.mud.yahoo.com> Received: from [218.232.14.39] by web36204.mail.mud.yahoo.com via HTTP; Wed, 12 Oct 2005 07:11:26 PDT Date: Wed, 12 Oct 2005 07:11:26 -0700 (PDT) From: Rob To: FreeBSD questions In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Roshan Subject: Re: Two soundcards for two independent sound programs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 14:11:50 -0000 --- Roshan wrote: > On 10/12/05, Rob wrote: > > > > --- Roshan wrote: > > > On 10/10/05, Rob wrote: > > > > > > > > I wonder if this is possible: > > > > > > > > With two soundcards in my system, can I > configure > > > > the system such that each soundcard plays > > > > different > > > > music? For example,my mp3 player sends its > music > > > > to soundcard one, while my realaudio radio > station > > > > is played over soundcard two. > > > > > > > > It all doesn't sound too crazy to me, or is > it? > > > > Or do two soundcards in one system bite each > > > > other? > > > > > > Indeed, It is possible. You just have to > configure > > > your media playing > > > software to use your preferred sound device. > > > > > > e.g: > > > # mpg123 -a /dev/a song.mp3 > > > > > > TO see what sound devices you have do: > > > #cat /dev/sndstat > > > > > > You can also set your preferred sound device in > xmms > > > or mplayer. > > > > Thanks, but... > > I have plugged two ISA sound cards into the > > motherboard, they need respectively snd_sb16 and > > snd_ess modules. > > > > When I play with the 'kldload/kldunload' to switch > > between the cards, or to have them both loaded, > > then my system spontaneously reboots. > > > > Any ideas what I'm doing wrong, or how to control > > this problem? > > > > Thanks, > > Rob. > > > I would try to build them in the kernel and see what > happens. > Maybe this is a resource/IRQ problem ? > You can try to tweak the parameters of the cards and > see. Great, got it sort of working now. Just for the record, this is what I got: I have 4 soundcards here: two Creative Soundblasters, PCI and ISA, an ESS ISA and an ESS-1 Solo PCI Many pairs of these did not work together. What did work, was: 1. Creative Soundblaster ISA (snd_sb16) 2. ESS-1 solo PCI card (snd_solo) In xmms/mplayer etc. I can control like this for (1): /dev/dsp0.0 /dev/mixer0 for (2): /dev/dsp1.0 /dev/mixer1 # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x220 irq 7 drq 0 bufsz 4096d kld snd_sb16 (1p/1r/0v channels duplex default) pcm1: at io 0xc800, 0xcc00,0xd000 irq 11 kld snd_solo (1p/1r/0v channels duplex) Only little problem, that irq 11 is also used by uhci0, which controls the USB ports. Now, since I'm not using USB on this PC, this is not a real problem. However, for USB users.... Thanks for your help. Rob. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com