Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 12:19:37 -0500 (EST)
From:      <Florent.Parent@viagenie.qc.ca>
To:        <freebsd-hackers@freebsd.org>
Subject:   newpcm / csa driver question
Message-ID:  <Pine.BSF.4.32.0101311157460.629-100000@blues.viagenie.qc.ca>

next in thread | raw e-mail | index | archive | help

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: <ATI model 4c46 graphics accelerator> at 0.0 irq 5
> /kernel: pcic-pci0: <TI PCI-1450 PCI-CardBus Bridge>
> mem 0x50000000-0x50000fff irq 5 at device 2.0 on pci0
> /kernel: csa0: <Crystal Semiconductor CS4614/4622/4624 Audio
> 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: <Crystal Semiconductor CS4614/4622/4624 Audio accelerator/4280
> > Audio controller> mem 0xf0000000-0xf00fffff,0xf0122000-0xf0122fff irq 11
> > at device 5.0 on pci0
> > pcm0: <CS461x PCM Audio> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0101311157460.629-100000>