From owner-freebsd-drivers@FreeBSD.ORG Wed Mar 4 14:39:57 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C132A1C0 for ; Wed, 4 Mar 2015 14:39:57 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 875F7C82 for ; Wed, 4 Mar 2015 14:39:57 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id bm13so33913782qab.2 for ; Wed, 04 Mar 2015 06:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ehyGQ2OuESryr3+a6PLRw19sQa3rGp0zk3kvQvKnX9o=; b=HaonhiR0oCTRN1FF+MBOigYcIHGm7IpTVrafaer5KOBZj0ei+PKQF4sGpPF8WSVMYN mhpBH2YjfYCgFydCaofAuhs6PYMOKx0ntnU2giITnogiBZc5/PuR4eG03j8Gvyqktf78 2XB7FKn97Ar6BJcxmqjuTJ4bITIjDl3t+suFdMMBzC1SU8IOLK9XZFp/PMN37UlOHZZX +uqe8ExS+sklCx+W9SI0rmHpQwokKN8JAjVGHlQRlEcPueUNGK89KefyAKW2bR0e7Kw1 T2MYsw/FO6N5xVG4s7ittNZNMNzusQQdSb56DejokfZxFFJzL5YkrQNb0zLt24MZCS1L pEEg== MIME-Version: 1.0 X-Received: by 10.140.234.130 with SMTP id f124mr6419092qhc.36.1425479996728; Wed, 04 Mar 2015 06:39:56 -0800 (PST) Received: by 10.140.37.82 with HTTP; Wed, 4 Mar 2015 06:39:56 -0800 (PST) Date: Wed, 4 Mar 2015 11:39:56 -0300 Message-ID: Subject: call identify, probe and attach on run time? From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2015 14:39:57 -0000 Hello! I'm a newbie at freeBSD and at the development of newbus drivers, so excuse me if this is too silly: I'm running FreeBSD on the Zedboard, an arm based board, and I wrote a simple newbus driver for reading and writing a specific I/O port (It is basically a simplified copy of the Warner Losh example driver for the iOpener Led) I successfully load my driver: # kldload ./simple_d.ko # But after doing this I can't find the new node neither under /dev nor with devinfo(8). I assume that the identify, probe and attach functions hasn't been called. Is this correct? So is there any way of doing this at run time? I mean NOT during auto-configuration. If I can only do it on boot time ... ... should I add a node at the Flattened Device Tree? ... should I place the driver in some specific directory? ... should I re-compile the kernel with the new driver included? Thank you! Regards, Matias.- From owner-freebsd-drivers@FreeBSD.ORG Wed Mar 4 15:49:56 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72D3E367 for ; Wed, 4 Mar 2015 15:49:56 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F0C96AD for ; Wed, 4 Mar 2015 15:49:55 +0000 (UTC) Received: by padfb1 with SMTP id fb1so25227384pad.7 for ; Wed, 04 Mar 2015 07:49:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=N2+l/5BU+OGoJlq7aNrPOoZyiCoJOnVNgUmref1QZAY=; b=IDdMl9ALwQlZ5am3ts6R4XlFmRpJpb3/CQS4BCJQmBE7sJU/CT6k0MYdew9JNOp0j7 AIQZ2I41jMpawamW+e3WXiU7jILfxJ7NhnM6BtFszdjq8ysUbprFWRZaY/mea1QMzE6W DTaHMYzO0tHP8GYHHTuqKA4KVbNlnfijOodE95aS06YwQIJHW4Ee6InpVAMuKX2XkyLP o8uc/y2zh79WkZxgXiXdpqi+LF0lGy//o1XCS+LwFrad8WxMmMs9Au9iDMtseVNELJP2 6w0Tz+hsO3lfJ6iucwr85V1kzXXjl8Khl7hjWyqfXqbNsbnMCpWQkgSQpiWyQ2IORIZ+ /ubw== X-Gm-Message-State: ALoCoQldNJIy+VZ+Dxwr6c2l7JrM0IWebsw6GrbbIdj0LceNOxPsoF56Jc2oiFc5e+kg4NypNHDL X-Received: by 10.66.62.201 with SMTP id a9mr7734455pas.101.1425484194955; Wed, 04 Mar 2015 07:49:54 -0800 (PST) Received: from [10.64.24.149] ([69.53.236.236]) by mx.google.com with ESMTPSA id ia9sm4419313pbc.26.2015.03.04.07.49.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Mar 2015 07:49:53 -0800 (PST) Sender: Warner Losh Subject: Re: call identify, probe and attach on run time? Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_240931C6-A953-4C8C-9BEE-26502F1997C1"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: Date: Wed, 4 Mar 2015 08:49:49 -0700 Message-Id: References: To: =?utf-8?Q?Mat=C3=ADas_Perret_Cantoni?= X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2015 15:49:56 -0000 --Apple-Mail=_240931C6-A953-4C8C-9BEE-26502F1997C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 4, 2015, at 7:39 AM, Mat=C3=ADas Perret Cantoni = wrote: >=20 > Hello! I'm a newbie at freeBSD and at the development of newbus = drivers, so > excuse me if this is too silly: >=20 > I'm running FreeBSD on the Zedboard, an arm based board, and I wrote a > simple newbus driver for reading and writing a specific I/O port (It = is > basically a simplified copy of the Warner Losh example driver for the > iOpener Led) >=20 > I successfully load my driver: >=20 > # kldload ./simple_d.ko > # >=20 > But after doing this I can't find the new node neither under /dev nor = with > devinfo(8). I assume that the identify, probe and attach functions = hasn't > been called. Is this correct? >=20 > So is there any way of doing this at run time? I mean NOT during > auto-configuration. >=20 > If I can only do it on boot time ... > ... should I add a node at the Flattened Device Tree? > ... should I place the driver in some specific directory? > ... should I re-compile the kernel with the new driver included? I think you need to add the node to the FDT that you boot with. Once you do that, you=E2=80=99ll be able to load and unload the driver. = With the FDT node, it will probe on boot, find no driver and get on with = life. Later, when you load the driver it will probe all the nodes that don=E2=80= =99t have drivers, you=E2=80=99re code will get called and life will be good. Warner --Apple-Mail=_240931C6-A953-4C8C-9BEE-26502F1997C1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJU9ymdAAoJEGwc0Sh9sBEAjsAP/3f+zDVJIp3sxrF5J/G18XFC 2GVncY8ubVSmzH8O2WxyrmrRyF9ex/KYY9+vV2qGaojHIwRtC6sEK0fDIKCUDecG LD+sUcPIi12JygUoZNS1ju8uMKOTN+uMIJBz4Wsai/AHYr46a8XKg0k2X+TMW6x7 Ql8bwng+b5K6kRdHUHzwEZnb8ziuoI/p/oKq3rMIxnwcUowZvciwMs9iDkhtAW3Q ZNYAx5HAM+A2dTYfnFeR1FSckdKnNEOJamaimttn4nPpWXGr4OdMlti6+h1RyFtq alcCMguFFu5pj8GOqRWFMXFTyM04AjR7ysPWDjscf7expXbuH5LKH8hllZOb3PJG kim9M7p3ZtrDBOR69HqHh9Fy7M7W8Q2zSKHo1ga9BO5eK7vSzoHT6EFAOyZY3PrL QKJoeizcRTkq92bFR2tNxsb4njlwNeG9PZsbfZHB+TgixlIgHE+69EgF7Z4YdEDH sr9svfCrQr6+aRItR13f3+8bB4ged8QvYRaQgD8EWiQHEF1EDOr3oBCw5kZtIJgb 8EYz+1poqP8seGE5PtXK5OWchvXqzWJEaRqXcVU4Ty2ajpwVODzUKWlWbWLgmqT5 VRX1U7vBl1svdWgyMN+Z6+g8sboSNJ+2T8d37c8BGf7k2gauG9m7wa3GbuJkNaf7 N/aQXoSQLWdVzrnOamdi =P3YG -----END PGP SIGNATURE----- --Apple-Mail=_240931C6-A953-4C8C-9BEE-26502F1997C1-- From owner-freebsd-drivers@FreeBSD.ORG Thu Mar 5 16:45:09 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 820D29CC for ; Thu, 5 Mar 2015 16:45:09 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0134.outbound.protection.outlook.com [65.55.169.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00E2C347 for ; Thu, 5 Mar 2015 16:45:08 +0000 (UTC) Received: from BY2PR05MB159.namprd05.prod.outlook.com (10.242.39.142) by BY2PR05MB013.namprd05.prod.outlook.com (10.242.34.140) with Microsoft SMTP Server (TLS) id 15.1.99.14; Thu, 5 Mar 2015 16:44:58 +0000 Received: from BY2PR05MB157.namprd05.prod.outlook.com (10.242.39.146) by BY2PR05MB159.namprd05.prod.outlook.com (10.242.39.142) with Microsoft SMTP Server (TLS) id 15.1.106.15; Thu, 5 Mar 2015 16:44:54 +0000 Received: from BY2PR05MB157.namprd05.prod.outlook.com ([169.254.16.120]) by BY2PR05MB157.namprd05.prod.outlook.com ([169.254.16.120]) with mapi id 15.01.0106.007; Thu, 5 Mar 2015 16:44:54 +0000 From: Kristofer Persson To: "freebsd-drivers@freebsd.org" Subject: Sound Card Driver incorrect Thread-Topic: Sound Card Driver incorrect Thread-Index: AdBXY7NFsnJxVkZVRcu9nbXjYXzv7Q== Date: Thu, 5 Mar 2015 16:44:53 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [50.206.28.188] authentication-results: freebsd.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2PR05MB159; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2PR05MB013; x-forefront-antispam-report: BMV:1; SFV:NSPM; SFS:(10019020)(19609705001)(54356999)(19300405004)(16236675004)(86362001)(87936001)(92566002)(66066001)(74316001)(50986999)(40100003)(102836002)(76576001)(19580395003)(2900100001)(46102003)(110136001)(15975445007)(5890100001)(107886001)(2351001)(122556002)(19617315012)(229853001)(77156002)(19580405001)(33656002)(2656002)(19625215002)(2501003)(450100001)(62966003)(99286002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR05MB159; H:BY2PR05MB157.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5002007)(5005006); SRVR:BY2PR05MB159; BCL:0; PCL:0; RULEID:; SRVR:BY2PR05MB159; x-forefront-prvs: 05066DEDBB MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2015 16:44:53.7263 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6eaea2f8-92fb-4e6a-b5ee-1b4d9594b144 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB159 X-OriginatorOrg: clarkebroadcasting.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2015 16:45:09 -0000 I am trying to get my Creative Labs CT4730 to work correctly on Freebsd 10.= 1, I verified it is on the compatible hardware list https://www.freebsd.org= /releases/10.1R/hardware.html and it should be using driver snd_es137x but = according to dmesg it's running from Creative EMU10k1. I rebuilt the KERNE= L and told it not to load any of the EMU_10kx and EMU_10K1 but after loadin= g on the new kernel dmesg still shows it loaded under EMU10K1, I have incl= uded my info below and my alternate KERNEL config. uname -a: FreeBSD encoder 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #8: Wed Mar 4 16:3= 7:25 PST 2015 root@encoder:/usr/obj/usr/src/sys/ENCODER amd64 dmesg: pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 pcm0: AC97 reset timed out. pcm0: ac97 codec invalid or not present (id =3D=3D 0) device_attach: pcm0 attach returned 6 pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 pcm0: AC97 reset timed out. pcm0: ac97 codec invalid or not present (id =3D=3D 0) device_attach: pcm0 attach returned 6 KERNEL Config: include GENERIC ident ENCODER device sound device snd_es137x nodevice snd_driver nodevice snd_emu10k1 nodevice snd_cmi # CMedia CMI8338/CMI8738 nodevice snd_csa # Crystal Semiconductor CS461x/428x nodevice snd_emu10kx # Creative SoundBlaster Live! and Audigy nodevice snd_hda # Intel High Definition Audio nodevice snd_ich # Intel, NVidia and other ICH AC'97 Audio nodevice snd_via8233 # VIA VT8233x Audio cat /dev/sndstat : Installed devices: From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 14:29:16 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A8A591D; Fri, 6 Mar 2015 14:29:16 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22650F53; Fri, 6 Mar 2015 14:29:16 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A6376B91F; Fri, 6 Mar 2015 09:29:14 -0500 (EST) From: John Baldwin To: freebsd-drivers@freebsd.org Subject: Re: Sound Card Driver incorrect Date: Fri, 06 Mar 2015 08:43:32 -0500 Message-ID: <2520857.GDCcn57p3O@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 06 Mar 2015 09:29:14 -0500 (EST) Cc: 'Pedro Giffuni' X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 14:29:16 -0000 On Thursday, March 05, 2015 04:44:53 PM Kristofer Persson wrote: > I am trying to get my Creative Labs CT4730 to work correctly on Freebsd > 10.1, I verified it is on the compatible hardware list > https://www.freebsd.org/releases/10.1R/hardware.html and it should be using > driver snd_es137x but according to dmesg it's running from Creative > EMU10k1. I rebuilt the KERNEL and told it not to load any of the EMU_10kx > and EMU_10K1 but after loading on the new kernel dmesg still shows it > loaded under EMU10K1, I have included my info below and my alternate > KERNEL config. > > uname -a: > FreeBSD encoder 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #8: Wed Mar 4 > 16:37:25 PST 2015 root@encoder:/usr/obj/usr/src/sys/ENCODER amd64 > > dmesg: > pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 > pcm0: AC97 reset timed out. > pcm0: ac97 codec invalid or not present (id == 0) > device_attach: pcm0 attach returned 6 > pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 > pcm0: AC97 reset timed out. > pcm0: ac97 codec invalid or not present (id == 0) > device_attach: pcm0 attach returned 6 I've cc'd pfg@ who made one of the more recent changes to these drivers. You might also try freebsd-multimedia@ as I think the folks who work on sound are on that list. -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 16:12:49 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F048B487 for ; Fri, 6 Mar 2015 16:12:48 +0000 (UTC) Received: from nm29-vm1.bullet.mail.bf1.yahoo.com (nm29-vm1.bullet.mail.bf1.yahoo.com [98.139.213.144]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8866BD60 for ; Fri, 6 Mar 2015 16:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425658361; bh=mlFc8/0Jh0d5FIE1evL9n0V1PcxzGeSBBCd5WPN+SPg=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=tpXrrzF5ynTJqxJpOVDDYuNca1HgKsZFEn7r2FkBHTswg+FWACv6fCFVSYHby7UmbjktDvno0ExNy22zM1eFkIJQVjErBwlCquJ8vhe/9UD1l4J35g737CkpOEa/t/6INW3MQUExOieIGZ0dKoXM6X6Rj8D8jrS1/w5dVM+jvlMYxrm5FCHQU0zpt/78+OOBVZmBFxFZcjioCeMJhjn0LXVSuJy3UwfCgn6EBBO47vhjsEoU/JYcrbencS2XrHpP+NKWJx4/46GnzMHD7UeppXIvvx15xP1XkQLm3FlybC6oCIBPfcOTsKWZbNQufolUS/9qviHwsF6Z0Lh7hB3Cww== Received: from [98.139.212.153] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 16:12:41 -0000 Received: from [98.139.211.195] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 16:12:41 -0000 Received: from [127.0.0.1] by smtp204.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 16:12:36 -0000 X-Yahoo-Newman-Id: 999304.25918.bm@smtp204.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8kKJQV4VM1nGYIN37sgtTl59UZ0QV3D4bbwDBP1snp_BBLw LDBTQWdYbINy_OHBqtuTpgZdmXSUGX9nOIvUDGeV_Nh.BNB4JojpsZs0tWSk HK17oxzjbP36PsVLYMi4YRrxv7avPUeWi2_rvYFGEcsPW6cMTI085wAJ.k.D i1t9nlZqNrWX9lZR6K7gkWEmbaAW.R7aqFO50UWWNY4DTXewSHPIGCGlzWgV EOOu25a_X9zT3j4JgDanKqjGpNmtpYmjded07.7g6Ih2U2tQHGsN6fWBXE1W 0WTtOFFY.Ec4_aFQ3KTDDRrxNwFLzH0hda6.eU3pLEQKZqP_WZMWIpRNDYY6 C21nKUUhyYqs9RfQsa8q8pY1TZKXjAo5l.hZyKWJR04lEThixziOej8h9hsS 3BVDzEXU7mDsLh7KoQXm.tfIwKl5HVgh5RgxNhMQQRNmYD1XctD_N5Bv.gUL iykxtSh0BEP8tkuWfT1gn22fY4mGBRz6gkSINozCviduD3xPZYVS2u.0tnNJ 7SF79hzaALuswjXFBy3XKvTscNS5gPdEiUwFollgC.5.FloobaRt7WuDpmTi FuEYbiJTU4y_hB35AV0Bf15yCC.9.h.q5RQNqOFDbT5TGTLS3KfIA8JcLANI SDAbASosjbg-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <54F9D1FC.60708@FreeBSD.org> Date: Fri, 06 Mar 2015 11:12:44 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: John Baldwin , freebsd-drivers@freebsd.org Subject: Re: Sound Card Driver incorrect References: <2520857.GDCcn57p3O@ralph.baldwin.cx> In-Reply-To: <2520857.GDCcn57p3O@ralph.baldwin.cx> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 16:12:49 -0000 Hello; On 03/06/15 08:43, John Baldwin wrote: > On Thursday, March 05, 2015 04:44:53 PM Kristofer Persson wrote: >> I am trying to get my Creative Labs CT4730 to work correctly on Freebsd >> 10.1, I verified it is on the compatible hardware list >> https://www.freebsd.org/releases/10.1R/hardware.html and it should be using >> driver snd_es137x but according to dmesg it's running from Creative >> EMU10k1. I rebuilt the KERNEL and told it not to load any of the EMU_10kx >> and EMU_10K1 but after loading on the new kernel dmesg still shows it >> loaded under EMU10K1, I have included my info below and my alternate >> KERNEL config. >> >> uname -a: >> FreeBSD encoder 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #8: Wed Mar 4 >> 16:37:25 PST 2015 root@encoder:/usr/obj/usr/src/sys/ENCODER amd64 >> >> dmesg: >> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 >> pcm0: AC97 reset timed out. >> pcm0: ac97 codec invalid or not present (id == 0) >> device_attach: pcm0 attach returned 6 >> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on pci17 >> pcm0: AC97 reset timed out. >> pcm0: ac97 codec invalid or not present (id == 0) >> device_attach: pcm0 attach returned 6 > I've cc'd pfg@ who made one of the more recent changes to these drivers. You > might also try freebsd-multimedia@ as I think the folks who work on sound are > on that list. > That was not very recently. It was tested and known to work, unfortunately the driver never really worked for all cards. I will take a look to see if I find something strange but you could also try with /usr/ports/audio/oss Regards, Pedro. From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 16:35:39 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E8201C7; Fri, 6 Mar 2015 16:35:39 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0111.outbound.protection.outlook.com [65.55.169.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAE00FBA; Fri, 6 Mar 2015 16:35:37 +0000 (UTC) Received: from BL2PR05MB146.namprd05.prod.outlook.com (10.242.198.21) by BL2PR05MB147.namprd05.prod.outlook.com (10.242.198.22) with Microsoft SMTP Server (TLS) id 15.1.106.15; Fri, 6 Mar 2015 16:19:50 +0000 Received: from BL2PR05MB146.namprd05.prod.outlook.com ([169.254.5.189]) by BL2PR05MB146.namprd05.prod.outlook.com ([169.254.5.189]) with mapi id 15.01.0106.007; Fri, 6 Mar 2015 16:19:50 +0000 From: Kristofer Persson To: Pedro Giffuni , John Baldwin , "freebsd-drivers@freebsd.org" Subject: RE: Sound Card Driver incorrect Thread-Topic: Sound Card Driver incorrect Thread-Index: AdBXY7NFsnJxVkZVRcu9nbXjYXzv7QAr9W8AAAU19AAAADYagA== Date: Fri, 6 Mar 2015 16:19:50 +0000 Message-ID: References: <2520857.GDCcn57p3O@ralph.baldwin.cx> <54F9D1FC.60708@FreeBSD.org> In-Reply-To: <54F9D1FC.60708@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [50.206.28.188] authentication-results: FreeBSD.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR05MB147; x-microsoft-antispam-prvs: x-forefront-antispam-report: BMV:1; SFV:NSPM; SFS:(10019020)(6009001)(479174004)(51704005)(24454002)(377454003)(13464003)(66066001)(62966003)(77156002)(450100001)(76576001)(46102003)(92566002)(50986999)(5890100001)(99286002)(2950100001)(122556002)(2900100001)(87936001)(2656002)(19580395003)(74316001)(19580405001)(40100003)(33656002)(76176999)(54356999)(15975445007)(107886001)(102836002)(86362001)(2501003); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR05MB147; H:BL2PR05MB146.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002007); SRVR:BL2PR05MB147; BCL:0; PCL:0; RULEID:; SRVR:BL2PR05MB147; x-forefront-prvs: 05079D8470 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: clarkebroadcasting.com X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2015 16:19:50.1355 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6eaea2f8-92fb-4e6a-b5ee-1b4d9594b144 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR05MB147 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 16:35:39 -0000 Thanks Pedro, when I rebuild the kernel with no sound or sound drivers, the= OS goes into a kernel panic boot loop when OSS loads, it does it even with= the card out of the machine so the OSS driver is not quiet working right e= ither. Kris -----Original Message----- From: Pedro Giffuni [mailto:pfg@FreeBSD.org]=20 Sent: Friday, March 06, 2015 8:13 AM To: John Baldwin; freebsd-drivers@freebsd.org Cc: Kristofer Persson Subject: Re: Sound Card Driver incorrect Hello; On 03/06/15 08:43, John Baldwin wrote: > On Thursday, March 05, 2015 04:44:53 PM Kristofer Persson wrote: >> I am trying to get my Creative Labs CT4730 to work correctly on=20 >> Freebsd 10.1, I verified it is on the compatible hardware list=20 >> https://www.freebsd.org/releases/10.1R/hardware.html and it should be=20 >> using driver snd_es137x but according to dmesg it's running from=20 >> Creative EMU10k1. I rebuilt the KERNEL and told it not to load any=20 >> of the EMU_10kx and EMU_10K1 but after loading on the new kernel=20 >> dmesg still shows it loaded under EMU10K1, I have included my info=20 >> below and my alternate KERNEL config. >> >> uname -a: >> FreeBSD encoder 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #8: Wed Mar 4 >> 16:37:25 PST 2015 root@encoder:/usr/obj/usr/src/sys/ENCODER amd64 >> >> dmesg: >> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on=20 >> pci17 >> pcm0: AC97 reset timed out. >> pcm0: ac97 codec invalid or not present (id =3D=3D 0) >> device_attach: pcm0 attach returned 6 >> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on=20 >> pci17 >> pcm0: AC97 reset timed out. >> pcm0: ac97 codec invalid or not present (id =3D=3D 0) >> device_attach: pcm0 attach returned 6 > I've cc'd pfg@ who made one of the more recent changes to these=20 > drivers. You might also try freebsd-multimedia@ as I think the folks=20 > who work on sound are on that list. > That was not very recently. It was tested and known to work, unfortunately = the driver never really worked for all cards. I will take a look to see if I find something strange but you could also tr= y with /usr/ports/audio/oss Regards, Pedro. From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 19:03:50 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A9BFACA1 for ; Fri, 6 Mar 2015 19:03:50 +0000 (UTC) Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E0032B6 for ; Fri, 6 Mar 2015 19:03:50 +0000 (UTC) Received: by qgdz60 with SMTP id z60so14951350qgd.5 for ; Fri, 06 Mar 2015 11:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XwJ6L6sNJw5jrOLzklXnXydx+KDQAJbbcaKT59ENaK0=; b=xmChe+zrxXvLLYLlG7VFXQSfY1D81kovLk4c0QfJ4IYNyjw94PEfuVoQdzX7IEEaY4 U9sc9y8LCNcyigNT7vHS/d2wV4AHEaCIrbmVfAQJ3D6zNfKb5BXxFtdPNMzlS03m3hE0 Jlkis6A8Xkt0G9n7hBHq+k/8LKjK2+FGeOeGhbXLfCpXtDrIfKRxEUlPllO8wUIFaFW2 fO9Ff+XeNVz1GihvR6mabXL7U8RuCK1aWMtdBzkNzFxghVrOUo4pW3rS7+sw5kzkTipO OITX2VZXwTYhiD170DKZGaopPOxhxqAWZqiahqOhRKvXItugrMZba/UiAk/nWgC+Y9o8 XsMg== MIME-Version: 1.0 X-Received: by 10.55.50.79 with SMTP id y76mr7791835qky.20.1425668629445; Fri, 06 Mar 2015 11:03:49 -0800 (PST) Received: by 10.140.37.82 with HTTP; Fri, 6 Mar 2015 11:03:49 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Mar 2015 16:03:49 -0300 Message-ID: Subject: Re: call identify, probe and attach on run time? From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 19:03:50 -0000 Thank you Warner, It worked the way you said. 2015-03-04 12:49 GMT-03:00 Warner Losh : > > > On Mar 4, 2015, at 7:39 AM, Mat=C3=ADas Perret Cantoni < > perretcantonim@gmail.com> wrote: > > > > Hello! I'm a newbie at freeBSD and at the development of newbus drivers= , > so > > excuse me if this is too silly: > > > > I'm running FreeBSD on the Zedboard, an arm based board, and I wrote a > > simple newbus driver for reading and writing a specific I/O port (It is > > basically a simplified copy of the Warner Losh example driver for the > > iOpener Led) > > > > I successfully load my driver: > > > > # kldload ./simple_d.ko > > # > > > > But after doing this I can't find the new node neither under /dev nor > with > > devinfo(8). I assume that the identify, probe and attach functions hasn= 't > > been called. Is this correct? > > > > So is there any way of doing this at run time? I mean NOT during > > auto-configuration. > > > > If I can only do it on boot time ... > > ... should I add a node at the Flattened Device Tree? > > ... should I place the driver in some specific directory? > > ... should I re-compile the kernel with the new driver included? > > I think you need to add the node to the FDT that you boot with. > Once you do that, you=E2=80=99ll be able to load and unload the driver. W= ith > the FDT node, it will probe on boot, find no driver and get on with life. > Later, when you load the driver it will probe all the nodes that don=E2= =80=99t > have drivers, you=E2=80=99re code will get called and life will be good. > > Warner > From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 19:15:23 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2B18FA3 for ; Fri, 6 Mar 2015 19:15:23 +0000 (UTC) Received: from mail-qc0-x233.google.com (mail-qc0-x233.google.com [IPv6:2607:f8b0:400d:c01::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BDA05E5 for ; Fri, 6 Mar 2015 19:15:23 +0000 (UTC) Received: by qcwb13 with SMTP id b13so15280157qcw.12 for ; Fri, 06 Mar 2015 11:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=snvnTQbXuuMW8d7bNw6rWza5PfjKbN/0L1Wq4kVUEOc=; b=ZDm41UAydukOQ7Yah0jq4Q0cStR4AOGX9aG/OaP3z1hZKrE38JZSuMBMV1xmW8GEuF 3xJzhihkz9PAma6mWpMk4Cfz02/es/3PSvrqC9EsvTI8sIi6+2k9atGWWmCeMkJpdL8G GJb/SuA/Ab4g50QmJ8ZueZRjbLazeXdSSRCcFa1kKnw4WdPtNQXFuJxUeiAdYsyyDWfF WgIXsYlD0wOH1O42rGcso6LMqLeqoGs7uooaacjCoYrnb6GdfI6ZpyFb06nEpI0Qszsi VFvT2E4D0m45hfDxOboUURgC1E6MEyRaGBvvAANg/AA/iTO7DSmGu9WPjS986HGdLEKB +Faw== MIME-Version: 1.0 X-Received: by 10.140.234.131 with SMTP id f125mr12473523qhc.36.1425669322814; Fri, 06 Mar 2015 11:15:22 -0800 (PST) Received: by 10.140.37.82 with HTTP; Fri, 6 Mar 2015 11:15:22 -0800 (PST) Date: Fri, 6 Mar 2015 16:15:22 -0300 Message-ID: Subject: load a driver during autoconfiguration From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 19:15:23 -0000 Hello! I just wrote a simple newbus driver that works just fine when I load it manually with kldload(8). Now I'd like the system to load it automatically at boot time. I've already added the corresponding node on the dts file. So my questions are: Can I just place the driver under some directory so that the system can probe it during auto-configuration? Or do I need to re-compile the whole kernel for this? In that case where should I place my sources before compiling? Thank in advance. Regards, Matias.- From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 6 22:55:57 2015 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 670B0530 for ; Fri, 6 Mar 2015 22:55:57 +0000 (UTC) Received: from nm24-vm0.bullet.mail.bf1.yahoo.com (nm24-vm0.bullet.mail.bf1.yahoo.com [98.139.213.161]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D85FFD0 for ; Fri, 6 Mar 2015 22:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425682550; bh=yAX/x9W0puSiUA7BNDQ/zvypVJtYq2ufl3yc0NSuIGo=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=UTBJJeiD3oOR3KZaU5QY0jwUtGVJUPQLtqEC1KNrsqK1TIHYVowNpdkvxXWcImLcg5V0OMZcigL3cUA21rCu82dJUQsu9rtc0slNXEgtMujfdy29+9obsyNMladTG+BiGKiChE6Nz8pJ/EG/NuDbpX4EoCk/8j11Se9ktDx5KLZiZEMrC4thkvkRe45FWY8Rt6SIL3VgVGdD58i2CDBzuDkUACYZ1Powa/aPmpgy2LXT3mxwf9ALF4skiXKWdMA0hh4XjZTyf1+PaCSlXSIQ9BnOTuW3LZDfPmFHUDPx6gGx64yskLNIinDVMg02QfSL6CklutxB8XwAAv66h5snNA== Received: from [98.139.212.153] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 22:55:50 -0000 Received: from [98.139.213.10] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 22:55:50 -0000 Received: from [127.0.0.1] by smtp110.mail.bf1.yahoo.com with NNFMP; 06 Mar 2015 22:55:50 -0000 X-Yahoo-Newman-Id: 209095.53207.bm@smtp110.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: xd_._s0VM1kz.xddcQiiTGPpMRIM5K6sYnQPKB8X6Wwl9M3 82CIuYmtXzJeSbUgHeCsN8KyMbvP7uuxZX4y9y2pFN_2JE2CRFgw0EMUAzLr kS2KGc_lXtbxyzBSgwTNP8hUASQh8V_1vILMd9e0x01WsnZcgRN4phPV.v.R ThqnXKaGEekUJOGFc.oPD7IwhXKm9VDstJmEmlA3JW9OpqJje6q2FQShQlRG rlh_e5GhWJpKE64fgnJHqTYokgNfHmUVqYn7xgDFZj7MWz1Uw3nkRxMd7wqP kEW0.2NBZ0JnwFSK6TTWAsTiTEsuTp0R4MliTRx4DdFqZyZYagjcuEoj2Bb2 rdkLrdhbmh2paRAet527JDYanVClRZ4I_ec1DrMkNaSwJkA3F1LaXJqbbjsm 4ZiL6pXbczAmRL87dY6Qjanl7RyTpOXeBHESy2qPD5ToX5XGPCmljPP_uY.D sOqxawK9J28jWY9nJB7B9U3ZSJKPMhdlU6KuClABXwwXAvYHBphSuQysGvI1 bPyLK0cVVEknufvFBKuiDh3AU X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <54FA307F.8050009@FreeBSD.org> Date: Fri, 06 Mar 2015 17:55:59 -0500 From: Pedro Giffuni User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Kristofer Persson , John Baldwin , "freebsd-drivers@freebsd.org" Subject: Re: Sound Card Driver incorrect References: <2520857.GDCcn57p3O@ralph.baldwin.cx> <54F9D1FC.60708@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 22:55:57 -0000 That's really strange ... I have used OSS successfully but that was in the FreeBSD 9.x series. :( Re-reading your original message, If the driver is supposed to work with snd_es137x, you shouldn't try to load emu10k. Try turning off all drivers, in particular emu10kx, and setting snd_es137x (and the digital sound subsystem) only. Hope that helps, Pedro. On 03/06/15 11:19, Kristofer Persson wrote: > Thanks Pedro, when I rebuild the kernel with no sound or sound drivers, the OS goes into a kernel panic boot loop when OSS loads, it does it even with the card out of the machine so the OSS driver is not quiet working right either. Kris > > > > -----Original Message----- > From: Pedro Giffuni [mailto:pfg@FreeBSD.org] > Sent: Friday, March 06, 2015 8:13 AM > To: John Baldwin; freebsd-drivers@freebsd.org > Cc: Kristofer Persson > Subject: Re: Sound Card Driver incorrect > > Hello; > > On 03/06/15 08:43, John Baldwin wrote: >> On Thursday, March 05, 2015 04:44:53 PM Kristofer Persson wrote: >>> I am trying to get my Creative Labs CT4730 to work correctly on >>> Freebsd 10.1, I verified it is on the compatible hardware list >>> https://www.freebsd.org/releases/10.1R/hardware.html and it should be >>> using driver snd_es137x but according to dmesg it's running from >>> Creative EMU10k1. I rebuilt the KERNEL and told it not to load any >>> of the EMU_10kx and EMU_10K1 but after loading on the new kernel >>> dmesg still shows it loaded under EMU10K1, I have included my info >>> below and my alternate KERNEL config. >>> >>> uname -a: >>> FreeBSD encoder 10.1-RELEASE-p5 FreeBSD 10.1-RELEASE-p5 #8: Wed Mar 4 >>> 16:37:25 PST 2015 root@encoder:/usr/obj/usr/src/sys/ENCODER amd64 >>> >>> dmesg: >>> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on >>> pci17 >>> pcm0: AC97 reset timed out. >>> pcm0: ac97 codec invalid or not present (id == 0) >>> device_attach: pcm0 attach returned 6 >>> pcm0: port 0x3000-0x301f irq 20 at device 0.0 on >>> pci17 >>> pcm0: AC97 reset timed out. >>> pcm0: ac97 codec invalid or not present (id == 0) >>> device_attach: pcm0 attach returned 6 >> I've cc'd pfg@ who made one of the more recent changes to these >> drivers. You might also try freebsd-multimedia@ as I think the folks >> who work on sound are on that list. >> > That was not very recently. It was tested and known to work, unfortunately the driver never really worked for all cards. > > I will take a look to see if I find something strange but you could also try with /usr/ports/audio/oss > > Regards, > > Pedro.