Re: OpenBSD -current azalia: no sound

2007-03-14 Thread Chris Schaller

On 3/13/07, Azmadi [EMAIL PROTECTED] wrote:

Hi,
Not sure why your azalia doesn't work,
but I  had almost similar situation with yours..
My compaq v3000 seem to have a problem with the
interrupt routing.. so i put a temp solution by doing polling instead
of waiting
the interrupt to be triggered.. not a good solution i guess.. but at
least it works
for me..

try run vmstat -i and see if azalia is listed in the interrupt list..
if it is.. well it's a different situation i guess..


vmstat -i yields

interrupt   total rate
irq10/azalia0 1502
irq10/fxp0  30
irq10/pciide11384   22
irq1/pckbc0   2514
irq0/clock   6304  101
irq8/rtc 8070  130
Total   16162  260


Hm, doesn't look good for me then, does it?

I don't have any other BSD variant installed on my laptop, so I can
only provide some Linux output -- please tell me if this doesn't help
here; I do not want to flood your mailboxes in future!

Interrupts on Ubuntu:

$ find /proc/irq -type d
/proc/irq/
/proc/irq/74
/proc/irq/74/sdhci:slot0
/proc/irq/66
/proc/irq/66/HDA Intel
/proc/irq/58
/proc/irq/58/ohci1394
/proc/irq/177
/proc/irq/177/[EMAIL PROTECTED]::00:02.0
/proc/irq/177/ipw3945
/proc/irq/177/uhci_hcd:usb4
/proc/irq/185
/proc/irq/185/uhci_hcd:usb3
/proc/irq/225
/proc/irq/225/uhci_hcd:usb2
/proc/irq/50
/proc/irq/50/ehci_hcd:usb5
/proc/irq/50/uhci_hcd:usb1
/proc/irq/233
/proc/irq/233/libata
/proc/irq/15
/proc/irq/14
/proc/irq/14/ide0
/proc/irq/13
/proc/irq/12
/proc/irq/12/i8042
/proc/irq/11
/proc/irq/10
/proc/irq/9
/proc/irq/9/acpi
/proc/irq/8
/proc/irq/8/rtc
/proc/irq/7
/proc/irq/6
/proc/irq/5
/proc/irq/4
/proc/irq/3
/proc/irq/2
/proc/irq/1
/proc/irq/1/i8042
/proc/irq/0


IIUC, this output tells me that on Linux IRQ66 is for audio, but on
OpenBSD, it says IRQ is 10.

Here's the complete dmesg from Linux

