On Tue, May 23, 2006 at 01:44:52PM +0200, Tim Kornau wrote:
> Hello misc@
> 
> I have a Problem with my specific ad1981b "Intel 82801DB AC97"
> Soundcard in my Sony Vaio Tr2/B. Sometimes xmms does start to play
> but there is no sound sometimes it does not even start.
> 
> I did build a GENERIC Kernel with AUDIO_DEBUG enabled and tried
> poking around with the settings of mixerctl and audioctl with no
> effects. On Linux with the ALSA Drivers the Soundcard works out of
> the Box and i want to debug the Card to get it to work under OpenBSD
> as well. Therefor my question is is there something i can do to see
> where the differences between the state of the card in linux and
> openbsd is. I thought of reading the registers and diffing the
> values and if there are registers set in linux that are not set in
> openbsd and so on. To have the Bugreport kind of complete i will
> attach the information of the dmesg and mixer / audioctl settings
> maybe i have overlooked something obvious.

you should check if there are any interrupts coming from the device
while playing. for debugging purposes i might suggest you use some
of them mere mortals' music palyers like mpg123 or madplay...
or even better cat(1).

> $ mixerctl -a        
> outputs.master=255,255
> outputs.master.mute=off
> outputs.mono=255
> outputs.mono.mute=off
> outputs.mono.source=mixerout
> outputs.headphones=255,255
> outputs.headphones.mute=off
> outputs.bass=255
> outputs.treble=255
> inputs.speaker=255
> inputs.speaker.mute=off
> inputs.phone=191
> inputs.phone.mute=off
> inputs.mic=191
> inputs.mic.mute=off
> inputs.mic.preamp=on
> inputs.mic.source=mic0
> inputs.line=191,191
> inputs.line.mute=off
> inputs.cd=191,191
> inputs.cd.mute=off
> inputs.video=255,255
> inputs.video.mute=off
> inputs.aux=191,191
> inputs.aux.mute=off
> inputs.dac=191,191
> inputs.dac.mute=off
> record.source=mic
> record.volume=255,255
> record.volume.mute=off
> record.mic=0
> record.mic.mute=off
> outputs.loudness=off
> outputs.spatial=off
> outputs.spatial.center=0
> outputs.spatial.depth=0
> outputs.surround=255,255
> outputs.surround.mute=off
> outputs.center=255
> outputs.center.mute=off
> outputs.lfe=255
> outputs.lfe.mute=off
> outputs.extamp=off
> 
> 
>  udioctl -a 
> name=ICH4 AC97
> version=0x03
> config=auich0
> encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
> properties=full_duplex,mmap,independent
> full_duplex=0
> fullduplex=0
> blocksize=8832
> hiwat=7
> lowat=5
> monitor_gain=0
> mode=playsync
> play.rate=44100
> play.channels=2
> play.precision=16
> play.encoding=slinear_le
> play.gain=127
> play.balance=32
> play.port=0x0
> play.avail_ports=0x0
> play.seek=47616
> play.samples=30691200
> play.eof=0
> play.pause=0
> play.error=0
> play.waiting=0
> play.open=1
> play.active=1
> play.buffer_size=65536
> record.rate=8000
> record.channels=1
> record.precision=8
> record.encoding=mulaw
> record.gain=191
> record.balance=32
> record.port=0x1
> record.avail_ports=0x7
> record.seek=0
> record.samples=0
> record.eof=0
> record.pause=0
> record.error=0
> record.waiting=0
> record.open=0
> record.active=0
> record.buffer_size=65536
> record.errors=0
> 
> -- 
> Darksun rising over blood red sea

> OpenBSD 3.9-current (GENERIC) #1: Tue May 23 02:01:30 CEST 2006
>     [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Pentium(R) M processor 1000MHz ("GenuineIntel" 686-class) 596 
> MHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
> cpu0: Enhanced SpeedStep 600 MHz (844 mV): speeds: 1000, 900, 800, 600 MHz
> real mem  = 1067937792 (1042908K)
> avail mem = 966541312 (943888K)
> using 4256 buffers containing 53497856 bytes (52244K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(df) BIOS, date 07/29/03, BIOS32 rev. 0 @ 0xfd750, 
> SMBIOS rev. 2.3 @ 0xd8010 (17 entries)
> bios0: Sony Corporation PCG-TR2_B(J)
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> apm0: flags 30102 dobusy 0 doidle 1
> pcibios0 at bios0: rev 2.1 @ 0xfd750/0x8b0
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #2 is the last bus
> bios0: ROM list: 0xc0000/0x10000 0xd8000/0x4000! 0xdc000/0x4000!
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82852GM Hub-PCI" rev 0x02
> "Intel 82852GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
> "Intel 82852GM Configuration" rev 0x02 at pci0 dev 0 function 3 not configured
> vga1 at pci0 dev 2 function 0 "Intel 82852GM AGP" rev 0x02: aperture at 
> 0xe8000000, size 0x8000000
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "Intel 82852GM AGP" rev 0x02 at pci0 dev 2 function 1 not configured
> uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 9
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 9
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03pci_intr_map: no 
> mapping for pin C
> : couldn't map interrupt
> ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03pci_intr_map: no 
> mapping for pin D
> : couldn't map interrupt
> ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83
> pci1 at ppb0 bus 1
> cbb0 at pci1 dev 5 function 0 "Ricoh 5C475 CardBus" rev 0xb8: irq 3
> "Ricoh 5C551 Firewire" rev 0x00 at pci1 dev 5 function 1 not configured
> fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VE" rev 0x83, i82562: irq 9, 
> address 08:00:46:b7:96:70
> inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
> ath0 at pci1 dev 11 function 0 "Atheros AR5212" rev 0x01: irq 9
> ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, MKK1A, address 
> 00:02:8a:be:1b:07
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x40
> pcmcia0 at cardslot0
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03
> pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 
> 0 configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <HTC426060G9AT00>
> wd0: 16-sector PIO, LBA48, 57231MB, 117210240 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: <MATSHITA, UJDA755 DVD/CDRW, 1.00> SCSI0 
> 5/cdrom removable
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x03pci_intr_map: 
> no mapping for pin B
> : polling
> iic0 at ichiic0
> auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 9, ICH4 
> AC97
> ac97: codec id 0x41445374 (Analog Devices AD1981B)
> ac97: codec features headphone, 20 bit DAC, No 3D Stereo
> ac97: ext id 601<vra,amap,rev0>
> read(2) = 8000
> read(18) = 8808
> read(1c) = 8000
> read(1a) = 0
> audio0 at auich0
> "Intel 82801DB Modem" rev 0x03 at pci0 dev 31 function 6 not configured
> isa0 at ichpcib0
> 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
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: using exception 16
> biomask effd netmask effd ttymask ffff
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> ugen0 at uhub1 port 1
> ugen0: Sony product 0x0107, rev 1.10/0.00, addr 2
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302




-- 
    paranoic mickey       (my employers have changed but, the name has remained)

Reply via email to