Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 15:26:28 -0400
From:      Munish Chopra <mchopra@engmail.uwaterloo.ca>
To:        freebsd-current@freebsd.org
Subject:   Re: Specifying default alternate sound device?
Message-ID:  <20030805192628.GB96322@opiate.soulwax.net>
In-Reply-To: <20030805171706.GC34329@cnd.mcgill.ca>
References:  <1060103212.565.11.camel@jake> <20030805171706.GC34329@cnd.mcgill.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-08-05 13:17 -0400, Mathew Kanner wrote:
> On Aug 05, Adam wrote:
> > Is there any easy way to specify a default alternate sound device (eg,
> > /dev/dsp1). I have both onboard sound (/dev/dsp) and a SB Live card
> > (/dev/dsp1), but I don't use the onboard sound. It's really frustrating
> > to try to configure every single application (that uses sound) to use
> > /dev/dsp1 instead.
> > 
> > Is there some safe/easy trick to set a general rule that all/most apps
> > will follow, so that they use /dev/dsp1 instead?
> 
> 	With devfs, the default sound unit is tunable by a sysctl.
> 
> tube# sysctl hw.snd.unit=0 ; ls -l dsp dsp0.0 dsp1.0 ; sysctl hw.snd.unit=1 ; ls -l dsp dsp0.0 dsp1.0
> hw.snd.unit: 1 -> 0
> crw-rw-rw-  1 root  wheel   30,   3 Aug  5 11:24 dsp
> crw-rw-rw-  1 root  wheel   30,   3 Aug  5 11:24 dsp0.0
> crw-rw-rw-  1 root  wheel   30,  19 Aug  5 11:24 dsp1.0
> hw.snd.unit: 0 -> 1
> crw-rw-rw-  1 root  wheel   30,  19 Aug  5 11:24 dsp
> crw-rw-rw-  1 root  wheel   30,   3 Aug  5 11:24 dsp0.0
> crw-rw-rw-  1 root  wheel   30,  19 Aug  5 11:24 dsp1.0
> 
> 	--Mat
> -- 
> 	sig machine broken.

Besides this solution, you could just turn off onboard sound in the
BIOS.

-- 
Munish Chopra



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030805192628.GB96322>