Hello all,

I have audio trouble: no sound whatsoever, and error messages.

In a first terminal window, as root, I typed
# sndiod -ddd

In a second terminal window I typed
# file ./sound.wav
./sound.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16
bit, mono 11025 Hz
# aucat -i ./sound.wav
default: couldn't open audio device

The first terminal window shows this:
petal# sndiod -ddd
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
helper(helper|ini): created
worker(worker|ini): created
listen(/tmp/sndio/sock0|ini): created
sock(sock|ini): created
listen(/tmp/sndio/sock0|ini): processed in 6261us
sock,rmsg,widl: AUTH message
helper: recv: cmd = 0, num = 0, mode = 3, fd = -1
helper: send: cmd = 3, num = 0, mode = 0, fd = -1
helper(helper|ini): processed in 123554us
helper: recv: cmd = 0, num = 0, mode = 1, fd = -1
helper: send: cmd = 3, num = 0, mode = 0, fd = -1
helper(helper|ini): processed in 236812us
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from <aucat>, mode = 1, ver 7
aucat0: overwritten slot 0
snd0 pst=cfg: device requested
worker: send: cmd = 0, num = 0, mode = 3, fd = -1
worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
worker: send: cmd = 0, num = 0, mode = 1, fd = -1
worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
worker: send: cmd = 0, num = 0, mode = 2, fd = -1
worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
snd0 pst=cfg: rsnd/0: failed to open audio device
sock,rmsg,widl: closing
sock(sock|zom): destroyed
sock(sock|zom): processed in 484951us
helper: recv: cmd = 0, num = 0, mode = 2, fd = -1
helper: send: cmd = 3, num = 0, mode = 0, fd = -1
helper(helper|ini): processed in 121169us

This is an ancient Thinkpad 380D laptop. Sound was working
before OpenBSD. Some time ago I installed OpenBSD 6.0,
and the last couple of days I have updated 6.1, 6.2.,... up to 6.5

Permissions:
petal# ls -la /dev/sound*
lrwxr-xr-x  1 root  wheel         6 Jan 14  2018 /dev/sound -> sound0
crw-rw-rw-  1 root  wheel   42,   0 Jan 14  2018 /dev/sound0
crw-rw-rw-  1 root  wheel   42,   1 Jan 14  2018 /dev/sound1
crw-rw-rw-  1 root  wheel   42,   2 Jan 14  2018 /dev/sound2

petal# ls -la /dev/audio*
crw-rw-rw-  1 root  wheel   42,   0 May 12 17:37 /dev/audio0
crw-rw-rw-  1 root  wheel   42,   1 May 12 17:37 /dev/audio1
crw-rw-rw-  1 root  wheel   42,   2 May 12 17:37 /dev/audio2
crw-rw-rw-  1 root  wheel   42, 192 May 12 17:37 /dev/audioctl0
crw-rw-rw-  1 root  wheel   42, 193 May 12 17:37 /dev/audioctl1
crw-rw-rw-  1 root  wheel   42, 194 May 12 17:37 /dev/audioctl2

/etc/group says that I (user) am in wheel.

While being still being in OpenBSD 6.0 I followed part of the
installation instructions from http://www.sndio.org/install.html
(yes, for linux) and typed

#mkdir /var/run/sndiod
#useradd -g audio -s /sbin/nologin -d /var/run/sndiod sndiod

Here is dmesg:
OpenBSD 6.5 (GENERIC) #1: Wed Apr 24 22:04:27 CEST 2019
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
real mem  = 83378176 (79MB)
avail mem = 66617344 (63MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 09/02/99, BIOS32 rev. 0 @ 0xfd860
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xfd8a0/0x800
pcibios0: PCI BIOS has 2 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 11
pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371 ISA and IDE" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 153 MHz, 05-04-04
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX,MELTDOWN
cpu0: F00F bug workaround installed
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82437MX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371 ISA and IDE" rev 0x03
vga1 at pci0 dev 3 function 0 "Neomagic Magicgraph 128ZV" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcic3 at pci0 dev 19 function 0 "Cirrus Logic CL-PD6729" rev 0x07
pcic3 controller 0: <Cirrus PD672X> has sockets A and B
pcmcia0 at pcic3 controller 0 socket 0
pcmcia1 at pcic3 controller 0 socket 1
wdc2 at pcmcia1 function 0 "Key Technology Corp., FC1307  " port 0x400/16: irq 3
wd0 at wdc2 channel 0 drive 0: <SD to PCMCIA/ATA Adapter>
wd0: 1-sector PIO, LBA, 968MB, 1984000 sectors
wd1 at wdc2 channel 0 drive 1: <ST506>
wd1: 1-sector PIO, CHS, 68MB, 1024 cyl, 8 head, 17 sec, 139264 sectors
wd0(wdc2:0:0): using BIOS timings
wd1(wdc2:0:1): using BIOS timings
pcic3: interrupting at irq 4
pcic3: irq 4, polling enabled
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0: irq 4 already in use
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wdc0 at isa0 port 0x1f0/8 irq 14
wd2 at wdc0 channel 0 drive 0: <TOSHIBA MK4006MAV>
wd2: 16-sector PIO, LBA, 3909MB, 8007552 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, CD-38E, 2.0A> ATAPI 5/cdrom removable
wd2(wdc0:0:0): using BIOS timings
cd0(wdc0:0:1): using BIOS timings
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.02
midi0 at sb0: <SB MIDI UART>
audio0 at sb0
opl at sb0 not configured
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd2a (d7456e801e6096c5.a) swap on wd2b dump on wd2b
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec

Please advise, thank you

Reply via email to