From owner-freebsd-questions@FreeBSD.ORG Sat Nov 1 07:37:36 2003 Return-Path: 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 11F7416A4CE for ; Sat, 1 Nov 2003 07:37:36 -0800 (PST) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6746D43F75 for ; Sat, 1 Nov 2003 07:37:35 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 007633AB7; Sat, 1 Nov 2003 10:37:34 -0500 (EST) Sender: lowell@be-well.ilk.org To: freebsd-questions@freebsd.org References: <9210248484.20031031121005@newmail.ru> From: Lowell Gilbert Date: 01 Nov 2003 10:37:34 -0500 In-Reply-To: <9210248484.20031031121005@newmail.ru> Message-ID: <44u15onlq9.fsf@be-well.ilk.org> Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: "Alexey V. Litvinov" Subject: Re: Howto make one of two sound cards default? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2003 15:37:36 -0000 "Alexey V. Litvinov" writes: > Problem: I have two sound cards one inserted into PCI slot and one > integrated into motherboard, all cards detected and working fine. > First is pcm0 and second is pcm1. > Since first (external) detected on boot first it is default to sound > output, but i wish to use second (integrated) card by default since its > more new. > My researches point me to /dev/dsp and i'm tried to make > ln -s /dev/dsp1.0 /dev/dsp > but system says: file is exists... (i doesnt see it in /dev ? ) > How to make it default? > > (FreeBSD 5.0-RELEASE) To start with, you should definitely update your system to something more recent. 5.0 was, after all, a very early "technology preview" release from a branch that, after nearly a year, still isn't ready to produce a production release. Unless you have some (at least minimal) skills at tracking down these kinds of problems, you should probably move to the latest release, 4.9. I can't give you very exact advice here, because I'm still running 4.9 myself, but I think you want to advise the devfs system by setting up rules for these nodes, so that (for example) /dev/dsp will refer to the device that you want. The devfs(8) utility seems to be designed for this, and I suspect there is a system startup script intended to initialize such rules, if you can just find the right place to configure it.