From owner-freebsd-hackers Wed Jan 31 9:15:31 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from blues.viagenie.qc.ca (blues.viagenie.qc.ca [206.123.31.135]) by hub.freebsd.org (Postfix) with ESMTP id EE78437B4EC for ; Wed, 31 Jan 2001 09:15:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by blues.viagenie.qc.ca (8.11.1/8.11.1) with ESMTP id f0VHJb501328 for ; Wed, 31 Jan 2001 12:19:38 -0500 (EST) (envelope-from Florent.Parent@viagenie.qc.ca) Date: Wed, 31 Jan 2001 12:19:37 -0500 (EST) From: X-X-Sender: To: Subject: newpcm / csa driver question Message-ID: X-PGP-Fingerprint: B7 18 45 43 97 7C BE 73 2B CC 23 D5 3E 20 4F C9 2A 90 87 2C MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I sent this message on the freebsd-mobile mailing list. Since it is related to the newpcm/csa driver, I think folks on the hackers list may be able to help. Summary: - newpcm/csa driver on 4.2-stable doesn't work on my thinkpad a20p - Same laptop with NetBSD 1.5, it works fine (clcs driver) Question: - Should I try to "hack" the current csa/newpcm bridge stuff, or port the clcs driver from NetBSD I've inserted debug code (read printf's) inside the pcm and csa driver and the interrupt routine inside csa.c never gets called. The pcm routine writes down to the snd0 device and eventually times out with "play interrupt timeout, channel dead". Suggestions welcome. Florent. -- Florent Parent Viagénie inc. http://www.viagenie.qc.ca +1.418.656.9254 ---------- Forwarded message ---------- Date: Tue, 30 Jan 2001 22:38:30 -0500 (EST) From: Florent.Parent@viagenie.qc.ca To: mobile@FreeBSD.ORG Subject: Re: IBM ThinkPad A20p (sound) Followup: I've installed NetBSD 1.5 on the exact same laptop. The sound device is correctly detected and works fine. So the problem is really with the csa driver in FreeBSD. The "newpcm" driver seems to use a bridge between the pcm and csa driver. In NetBSD/OpenBSD, it a driver on its own (clcs). My first guess to make this work would be to port the clcs driver to FreeBSD. Can anyone give me a do/don't about this (bad idea/too much work/...) ? Or is anyone currently on this ? Florent. (NetBSD 1.5 output follows) Jan 30 16:04:39 /netbsd: clcs0 at pci0 dev 5 function 0: Cirrus Logic CS4280 Cr ystalClear Audio Interface (rev. 0x01) Jan 30 16:04:39 /netbsd: clcs0: interrupting at irq 5 Jan 30 16:04:39 /netbsd: clcs0: CRY20 codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D Jan 30 16:04:39 /netbsd: audio0 at clcs0: full duplex, independent Jan 30 16:04:39 /netbsd: midi0 at clcs0: CS4280 MIDI UART On Tue, 23 Jan 2001 Florent.Parent@viagenie.qc.ca wrote: > > I also have an A20p running FreeBSD-4.2 STABLE. Here's my findings: > > 1- Tried the pcm driver: no success > > 2- Tried the OSS driver from 4Front tech. (http://www.opensound.com/) > I was able to get some sound with the demo driver, but the system hangs > when I start the X server. > > The reason is that the A20p shares the same IRQ between the graphics > adapter, a pcmcia bus and the sound card. You can go in the BIOS under the > PCI configuration to select the IRQ per PCI bus, but the it seems that the > sound/pcmcia/graphics are stuck on the same PCI bus (I've put irq 5 for > the 1st PCI bus): > > /kernel: pci1: at 0.0 irq 5 > /kernel: pcic-pci0: > mem 0x50000000-0x50000fff irq 5 at device 2.0 on pci0 > /kernel: csa0: accelerator/4280 Audio controller> mem 0xf0000000-0xf00fffff, > 0xf0122000-0xf0122fff irq 5 at device 5.0 on pci0 > > Also note that you have to deactivate the BIOS APM support (see url below) > > I would really love to get that sound card running. Question is: can > FreeBSD support a sound device that shares its IRQ ? A collegue of mine > has the same laptop running Linux and the sound device works. Check out > http://www.zhlive.ch/zhl_contents_linux.html for more info > > If anyone has more info, please post to the list. > > Florent. > > On Tue, 16 Jan 2001, Anders Andersson wrote: > > > Hi! > > > > I run 4.2-STABLE on mu thinkpad a20p, works like a charm, except sound. > > > > dmesg: > > > > csa0: > Audio controller> mem 0xf0000000-0xf00fffff,0xf0122000-0xf0122fff irq 11 > > at device 5.0 on pci0 > > pcm0: on csa0 > > > > But when trying to play something, all I get is: > > > > (nothing) > > > > no sound, nothing in logs. > > > > Any hints? > > > > -- Florent Parent Viagénie inc. http://www.viagenie.qc.ca +1.418.656.9254 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message