From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 10 13:21:56 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 5198A16A4CE for ; Thu, 10 Jun 2004 13:21:56 +0000 (GMT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9854343D4C for ; Thu, 10 Jun 2004 13:21:55 +0000 (GMT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i5ADQfKJ025269; Thu, 10 Jun 2004 09:26:41 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i5ADQfs1025268; Thu, 10 Jun 2004 09:26:41 -0400 (EDT) Date: Thu, 10 Jun 2004 09:26:41 -0400 From: Mathew Kanner To: Joseph Dunn Message-ID: <20040610132641.GA21995@cnd.mcgill.ca> References: <20040609223348.GA505@magnesium.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040609223348.GA505@magnesium.net> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca cc: freebsd-hackers@freebsd.org cc: gringoloco1985@hotmail.com Subject: Re: 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: Thu, 10 Jun 2004 13:21:56 -0000 On Jun 09, Joseph Dunn wrote: > 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 Hi Joseph, I seem to recall a couple of open PRs on this particular issue. I think it's more complicated than just setting the PCIID of the device, and I've never actually heard of anyone hacking the emu10k1 to support the DELL OEM version of the card. I would venture a guess and say if ALSA can do, then we have a fighting chance, though I haven't looked ALSA to see what they do in a long time... Please keep me up to date on your progress. Thanks, --Mat -- Canada is a country whose main exports are hockey players and cold fronts. Our main imports are baseball players and acid rain. - Pierre Elliott Trudeau