From owner-freebsd-questions@FreeBSD.ORG Mon Apr 11 23:40:12 2005 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 1E9BD16A4CE for ; Mon, 11 Apr 2005 23:40:12 +0000 (GMT) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 97E1743D1D for ; Mon, 11 Apr 2005 23:40:11 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 49161 invoked from network); 11 Apr 2005 23:40:10 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 11 Apr 2005 23:40:10 -0000 X-pair-Authenticated: 200.115.214.28 Date: Mon, 11 Apr 2005 20:41:10 -0300 From: Alejandro Pulver To: freebsd-questions Message-ID: <20050411204110.01230e91@ale.varnet.bsd> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: pcm device numbering X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 23:40:12 -0000 Hello, I have two sound cards: SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich' Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi' The first is integrated in the motherboard, and it is detected first and used as the default output device (pcm0). The second it detected after the first, so it is used as the second output device (pcm1). I want to use my second sound card as the default output device. I tried using the loader.conf variables "*_after" and "*_before", but they always load them before booting the kernel, so the integrated card is detected first and assigned to the default output device (pcm0). So I have the drivers as modules, and load the driver for the second card when booting the kernel, and then from the command line I load the driver for the integrated card. Is there a (clean, if possible) way to do this (with 'device.hints', or rc scripts)? Here is the relevant output of 'pciconf -vl' (after loading the drivers in the desired order): pcm1@pci0:2:7: class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SiS7012 PCI Audio Accelerator' class = multimedia subclass = audio pcm0@pci0:9:0: class=0x040100 card=0x011113f6 chip=0x011113f6 rev=0x10 hdr=0x00 vendor = 'C-Media Electronics Inc.' device = 'CMI8738/PCI C3DX PCI Audio Chip中国' class = multimedia subclass = audio I am posting this question again because I did not get a response. If I should ask this question somewhere else please inform me. Thanks and Best Regards, Ale