vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hiya guys. hopefully someone can shed some light on this because hours of googling has failed to find an answer. I am using OpenBSD 3,4 i386 release. My motherboard has an ICH5 (82801EB) chipset on it, with a AC97 audio device embedded in it. I believe the driver that openbsd uses is the "auich" driver. I have 2 machines here, my other one has an 82801AA chipset in it and the sound works fine there. heres a snippet from my dmesg: cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 "Intel 82801EB/ER SMB" rev 0x02 at pci0 dev 31 function 3 not configured auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq 10, ICH5 AC97 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 so wheres audio0 at auich0 ????? the device appears to be detected but not configured? "man auich" is useless so please dont tell me rtfm! I've done it. Device uses function 5 which doesnt mention that its "not configured" so it would work right?!?!? Has anyone had any luck getting this device to work?? regards, alex. |
| |||
| > auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq > 10, ICH5 AC97 > so wheres audio0 at auich0 ????? > the device appears to be detected but not configured? > "man auich" is useless so please dont tell me rtfm! I've done it. > Device uses function 5 which doesnt mention that its "not configured" > so it would work right?!?!? Can you recompile a kernel with this patch applied, and let us know if this solves the issue? Thanks in advance. Index: auich.c ================================================== ================= RCS file: /cvs/src/sys/dev/pci/auich.c,v retrieving revision 1.37 diff -u -p -r1.37 auich.c --- auich.c 2003/10/10 04:38:56 1.37 +++ auich.c 2004/04/02 07:56:45 @@ -400,11 +400,14 @@ auich_attach(parent, self, aux) status = bus_space_read_4(sc->iot, sc->aud_ioh, AUICH_GSTS); if (!(status & AUICH_PCR)) { /* reset failure */ if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_INTEL && - PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801DB_ACA) { + (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801DB_ACA || + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801EB_ACA)) { /* MSI 845G Max never return AUICH_PCR */ sc->sc_ignore_codecready = 1; - } else + } else { + printf("%s: reset failed!\n", sc->sc_dev.dv_xname); return; + } } sc->host_if.arg = sc; |
| |||
| Miod Vallat wrote: > >> auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: >> irq 10, ICH5 AC97 > >> so wheres audio0 at auich0 ????? >> the device appears to be detected but not configured? >> "man auich" is useless so please dont tell me rtfm! I've done it. >> Device uses function 5 which doesnt mention that its "not configured" >> so it would work right?!?!? > > Can you recompile a kernel with this patch applied, and let us know if > this solves the issue? > > Thanks in advance. > > Index: auich.c > ================================================== ================= > RCS file: /cvs/src/sys/dev/pci/auich.c,v > retrieving revision 1.37 > diff -u -p -r1.37 auich.c > --- auich.c 2003/10/10 04:38:56 1.37 > +++ auich.c 2004/04/02 07:56:45 > @@ -400,11 +400,14 @@ auich_attach(parent, self, aux) > status = bus_space_read_4(sc->iot, sc->aud_ioh, AUICH_GSTS); > if (!(status & AUICH_PCR)) { /* reset failure */ > if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_INTEL && > - PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801DB_ACA) { > + (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801DB_ACA || > + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_INTEL_82801EB_ACA)) { > /* MSI 845G Max never return AUICH_PCR */ > sc->sc_ignore_codecready = 1; > - } else > + } else { > + printf("%s: reset failed!\n", sc->sc_dev.dv_xname); > return; > + } > } > > sc->host_if.arg = sc; i havent built a custom kernel under openbsd yet.. so not sure what needs to be done. built plenty of them under FreeBSD. Is it anything like the way its done under freebsd? being the impatient person I am, i went out and bought an SB live card. Put this in this afternoon, it works, but rather poorly, the sound skips/repeats. I have compiled kde 3 from scratch which is using the OSS. I tried making the audio buffer as large as allowed, it helped a bit, but if I even open a terminal window and drag it around the screen, the sound stuffs up. lol System is a Pentium 4, 2Ghz 1GB Dual Channel DDR 400 RAM 80GB ATA-100 HD Nvidia Geforce4 MX440 128M Is the SB Live driver under openbsd broken? surely my system has enough resources.. dunno what the problem is there.. not having much luck here with sound anyways.. back to the ICH5, how do I apply the patch? alex. |
| |||
| > i havent built a custom kernel under openbsd yet.. so not sure what needs to > be done. built plenty of them under FreeBSD. Is it anything like the way > its done under freebsd? Pretty close: refer to FAQ 5.4 for details. > Is the SB Live driver under openbsd broken? surely my system has enough > resources.. dunno what the problem is there.. I can't say anything without a complete dmesg of your system. > anyways.. back to the ICH5, how do I apply the patch? Save the patch to a textfile, tehn cd /usr/src/sys/dev/pci patch < the_file_which_contains_the_patch and recompile a kernel. |
| |||
| Miod Vallat wrote: >> i havent built a custom kernel under openbsd yet.. so not sure what needs >> to be done. built plenty of them under FreeBSD. Is it anything like the >> way its done under freebsd? > > Pretty close: refer to FAQ 5.4 for details. > >> Is the SB Live driver under openbsd broken? surely my system has enough >> resources.. dunno what the problem is there.. > > I can't say anything without a complete dmesg of your system. > >> anyways.. back to the ICH5, how do I apply the patch? > > Save the patch to a textfile, tehn > cd /usr/src/sys/dev/pci > patch < the_file_which_contains_the_patch > and recompile a kernel. thanks for the advice, i'll give that a go. here is my dmesg: OpenBSD 3.4 (GENERIC) #18: Wed Sep 17 03:34:47 MDT 2003 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium 4 ("GenuineIntel" 686-class) 2.02 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SIMD,SI MD2,SS,HTT,TM real mem = 1073262592 (1048108K) avail mem = 990097408 (966892K) using 4278 buffers containing 53764096 bytes (52504K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(2f) BIOS, date 12/25/03, BIOS32 rev. 0 @ 0xfb4c0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xdaf4 pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfda10/224 (12 entries) pcibios0: PCI Exclusive IRQs: 9 10 11 pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371SB PCI-ISA" rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc0000/0xf000 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82865G/PE/P CPU to I/0 Bridge 1" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82865G/PE/P CPU to AGP Bridge" rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "Nvidia GeForce4 MX 440 AGP 8x" rev 0xa4 wsdisplay0 at vga1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 3 function 0 "Intel 82865G/PE/P CPU to CSA Bridge" rev 0x02 pci2 at ppb1 bus 2 em0 at pci2 dev 1 function 0 "Intel PRO/1000 (82547EI)" rev 0x00: irq 11, address: 00:0d:61:43:2c:a5 uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: irq 11 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: irq 10 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered "Intel 82801EB/ER USB" rev 0x02 at pci0 dev 29 function 7 not configured ppb2 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2 pci3 at ppb2 bus 3 "AT&T/Lucent K56flex DSVD LTMODEM" rev 0x01 at pci3 dev 1 function 0 not configured emu0 at pci3 dev 3 function 0 "Creative Labs SoundBlaster Live" rev 0x0a: irq 10 ac97: codec id 0x454d4328 ac97: codec features 18 bit DAC, 18 bit ADC, No 3D Stereo audio0 at emu0 "Creative Labs SoundBlaster Live Digital Input" rev 0x0a at pci3 dev 3 function 1 not configured "Texas Instruments TSB43AB23 FireWire" rev 0x00 at pci3 dev 5 function 0 not configured pcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02 pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <ST380011A> wd0: 16-sector PIO, LBA48, 76319MB, 16383 cyl, 16 head, 63 sec, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX230E, QYS1> SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: <SAMSUNG, DVD-ROM SD-616Q, F403> SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 "Intel 82801EB/ER SMB" rev 0x02 at pci0 dev 31 function 3 not configured isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask cc40 netmask cc40 ttymask dcc2 pctr: user-level cycle counter enabled dkcsum: wd0 matched BIOS disk 80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 |
| |||
| In article <c4ifja$qeq$1@lust.ihug.co.nz>, alex wrote: > Hiya guys. hopefully someone can shed some light on this because > hours of googling has failed to find an answer. I am using OpenBSD > 3,4 i386 release. My motherboard has an ICH5 (82801EB) chipset on it, > with a AC97 audio device embedded in it. I believe the driver that > openbsd uses is the "auich" driver. I have 2 machines here, my other > one has an 82801AA chipset in it and the sound works fine there. > heres a snippet from my dmesg: > > cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 > cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 > "Intel 82801EB/ER SMB" rev 0x02 at pci0 dev 31 function 3 not configured > auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq > 10, ICH5 AC97 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 > > so wheres audio0 at auich0 ????? > the device appears to be detected but not configured? > "man auich" is useless so please dont tell me rtfm! I've done it. > Device uses function 5 which doesnt mention that its "not configured" > so it would work right?!?!? > > Has anyone had any luck getting this device to work?? > > regards, alex. > FYI: A recent snapshot shows this: OpenBSD 3.5 (GENERIC) #27: Wed Mar 24 03:03:20 MST 2004 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC (...) "Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq 3, ICH5 AC97 ac97: codec id 0x41445374 (Analog Devices AD1981B) ac97: codec features headphone, 20 bit DAC, No 3D Stereo audio0 at auich0 auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz -- Mark |
| |||
| > FYI: A recent snapshot shows this: > > OpenBSD 3.5 (GENERIC) #27: Wed Mar 24 03:03:20 MST 2004 > deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC > (...) > "Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured > auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: > irq 3, ICH5 AC97 > ac97: codec id 0x41445374 (Analog Devices AD1981B) > ac97: codec features headphone, 20 bit DAC, No 3D Stereo > audio0 at auich0 > auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz > > -- Mark are u quite sure?? I just upgraded to the same snapshot and it still doesnt work. heres the dmesg: OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.00GHz ("GenuineIntel" 686-class) 2.02 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36, CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM real mem = 1073262592 (1048108K) avail mem = 989872128 (966672K) cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 "Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq 10, ICH5 AC97 isa0 at pcib0 isadma0 at isa0 I hope its fixed before the official 3.5 release. alex ------------------------------------------------------------------ entire dmesg below: ------------------- OpenBSD 3.5 (GENERIC) #34: Mon Mar 29 12:24:55 MST 2004 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.00GHz ("GenuineIntel" 686-class) 2.02 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CF LUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM real mem = 1073262592 (1048108K) avail mem = 989872128 (966672K) using 4278 buffers containing 53764096 bytes (52504K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(2f) BIOS, date 12/25/03, BIOS32 rev. 0 @ 0xfb4c0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xdaf4 pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfda10/208 (11 entries) pcibios0: PCI Exclusive IRQs: 3 5 7 10 11 pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371SB ISA" rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc0000/0xf000 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel 82865G/PE/P CPU-I/0-1" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82865G/PE/P CPU-AGP" rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "Nvidia GeForce4 MX 440 AGP 8x" rev 0xa4 wsdisplay0 at vga1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 3 function 0 "Intel 82865G/PE/P CPU-CSA" rev 0x02 pci2 at ppb1 bus 2 em0 at pci2 dev 1 function 0 "Intel PRO/1000 (82547EI)" rev 0x00: irq 5, address : 00:0d:61:43:2c:a5 ppb2 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2 pci3 at ppb2 bus 3 "AT&T/Lucent K56flex DSVD LTMODEM" rev 0x01 at pci3 dev 1 function 0 not configu red "Texas Instruments TSB43AB23 FireWire" rev 0x00 at pci3 dev 5 function 0 not con figured pcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02 pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <ST380011A> wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX230E, QYS1> SCSI0 5/cdrom removabl e atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd1 at scsibus1 targ 0 lun 0: <SAMSUNG, DVD-ROM SD-616Q, F403> SCSI0 5/cdrom rem ovable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 "Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97 Audio" rev 0x02: irq 10, ICH5 AC97 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> sysbeep0 at pcppi0 it0 at isa0 port 0x290/8: IT87 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask c040 netmask c060 ttymask d062 pctr: user-level cycle counter enabled dkcsum: wd0 matched BIOS disk 80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 |
| ||||
| On Mon, 5 Apr 2004, alex wrote: > > FYI: A recent snapshot shows this: > > audio0 at auich0 > > auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz > > > > -- Mark > are u quite sure?? > > I just upgraded to the same snapshot and it still doesnt work. his hardware is different than yours. works there, but not for you. the patch to fix your case hasn't been committed because you didn't tell anybody if it worked. please test it. > I hope its fixed before the official 3.5 release. no, it's too late for that. -- |