From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 9 16:58:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E89A16A4CE for ; Wed, 9 Jun 2004 16:58:49 +0000 (GMT) Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by mx1.FreeBSD.org (Postfix) with SMTP id BA67843D49 for ; Wed, 9 Jun 2004 16:58:48 +0000 (GMT) (envelope-from joseph@magnesium.net) Received: (qmail 30900 invoked by uid 1248); 9 Jun 2004 16:58:48 -0000 Date: 9 Jun 2004 09:58:48 -0700 Date: Wed, 9 Jun 2004 11:59:00 -0500 From: Joseph Dunn To: freebsd-hackers@freebsd.org Message-ID: <20040609165900.GB355@magnesium.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 10 Jun 2004 12:04:39 +0000 cc: gringoloco1985@hotmail.com Subject: Dell SBLive! (almost) fixed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 16:58:49 -0000 Hello hackers@, I just helped a friend install FreeBSD 5.2.1 on his Dell desktop machine, and we've been struggling to get his sound card working. His system has an SBLive! card, we were unable to use it with the stock snd_emu10k1 driver. However... pciconf -lv output: none3@pci2:2:0: class=0x040100 card=0x10031102 chip=0x00061102 rev=0x00 hdr=0x00 vendor = 'Creative Labs' device = 'emu10k1x Soundblaster Live! 5.1' class = multimedia subclass = audio relevant lines from /usr/src/sys/dev/sound/pci/emu10k1.c: #define EMU10K1_PCI_ID 0x00021102 #define EMU10K2_PCI_ID 0x00041102 As you can see, Dell has apparently changed the card's PCI ID, and thus the driver is not detecting it. I modified emu10k1.c to include the PCI ID (see attached diff). Now, the new snd_emu10k1 driver detects the card: pcm0: port 0xdf20-0xdf3f irq 17 at device 2.0 on pci2 pcm0: This *appears* to be working, but when I tried to play an mp3 with mpg123, I got this error, and no sound: pcm0:play:0: play interrupt timeout, channel dead Could anyone with experience in this area venture a guess as to the problem? Thanks, Joseph