From owner-freebsd-doc@FreeBSD.ORG Mon Aug 29 16:46:16 2005 Return-Path: X-Original-To: freebsd-doc@freebsd.org Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2A6916A428 for ; Mon, 29 Aug 2005 16:46:15 +0000 (GMT) (envelope-from fred.wheeler@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 611AE43D45 for ; Mon, 29 Aug 2005 16:46:15 +0000 (GMT) (envelope-from fred.wheeler@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so612223wxd for ; Mon, 29 Aug 2005 09:46:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VOpastejiYqHNTWQMnUJKwajY6vJzDLp/fX9TdvwGg+qsBKrOGG8LDk4b3DiFPLVQu+Yd8Vlf95PipCvv7Wxt0QgynPS1zqei2MHUNVdFMazykbgK/DHWgzv4SKGtvEOyNn2fXS6nitSAM2xOuAVoycrh9gwiLnB0JrgWywoTjM= Received: by 10.70.40.11 with SMTP id n11mr99862wxn; Mon, 29 Aug 2005 09:46:14 -0700 (PDT) Received: by 10.70.45.12 with HTTP; Mon, 29 Aug 2005 09:46:14 -0700 (PDT) Message-ID: Date: Mon, 29 Aug 2005 12:46:14 -0400 From: Fred Wheeler To: freebsd-doc@freebsd.org In-Reply-To: <20050829155939.GC595@gothic.blackend.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050829155939.GC595@gothic.blackend.org> Subject: Re: Fix for Section 7.2.1.1 - Soundblaster 16 driver X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fww@ieee.org List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 16:46:16 -0000 Marc is correct that my previous post makes little sense and section and section 7.2.1.1 is good as it is. I was trying to recall what I did a couple of days ago and by mistake I focused on 7.2.1.1 when my suggestion really applies to 7.2.1. (That's why I was mixing up loader.conf and kernel config file syntax.) Section 7.2.1 explains how to use # kldload snd_emu10k1 on the command line or put=20 snd_emu10k1_load=3D"YES" in /boot/loader.conf. I think this needs to be # kldload sound # kldload snd_emu10k1 and=20 sound_load=3D"YES" snd_emu10k1_load=3D"YES" However - I'm not 100% sure this is correct - so this should only be added if someone else knows that this is an obvious omission. I'll carefully verify this if needed, but will not be able to get back to the machine for two weeks. What I do know for sure is that snd_sbc_load=3D"YES" did not work for me (sbc0 card found, but /dev/sndstat listed no installed devices), but snd_driver_load=3D"YES" worked (snd0 shows up in dmesg and audio works great). While 7.2.1.1 seems complete I think 7.2.1 implies that only the driver for the specific card is needed and does not mention the generic audio driver. Regards, Fred Wheeler On 8/29/05, Marc Fonvieille wrote: > On Mon, Aug 29, 2005 at 11:12:44AM -0400, Fred Wheeler wrote: > > Section "7.2.1.1 Configuring a Custom Kernel with Sound Support" of > > the online handbook contains this text: > > > > > Non-PnP ISA cards may require you to provide the kernel with > > > information on the sound card settings (IRQ, I/O port, etc). This is > > > done via the /boot/device.hints file. At system boot, the loader(8) > > > will read this file and pass the settings to the kernel. For example, > > > an old Creative SoundBlaster 16 ISA non-PnP card will use the > > > snd_sbc(4) driver, with the following line added to the kernel > > > configuration file: > > > > > > device snd_sbc > > > > > > as well as the following in /boot/device.hints: > > > > > > hint.sbc.0.at=3D"isa" > > > hint.sbc.0.port=3D"0x220" > > > hint.sbc.0.irq=3D"5" > > > hint.sbc.0.drq=3D"1" > > > hint.sbc.0.flags=3D"0x15" > > > > > > In this case, the card uses the 0x220 I/O port and the IRQ 5. > > >=20 > Well you quoted only one part, you have to read the whole section... > especially the information before your quoted part. >=20 > > I think this is slightly misleading and I have a fix. > > > > I just used the handbook to help get FreeBSD recognizing an old > > Creative SoundBlaster 16 ISA non-PnP card. I have found that drivers > > other than "snd_sbc" are needed. I found that I needed to put > > > > device snd_driver > > > [...] >=20 > Once again, you missed an important part when you read this section > (7.2.1.1 Configuring a Custom Kernel with Sound Support): >=20 > The 1st line states: >=20 > "The first thing to do is adding the generic audio driver sound(4) to the > kernel, for that you will need to add the following line to the kernel > configuration file: >=20 > device sound" >=20 > [...] >=20 > "Then we have to add the support for our sound card." >=20 > [...] >=20 > To sum up: > You only added support for your card but not the required sound(4) > driver, so it could not work. >=20 > Marc >