From owner-freebsd-multimedia@FreeBSD.ORG Mon Dec 12 14:42:58 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C75816A41F for ; Mon, 12 Dec 2005 14:42:58 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13E0443D45 for ; Mon, 12 Dec 2005 14:42:54 +0000 (GMT) (envelope-from freebsd@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id OAA10074 for ; Mon, 12 Dec 2005 14:47:28 +0100 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Mon, 12 Dec 05 14:47:09 +0100 Received: from fadesa.es (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id OAA00269 for ; Mon, 12 Dec 2005 14:39:37 +0100 Sender: fan@fadesa.es Message-ID: <439D7D99.CCC77815@fadesa.es> Date: Mon, 12 Dec 2005 14:39:37 +0100 From: "=?iso-8859-15?Q?Jos=E9?= M. =?iso-8859-15?Q?Fandi=F1o?=" Organization: Inmobiliaria FADESA X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.30-ow1 i686) X-Accept-Language: gl, en, es MIME-Version: 1.0 CC: freebsd-multimedia@freebsd.org References: <20051206020536.GA16108@panix.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Logged: Logged by tierra.fadesa.es as OAA00269 at Mon Dec 12 14:39:37 2005 Subject: Re: Selecting sound output device? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@fadesa.es List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 14:42:58 -0000 Jesse Sheidlower wrote: > Now I'd like to know how to use pcm1 as the output device any time > the USB speakers are plugged in, or at least how to control this > manually. Both devices are present: > > $ cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld snd_ich (1p/1r/4v channels duplex default) > pcm1: at addr ? (1p/0r/1v channels duplex) > mode 1:(output) 1ch, 16/16bit, pcm, 6400-48000Hz > mode 2:(output) 2ch, 16/16bit, pcm, 6400-48000Hz > > So, if I'm not selecting it in XMMS--if I want to use it for > all output--how do I either automatically or explicitly select > pcm1 as my sound output device? (I'm using the speakers with a > laptop, so I expect to be plugging and unplugging them at other > times than boot, if that matters.) I haven't you hardware but I'd say that the solution involves playing with devd and devd.conf in such way that when the spakers are pluggled a softlink must be created pointing the proper device (ln -s /dev/pcm1 /dev/pcm on attach) Regards, -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d- s+:+() a31 C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w--- O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++ G++ e- h+(++) !r !z ------END GEEK CODE BLOCK------