Alexandre Ratchov <a...@caoua.org> wrote:

> On Fri, Oct 23, 2009 at 11:12:34AM +0200, pet...@schwertfisch.de wrote:
> > After a fresh install of OpenBSD 4.6 my sound card stopped working,
> > i.e., I can hear nothing when playing audio. It worked just fine in 4.5.
> > The card is an M-Audio Audiophile 2496 using envy(4).
> > I run "aucat -l" before playing audio.
> > 
>
> i guess this is because codecs aren't initialized.
> could you try the diff below?
>
> It should show in dmesg as ``M-Audio Audiophile 2496'', and
> should work as in 4.5 except that there will be the right
> number of ``inputs'' and ``outputs'' mixer controls.
>
> i'm interested in the output of dmesg, audioctl and mixerctl
> with the diff applied, even if it works :)

Thank you very much for your fast reply, Alexandre.
Just to make sure the patch went alright, here is what I did:
Extracted the sources from CD 3,
cd /usr/src/sys/dev/pci
patch -p0 < your_patch
Compiled & installed a new GENERIC kernel and rebooted

Great: Sound is back, clear and full. But there are some new
messages on the console:

When running "mixerctl", I get
envy0: outsrc=0
envy0: outsrc=0

When starting "aucat -l", I get
envy0: no params to set
envy0: no params to set
envy0: no params to set

Also, when playing audio stops:
envy0: no params to set
envy0: no params to set


Here is the output of mixerctl -v, audioctl and dmesg:

outputs.line0_source=play0  [ line0 line1 play0 mon0 ]
outputs.line1_source=play1  [ line0 line1 play1 mon1 ]
monitor.play0=240 volume
monitor.play1=240 volume
monitor.play2=240 volume
monitor.play3=240 volume
monitor.play4=240 volume
monitor.play5=240 volume
monitor.play6=240 volume
monitor.play7=240 volume
monitor.play8=240 volume
monitor.play9=240 volume
monitor.rec0=240 volume
monitor.rec1=240 volume
monitor.rec2=240 volume
monitor.rec3=240 volume
monitor.rec4=240 volume
monitor.rec5=240 volume
monitor.rec6=240 volume
monitor.rec7=240 volume
monitor.rec8=240 volume
monitor.rec9=240 volume
inputs.line0=254 volume
inputs.line1=254 volume
outputs.line0=254 volume
outputs.line1=254 volume
outputs.mute0-1=off  [ off on ]


name=Envy24
version=-
config=M-Audio Audioph
encodings=slinear_le:24
properties=full_duplex,independent
full_duplex=1
fullduplex=1
blocksize=26400
hiwat=2
lowat=1
output_muted=0
monitor_gain=0
mode=play,record
play.rate=44100
play.channels=10
play.precision=24
play.encoding=slinear
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65536
play.block_size=26400
play.errors=0
record.rate=44100
record.channels=12
record.precision=24
record.encoding=slinear
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=1
record.active=0
record.buffer_size=65536
record.block_size=31680
record.errors=0


OpenBSD 4.6 (GENERIC) #0: Fri Oct 23 14:18:34 CEST 2009
    d...@overstolz.my.domain:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP 2000+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.68 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 804810752 (767MB)
avail mem = 768880640 (733MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/18/06, BIOS32 rev. 0 @ 0xfdb10, SMBIOS 
rev. 2.3 @ 0xf0630 (21 entries)
bios0: vendor American Megatrends Inc. version "P2.80" date 10/18/2006
bios0: American Megatrends Inc. K7S41GX
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices PS2M(S4) PS2K(S4) UAR1(S4) USB1(S4) USB2(S4) EHCI(S4) 
LAN_(S4) MDM_(S4) AUD_(S4) PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 268MHz
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpipwrres0 at acpi0: URP1
acpipwrres1 at acpi0: URP2
acpipwrres2 at acpi0: FDDP
acpipwrres3 at acpi0: LPTP
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xd000 0xcd000/0xa000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "SiS 741 PCI" rev 0x03
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xd0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon 9200 PRO" rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at radeondrm0
pcib0 at pci0 dev 2 function 0 "SiS 85C503 System" rev 0x25
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x00: 741: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD1600JB-22GVC0>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD800JB-00ETA0>
wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): 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: <LITE-ON, DVD SOHD-167T, 9S19> ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 20 (irq 
5), version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: apic 2 int 21 (irq 
3), version 1.0, legacy support
ehci0 at pci0 dev 3 function 2 "SiS 7002 USB" rev 0x00: apic 2 int 23 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "SiS EHCI root hub" rev 2.00/1.00 addr 1
sis0 at pci0 dev 4 function 0 "SiS 900 10/100BaseTX" rev 0x90: apic 2 int 19 
(irq 5), address 00:19:66:65:10:93
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
trm0 at pci0 dev 9 function 0 "Tekram DC-3x5U" rev 0x01: apic 2 int 17 (irq 5)
scsibus1 at trm0: 8 targets, initiator 7
envy0 at pci0 dev 10 function 0 "IC Ensemble Envy24 I/O Ctrlr" rev 0x02: apic 2 
int 18 (irq 10)
envy0: M-Audio Audiophile 2496, 2 inputs, 2 outputs
envy0: eeprom:  12 34 14 12 1d 01 10 80 72 03 00 fe fb 00 00 00 00 00 00 44 04 
00 00 00 04 00 00 00 01 ff ff ff
envy0: gpio_mask = 00
envy0: gpio_dir = fb
envy0: gpio_state = fe
audio0 at envy0
envy0: allocated 65536 bytes dir=1, ka=0xdb80f000, da=0x2c3a000
envy0: allocated 65536 bytes dir=2, ka=0xdb81f000, da=0x2c4a000
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12
lm1 at wbsio0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
envy0: no params to set
envy0: no params to set
envy0: no params to set

Regards
Dirk

Reply via email to