From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 09:33:22 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 45D4916A4CE; Thu, 31 Mar 2005 09:33:22 +0000 (GMT) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B064343D41; Thu, 31 Mar 2005 09:33:20 +0000 (GMT) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.13.3/8.13.3) with ESMTP id j2UIC7lx071269; Wed, 30 Mar 2005 20:12:07 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from citylink.dinoex.sub.org (uucp@localhost) j2UIC7eI071268; Wed, 30 Mar 2005 20:12:07 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) j2UHPud2081523; Wed, 30 Mar 2005 19:25:56 +0200 (CEST) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.13.1/8.13.1) with ESMTP id j2UHOHTg081421; Wed, 30 Mar 2005 19:24:18 +0200 (CEST) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.13.1/8.13.1/Submit) id j2UHOHwW081420; Wed, 30 Mar 2005 19:24:17 +0200 (CEST) (envelope-from peter) Date: Wed, 30 Mar 2005 19:24:17 +0200 From: Peter Much To: freebsd-questions@freebsd.org Message-ID: <20050330172417.GA79060@gate.oper.dinoex.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 194.45.71.2; Sender-helo: uucp.dinoex.sub.de;) cc: freebsd-multimedia@freebsd.org Subject: How to debug the sound driver? 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: Thu, 31 Mar 2005 09:33:22 -0000 Hi all, from Release 5.2.1 to 5.3 there were changes done at the soundcard support. (The release-notes say so.) Now my soundcard does not work anymore with 5.3. I have carefully studied the manpages (sound and snd_sbc), and did not find out what I could have done wrong. Now I am in the need some information or suggestions about how to debug this problem. I did not find useful debug switches in the driver sourcecode, or other useful approach. The soundcard is ESS ES1869 based ISA bus card. It should work after loading "sound" and "snd_sbc" (and did so until 5.2.1). I do not get any errors when loading "sound" and "snd_sbc". When loading "snd_sbc", the kernel issues a one-line message that it found the ESS ES1869 (and all the io-ports and irq and dma). This message is literally the same that I was seeing since Release 4.4, so this part seems ok. I also get the interrupt 5 assinged to sbc1. But the "sound" driver does not recognize the card anymore. In /dev/sndstat it shows no devices installed, and there are no "dsp" devicenodes. But since /dev/sndstat is present (and also some sysctl variables), it seems that "sound" also got operative. There is no problem with the hardware - I can reboot to Release 4.4, and it is still working there. >From my impression, the problem could be somewhere with the "sound" driver. I would like to find out what is going wrong, but my main difficulty is I have no idea about the logical-flow-of-functionality there - especially how "sound" and "snd_sbc" are supposed to inter- operate. I reported to freebsd-multimedia, but did not get an answer. Now, before I go the hard way analyzing changes via commitlog (actually I never had reason to understand how the sound system is implemented - it just worked), I would much appreciate any idea about more straight-forward approaches. PMc