Date: Sat, 29 Jul 2006 12:02:06 +0200 From: Matthias Apitz <guru@Sisis.de> To: Joel Dahl <joel@freebsd.org> Cc: freebsd-multimedia@freebsd.org Subject: Re: azalia(4) from NetBSD Message-ID: <20060729100206.GA19424@rebelion.Sisis.de> In-Reply-To: <1153490847.666.11.camel@localhost> References: <44C04B33.7030305@FreeBSD.org> <1153490847.666.11.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, July 21, 2006 a las 04:07:27PM +0200, Joel Dahl escribió: > On Fri, 2006-07-21 at 00:34 -0300, Marcus Alves Grando wrote: > > Multimidia, > > > > I have plan to import azalia(4) from NetBSD to FreeBSD. Can someone show > > me what's need? How i can proceed? That's possible? > > I'm not sure this is such a good idea. Stephane E. Potvin and a few > others are already working on HDA support and several patches are > available in the list archives. You'd probably only be duplicating work > if you decide to port the azalia driver from NetBSD, so if you really > want to help, you should take a look at the following patches: > > The original driver from Stephane E. Potvin: > http://www.leidinger.net/FreeBSD/hdac_20060525.tbz > > >From Andrea Bittau: > http://darkircop.org/hdac.tgz > http://darkircop.org/hdac-rec.tgz > > >From Wesley Morgan: > http://files.chemikals.org/hdac.tgz > > >From Daniel Eischen: > http://people.freebsd.org/~deischen/hdac.tgz > > I can't stop you from porting the azalia driver, but I would like to > encourage you to at least take a look at what we already have before you > do anything. :-) I have one laptop with the following sound chip: none0@pci0:27:0: class=0x040300 card=0x107c1734 chip=0x26688086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82801FB/FR/FW/FRW Intel High DefiNition Audio Controller' class = multimedia which works with the driver from OpenSound (I say this to ensure that it is really playing sound :-)). Today I gave a try to three of the above mentioned drivers: 1. From Daniel Eischen: http://people.freebsd.org/~deischen/hdac.tgz this gives: # kldload ./hdac.ko # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <Generic High Definition Audio Controller> (1p/0r/0v channels default) # cat hdac.ko > /dev/dsp # but no noise comes out. In /var/log/messages I've: Jul 29 09:58:56 farc kernel: pcm0: <Generic High Definition Audio Controller> mem 0xffef8000-0xffefbfff irq 16 at device 27.0 on pci0 Jul 29 09:58:56 farc kernel: init 0xc2817e80 Jul 29 09:58:56 farc kernel: pcm0: Output Streams: 4, Input Streams: 4, Bidirectional Streams: 0 Jul 29 09:58:56 farc kernel: pcm0: CORB Size: 256, RIRB Size: 256 Jul 29 09:58:56 farc kernel: pcm0: Vendor info: 10573055 1057 3055 7 0 2 Jul 29 09:58:56 farc kernel: pcm0: Vendor info: 10ec0880 10ec 880 8 0 1 Jul 29 09:58:56 farc kernel: pcm0: <modem> at device 0:1 (no driver attached) Jul 29 09:58:56 farc kernel: pcm0: <audio> at device 1:1 (no driver attached) Jul 29 09:58:56 farc kernel: pcm0: PW 0 Jul 29 09:58:56 farc kernel: pcm0: start: 2 endnode: 38 ... Jul 29 09:58:57 farc kernel: pcm0: sorbo_conf_output: codec: 0 node: 36 Jul 29 09:58:57 farc kernel: pcm0: node 37 type 0 cap 0 Jul 29 09:58:57 farc kernel: pcm0: Config 25f1c00 Jul 29 09:58:57 farc kernel: pcm0: Cap 0 sf 0 st 0 Jul 29 09:58:57 farc kernel: pcm0: Set 0:37 0 Jul 29 09:58:57 farc kernel: pcm0: sorbo_conf_output: codec: 0 node: 37 2. From Andrea Bittau: http://darkircop.org/hdac.tgz # kldload ./hdac.ko # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <Generic High Definition Audio Controller> w00t (1p/0r/0v channels default) # cat hdac.ko > /dev/dsp same result: nothing to be hear and in messages I have: Jul 29 10:03:14 farc kernel: pcm0: <Generic High Definition Audio Controller> mem 0xffef8000-0xffefbfff irq 16 at device 27.0 on pci0 Jul 29 10:03:14 farc kernel: init 0xc2bd5000 Jul 29 10:03:14 farc kernel: pcm0: Output Streams: 4, Input Streams: 4, Bidirectional Streams: 0 Jul 29 10:03:14 farc kernel: pcm0: CORB Size: 256, RIRB Size: 256 Jul 29 10:03:14 farc kernel: pcm0: <modem> at device 0:1 (no driver attached) Jul 29 10:03:14 farc kernel: pcm0: <audio> at device 1:1 (no driver attached) Jul 29 10:03:14 farc kernel: pcm0: Cap 0 sf 0 st 0 Jul 29 10:03:14 farc kernel: pcm0: Set 0:3 0 I'm missing something? I tried to modify the INTEL_82801G in hdac.c to match the value of the chip (0x2668). This give a change in /dev/sndstat to: # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: <Intel 82801G High Definition Audio Controller> w00t (1p/0r/0v channels default) but no better sound :-) Btw: With the driver from OS I have had the same problem too that no sound came out a the beginning. Only after issuing a command # /usr/local/lib/oss/bin/ossmix connector.orange.mute OFF switches somehow the mute off. 3. I gave a try to the driver http://files.chemikals.org/hdac.tgz but no sound as well. Interestingly a # mixer 100:100 produces in /var/log/messages the line: Jul 29 10:47:18 farc kernel: Amp 11: mute(0:0) gain(0:0) which let me think in that mute-problem. What can I do to help you all to help me with that sound? matthias -- Matthias Apitz Manager Technical Support - OCLC PICA GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <m.apitz@oclcpica.org> - w http://www.oclcpica.org/ http://guru.UnixLand.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060729100206.GA19424>