From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 21:18:52 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83A6A1065672 for ; Wed, 20 Jun 2012 21:18:52 +0000 (UTC) (envelope-from br@jail.io) Received: from mx.bsdpad.com (mx.bsdpad.com [46.4.68.80]) by mx1.freebsd.org (Postfix) with ESMTP id 410058FC0A for ; Wed, 20 Jun 2012 21:18:51 +0000 (UTC) Received: from mx.bsdpad.com ([46.4.68.80] helo=jail.io) by mx.bsdpad.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1ShRla-000GZa-2N for freebsd-hackers@freebsd.org; Thu, 21 Jun 2012 00:44:42 +0400 Received: (from br@localhost) by jail.io (8.14.5/8.14.5/Submit) id q5KKifdq063709 for freebsd-hackers@freebsd.org; Wed, 20 Jun 2012 20:44:41 GMT (envelope-from br) Date: Thu, 21 Jun 2012 00:44:41 +0400 From: Ruslan Bukin To: freebsd-hackers@freebsd.org Message-ID: <20120620204441.GA63638@jail.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: newbus / snd_hdspe(4) trouble X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2012 21:18:52 -0000 Hi. I have the problem with different behavior of snd_hdspe(4) sound card driver initialization. If I load the driver by hand using kldload everything works fine, but in case of loading driver at boot time (loader.conf) or compile in kernel the driver can't initialize propertly. The snd_hdspe(4) driver is designed to create a pcm child device per each pair of sound channels. The problem is that snd_hdspe loaded normally, but pcm child devices are not appears. hdspe_pcm_probe() in driver is not called at all. However snd_hdspe_pcm driver exists in kldstat -v after boot: 5 1 0xffffffff81377000 a2c8 snd_hdspe.ko (/boot/kernel/snd_hdspe.ko) Contains modules: Id Name 7 hdspe/snd_hdspe_pcm 6 pci/snd_hdspe and I have checked, device_add_child() returns not NULL. I played with MODULE_DEPEND as done in snd_hda(4) but no luck. What can I do to debug the problem? -Ruslan