[17179569.184000] Linux version 2.6.17-11-generic ([EMAIL PROTECTED])
(gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2
SMP Thu Feb 1 19:52:28 UTC 2007 (Ubuntu 2.6.17-11.35-generic)
[17179569.184000] BIOS-provided physical RAM map:
[17179569.184000]  BIOS-e820:  - 0009f800 (usable)
[17179569.184000]  BIOS-e820: 0009f800 - 000a (reserved)
[17179569.184000]  BIOS-e820: 000dc000 - 0010 (reserved)
[17179569.184000]  BIOS-e820: 0010 - 3f69 (usable)
[17179569.184000]  BIOS-e820: 3f69 - 3f698000 (ACPI data)
[17179569.184000]  BIOS-e820: 3f698000 - 3f70 (ACPI NVS)
[17179569.184000]  BIOS-e820: 3f70 - 4000 (reserved)
[17179569.184000]  BIOS-e820: e000 - f000 (reserved)
[17179569.184000]  BIOS-e820: fec0 - fec1 (reserved)
[17179569.184000]  BIOS-e820: fed14000 - fed1a000 (reserved)
[17179569.184000]  BIOS-e820: fed1c000 - fed9 (reserved)
[17179569.184000]  BIOS-e820: fee0 - fee01000 (reserved)
[17179569.184000]  BIOS-e820: ff00 - 0001 (reserved)
[17179569.184000] 118MB HIGHMEM available.
[17179569.184000] 896MB LOWMEM available.
[17179569.184000] found SMP MP-table at 000f76d0
[17179569.184000] On node 0 totalpages: 259728
[17179569.184000]   DMA zone: 4096 pages, LIFO batch:0
[17179569.184000]   Normal zone: 225280 pages, LIFO batch:31
[17179569.184000]   HighMem zone: 30352 pages, LIFO batch:7
[17179569.184000] DMI present.
[17179569.184000] ACPI: RSDP (v000 PTLTD
 ) @ 0x000f7590
[17179569.184000] ACPI: RSDT (v001 FUJ___ DW1_ 0x20060721  LTP
0x) @ 0x3f691e9c
[17179569.184000] ACPI: FADT (v001 FUJ___ DW1_ 0x20060721 LOHR
0x005a) @ 0x3f697e20
[17179569.184000] ACPI: MADT (v001 FUJ___ DW1_ 0x20060721 LOHR
0x005a) @ 0x3f697e94
[17179569.184000] ACPI: BOOT (v001 FUJ___ DW1_ 0x20060721  LTP
0x0001) @ 0x3f697fd8
[17179569.184000] ACPI: MCFG (v001 FUJ___ DW1_ 0x20060721 LOHR
0x005a) @ 0x3f697f34
[17179569.184000] ACPI: MADT (v001 FUJ___ DW1_ 0x20060721  LTP
0x) @ 0x3f697f70
[17179569.184000] ACPI: SSDT (v001  PmRefCpuPm 0x3000 INTL
0x20050228) @ 0x3f691ed8
[17179569.184000] ACPI: DSDT (v001 FUJ___ DW1_ 0x20060721 MSFT
0x010e) @ 0x
[17179569.184000] ACPI: PM-Timer IO Port: 0x1008
[17179569.184000] ACPI: Local APIC address 0xfee0
[17179569.184000] ACPI: 2 duplicate APIC table ignored.
[17179569.184000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[17179569.184000] Processor #0 6:14 APIC version 20
[17179569.184000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[17179569.184000] Processor #1 6:14 APIC version 20
[17179569.184000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[17179569.184000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[17179569.184000] 

Re: OpenBSD -current azalia: no sound

2007-03-13 Thread Azmadi

Hi,
Not sure why your azalia doesn't work,
but I  had almost similar situation with yours..
My compaq v3000 seem to have a problem with the
interrupt routing.. so i put a temp solution by doing polling instead
of waiting
the interrupt to be triggered.. not a good solution i guess.. but at
least it works
for me..

try run vmstat -i and see if azalia is listed in the interrupt list..
if it is.. well it's a different situation i guess..

On 3/13/07, K-Wizzz [EMAIL PROTECTED] wrote:

Hi everyone,

[vladas wrote]
  1. get -current src

done.

  2. in a
 
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/azalia.h?rev=1.9content-type=text/x-cvsweb-markup

  enable the define in

  /* #define AZALIA_DEBUG */

done

  3. recompile kernel and send all the dmesg, aumix,
   mixerctl (maybe even stuff like pciweak -l) output to list

done :)

Here's the new dmesg:

OpenBSD 4.1 (GENERIC) #3: Sat Mar 10 20:17:19 CET 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 1063415808 (1038492K)
avail mem = 962895872 (940328K)
using 4278 buffers containing 53293056 bytes (52044K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 07/21/06, BIOS32 rev. 0 @
0xfd580, SMBIOS rev. 2.4 @ 0xdc010 (29 entries)
bios0: FUJITSU SIEMENS Amilo Si 1520
pcibios0 at bios0: rev 2.1 @ 0xfd580/0xa80
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #7 is the last bus
bios0: ROM list: 0xc/0xe600! 0xdc000/0x4000!
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2c06000613
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM MCH rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03: aperture
at 0xdc10, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 4999
azalia_attach: reset counter = 4986
azalia0: found a codec at #0
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: information of codec[0] follows:
azalia_codec_init_vtbl: vid=14f15045 subid=10ad1734
azalia0: codec: 0x04x/0x14f1 (rev. 1.0), HDA version 1.0
azalia_codec_init: nidstart=1 #functions=2
azalia_codec_init: FTYPE result = 0x0001
azalia_codec_init: There are 12 widgets in the audio function.
encodings=1PCM
PCM formats=e014024bit,20bit,16bit,96kHz,48kHz
inamp: mute=0 size=0 steps=0 offset=0
outamp: mute=0 size=0 steps=0 offset=0
azalia0: unknown10 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=speaker color=unknown assoc=1 seq=0
cap=10014EAPD,OUTPUT,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: green11 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=headphones color=green assoc=2 seq=0
cap=113cINPUT,OUTPUT,HEADPHONE,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: blue12 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=line-in color=blue assoc=3 seq=0
cap=113cINPUT,OUTPUT,HEADPHONE,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: yellow13 wcap=400301DIGITAL,CONNLIST,STEREO
pin config; device=SPDIF-out color=yellow assoc=4 seq=0 cap=10OUTPUT
connections=0x18; selected=0x18
azalia0: unknown14 wcap=400081UNSOL,STEREO
pin config; device=mic color=unknown assoc=5 seq=0 
cap=1124INPUT,PRESENCE
azalia0: unknown15 wcap=41STEREO
pin config; device=cd color=unknown assoc=6 seq=0 cap=20INPUT
azalia0: beep16 wcap=7cAMPOV,OUTAMP
outamp: mute=1 size=11 steps=7 offset=7
azalia0: mix17 wcap=20050bPOWER,CONNLIST,AMPOV,INAMP,STEREO
connections=0x19,0x14,0x12,0x11,0x15; selected=0x19
inamp: mute=1 size=5 steps=43 offset=20
azalia0: dac18 wcap=211DIGITAL,FORMATOV,STEREO
encodings=5AC3,PCM
PCM formats=6004020bit,16bit,48kHz
azalia0: dac19 wcap=c11LRSWAP,POWER,FORMATOV,STEREO
encodings=1PCM
PCM 

Re: OpenBSD -current azalia: no sound

2007-03-12 Thread K-Wizzz

Hi everyone,

[vladas wrote]

 1. get -current src


done.


 2. in a
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/azalia.h?rev=1.9content-type=text/x-cvsweb-markup

 enable the define in

 /* #define AZALIA_DEBUG */


done


 3. recompile kernel and send all the dmesg, aumix,
  mixerctl (maybe even stuff like pciweak -l) output to list


done :)

Here's the new dmesg:

OpenBSD 4.1 (GENERIC) #3: Sat Mar 10 20:17:19 CET 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 1063415808 (1038492K)
avail mem = 962895872 (940328K)
using 4278 buffers containing 53293056 bytes (52044K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 07/21/06, BIOS32 rev. 0 @
0xfd580, SMBIOS rev. 2.4 @ 0xdc010 (29 entries)
bios0: FUJITSU SIEMENS Amilo Si 1520
pcibios0 at bios0: rev 2.1 @ 0xfd580/0xa80
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdee0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #7 is the last bus
bios0: ROM list: 0xc/0xe600! 0xdc000/0x4000!
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2c06000613
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM MCH rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03: aperture
at 0xdc10, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia_attach: resetting
azalia_attach: reset counter = 4999
azalia_attach: reset counter = 4986
azalia0: found a codec at #0
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: information of codec[0] follows:
azalia_codec_init_vtbl: vid=14f15045 subid=10ad1734
azalia0: codec: 0x04x/0x14f1 (rev. 1.0), HDA version 1.0
azalia_codec_init: nidstart=1 #functions=2
azalia_codec_init: FTYPE result = 0x0001
azalia_codec_init: There are 12 widgets in the audio function.
encodings=1PCM
PCM formats=e014024bit,20bit,16bit,96kHz,48kHz
inamp: mute=0 size=0 steps=0 offset=0
outamp: mute=0 size=0 steps=0 offset=0
azalia0: unknown10 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=speaker color=unknown assoc=1 seq=0
cap=10014EAPD,OUTPUT,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: green11 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=headphones color=green assoc=2 seq=0
cap=113cINPUT,OUTPUT,HEADPHONE,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: blue12 wcap=40058dPOWER,CONNLIST,UNSOL,AMPOV,OUTAMP,STEREO
pin config; device=line-in color=blue assoc=3 seq=0
cap=113cINPUT,OUTPUT,HEADPHONE,PRESENCE
connections=0x19,0x17; selected=0x19
outamp: mute=1 size=5 steps=43 offset=43
azalia0: yellow13 wcap=400301DIGITAL,CONNLIST,STEREO
pin config; device=SPDIF-out color=yellow assoc=4 seq=0 cap=10OUTPUT
connections=0x18; selected=0x18
azalia0: unknown14 wcap=400081UNSOL,STEREO
pin config; device=mic color=unknown assoc=5 seq=0 
cap=1124INPUT,PRESENCE
azalia0: unknown15 wcap=41STEREO
pin config; device=cd color=unknown assoc=6 seq=0 cap=20INPUT
azalia0: beep16 wcap=7cAMPOV,OUTAMP
outamp: mute=1 size=11 steps=7 offset=7
azalia0: mix17 wcap=20050bPOWER,CONNLIST,AMPOV,INAMP,STEREO
connections=0x19,0x14,0x12,0x11,0x15; selected=0x19
inamp: mute=1 size=5 steps=43 offset=20
azalia0: dac18 wcap=211DIGITAL,FORMATOV,STEREO
encodings=5AC3,PCM
PCM formats=6004020bit,16bit,48kHz
azalia0: dac19 wcap=c11LRSWAP,POWER,FORMATOV,STEREO
encodings=1PCM
PCM formats=e054024bit,20bit,16bit,192kHz,96kHz,48kHz
azalia0: adc1a wcap=100d0bLRSWAP,POWER,CONNLIST,AMPOV,INAMP,STEREO
encodings=1PCM
PCM formats=e014024bit,20bit,16bit,96kHz,48kHz
connections=0x17,0x14,0x12,0x11,0x15; selected=0x15
inamp: mute=1 size=5 steps=23 offset=0
azalia0: widget1b wcap=f0
azalia_generic_codec_find_dac: DAC: nid=0x19 index=25
azalia_generic_codec_find_dac: DAC path: nid=0x10 index=16
azalia_generic_codec_add_dacgroup: assoc=1 seq=0 == g=0 n=0