Subject: Re: audio problems
To: Roman Usul Skula <usul@eik.pl>
From: Jaromír <jdolecek@netbsd.org>
List: port-i386
Date: 03/25/2001 13:08:14
Well, first guess:

You should either set the NeoMagic to sb-compat mode, or use neo
driver, i.e. add this to your kernel config:

neo*   at pci? dev ? function ?
audio* at neo?

Jaromir

Roman Usul Skula wrote:
> I'm having problems with setting up sound on a ThinkPad 390 notebook.
> Can you please provide me any solutions or hints? Below i attach output
> of 'uname -a', parts of 'dmesg' output, parts of kernel configuration,
> and the mpg123 behaviour. If possible, please CC an answer to:
> mailto:usul@eik.pl. Thank you.
> 
> 
> 
> 
> NetBSD arrakin 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (ARRAKIN) #3: Sat Mar 24
> 11:22:46 CET 2001    
> root@arrakin:/usr/src/sys/arch/i386/compile/ARRAKIN i386
> 
> 
> 
> 
> NetBSD 1.5.1_ALPHA (ARRAKIN) #3: Sat Mar 24 11:22:46 CET 2001
>     root@arrakin:/usr/src/sys/arch/i386/compile/ARRAKIN
> cpu0: Intel Pentium/MMX (Tillamook) (586-class)
> BIOS32 rev. 0 found at 0xfd7e0
> PCI BIOS rev. 2.1 found at 0xfda05
> pcibios: config mechanism [1][x], special cycles [x][x], last bus 3
> PCI IRQ Routing Table rev. 1.0 found at 0xfdf80, size 96 bytes (4
> entries)
> PCI Interrupt Router at 000:02:0 (Intel 82371FB PCI-to-ISA Bridge
> (PIIX))
> pciintr_link_init: bus 0 device 3 link 0x60: bad irq bitmap 0x8eb8,
> should be 0xdef8
> pciintr_link_init: bus 0 device 5 link 0x61: bad irq bitmap 0x8eb8,
> should be 0xdef8
> pciintr_link_init: bus 0 device 4 link 0x60: bad irq bitmap 0xdef8,
> should be 0x8eb8
> pciintr_link_init: bus 0 device 4 link 0x62: bad irq bitmap 0x8eb8,
> should be 0xdef8
> ------------------------------------------
>   device vendor product pin PIRQ IRQ stage
> ------------------------------------------
> 000:02:2 0x8086 0x7112   D  0x03  11  0    already assigned
> 000:03:0 0x104c 0xac16   A  0x00  11  0    already assigned
> 000:03:1 0x104c 0xac16   A  0x00  11  0    already assigned
> 000:05:0 0x10c8 0x0005   A  0x00  11  0    already assigned
> 000:05:1 0x10c8 0x8005   B  0x01  11  0    already assigned
> ------------------------------------------
> PCI bridge 0: primary 0, secondary 1, subordinate 1
> PCI bridge 1: primary 0, secondary 2, subordinate 2
> PCI bus #2 is the last bus
> [System BIOS Setting]-----------------------
>   device vendor product
>   register space address    size
> --------------------------------------------
> 000:00:0 0x8086 0x7100 
> 		[OK]
> 000:02:0 0x8086 0x7110 
> 		[OK]
> 000:02:1 0x8086 0x7111 
> 	20h port 0x0000fcd0 0x00000010
> 		[OK]
> 000:02:2 0x8086 0x7112 
> 	20h port 0x0000fce0 0x00000020
> 		[OK]
> 000:02:3 0x8086 0x7113 
> 		[OK]
> 000:03:0 0x104c 0xac16 
> 	10h mem  0x04000000 0x00001000
> 		[OK]
> 000:03:1 0x104c 0xac16 
> 	10h mem  0x04100000 0x00001000
> 		[OK]
> 000:05:0 0x10c8 0x0005 
> 	10h mem  0xfd000000 0x01000000
> 	14h mem  0xfe800000 0x00400000
> 	18h mem  0xfed00000 0x00100000
> 		[OK]
> 000:05:1 0x10c8 0x8005 
> 	10h mem  0xfe400000 0x00400000
> 	14h mem  0xfec00000 0x00100000
> 		[OK]
> --------------------------[  0 devices bogus]
> WARNING: can't reserve area for I/O APIC.
> mainbus0 (root)
> pnpbios0 at mainbus0: nodes 18, max len 145
> pnpbios0: not docked
> pci0 at mainbus0 bus 0: configuration mode 1
> pci0: i/o space, memory space enabled
> pchb0 at pci0 dev 0 function 0
> pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
> pcib0 at pci0 dev 2 function 0
> pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
> vga1 at pci0 dev 5 function 0: Neomagic MagicMedia 256AV VGA (rev. 0x12)
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> 
> ******
> 
> Neomagic MagicMedia 256AV Audio (audio multimedia, revision 0x12) at
> pci0 dev 5 function 1 not configured
> 
> ******
> 
> isa0 at pcib0
> pcppi0 at isa0 port 0x61
> sysbeep0 at pcppi0
> isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> isapnp0: no ISA Plug 'n Play devices found
> cbb0: interrupting at irq 11
> cbb0: cacheline 0x0 lattimer 0x20
> cbb0: bhlc 0x821000 lscp 0x20010100
> cbb1: interrupting at irq 11
> cbb1: cacheline 0x0 lattimer 0x20
> cbb1: bhlc 0x821000 lscp 0x20020200
> biomask ef65 netmask ef65 ttymask ffe7
> 
> 
> 
> 
> #	$NetBSD: GENERIC_LAPTOP,v 1.2.2.3 2000/12/12 21:28:46 he Exp $
> #
> #	GENERIC -- everything that's currently supported
> #
> 
> include "arch/i386/conf/std.i386"
> ident		"ARRAKIN"
> options 	I586_CPU
> 
> # Device configuration
> mainbus0 at root
> 
> # Plug-and-Play BIOS and attached devices
> pnpbios*	at mainbus?
> 
> # mainboard audio chips
> sb*		at pnpbios? index ?	# NeoMagic 256AV in sb mode
> 
> # Audio Devices
> 
> # PCI audio devices
> #auvia*	at pci? dev ? function ?	# VIA VT82C686A integrated AC'97 Audio
> #clcs*	at pci? dev ? function ?	# Cirrus Logic CS4280
> #cmpci*	at pci? dev ? function ?	# C-Media CMI8338/8738
> #eap*	at pci? dev ? function ?	# Ensoniq AudioPCI
> #eso*	at pci? dev ? function ?	# ESS Solo-1 PCI AudioDrive
> #fms*	at pci? dev ? function ?	# Forte Media FM801
> #sv*	at pci? dev ? function ?	# S3 SonicVibes
> 
> # ISA Plug-and-Play audio devices
> #ess*	at isapnp?			# ESS Tech ES1887, ES1888, ES888 audio
> #guspnp*	at isapnp?			# Gravis Ultra Sound PnP audio
> sb*	at isapnp?			# SoundBlaster-compatible audio
> #wss*	at isapnp?			# Windows Sound System
> #ym*	at isapnp?			# Yamaha OPL3-SA3 audio
> sb0	at isa? port 0x220 irq 5 drq 1 drq2 5	# SoundBlaster
> #wss0	at isa? port 0x530 irq 10 drq 0	drq2 1	# Windows Sound System
> 
> audio*	at sb?
> #audio*	at wss?
> 
> mpu*	at isa? port 0x330 irq 9        # MPU401 or compatible card
> mpu*	at sb?
> 
> midi*	at sb?			# SB1 MIDI port
> 
> #spkr0	at pcppi?		# PC speaker
> 
> 
> 
> 
> High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
> Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
> Uses code from various people. See 'README' for more!
> THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
>  
> Playing MPEG stream from 05 - Never, Neverland.mp3 ...
> MPEG 1.0 layer III, 64 kbit/s, 44100 Hz joint-stereo
> No supported rate found!
> 
> 
> 
> 
> That seems to be it...
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
 ***  Wanna a real operating system ? Go and get NetBSD, dammit!  ***