This is current/macppc on an Apple MacMini 7447A (dmesg below).
The audio device is

        aoa0 at macobio0 offset 0x10000: irq 30,1,2
        audio0 at aoa0

Looking at aoa(4), it should be supported,
at least dmesg says it's a "model PowerMac10,2"
and shows the lines above.

sndiod starts OK:

$ doas sndiod -ddd
doas (h...@ppc.stare.cz) password:
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=8388608 dup
snd0 pst=cfg.0: rec=0:1 play=0:1 vol=8388608 dup
snd1 pst=cfg.1: rec=0:1 play=0:1 vol=8388608 dup
snd2 pst=cfg.2: rec=0:1 play=0:1 vol=8388608 dup
snd3 pst=cfg.3: rec=0:1 play=0:1 vol=8388608 dup
worker(worker|ini): created
listen(/tmp/sndio/sock0|ini): created
default/server.device=0:1 at 1 -> opt_dev:default/0: added
default/server.device=1:0 at 2 -> opt_dev:default/1: added
default/server.device=2:0 at 3 -> opt_dev:default/2: added
default/server.device=3:0 at 4 -> opt_dev:default/3: added
helper(helper|ini): created
^Cworker(worker|zom): destroyed
listen(/tmp/sndio/sock0|zom): destroyed
default/server.device=0:1 at 1 -> opt_dev:default/0: removed
default/server.device=1:0 at 2 -> opt_dev:default/1: removed
default/server.device=2:0 at 3 -> opt_dev:default/2: removed
default/server.device=3:0 at 4 -> opt_dev:default/3: removed
snd0 pst=cfg: draining
snd1 pst=cfg: draining
snd2 pst=cfg: draining
snd3 pst=cfg: draining
nothing to do...
snd0 pst=cfg: deleting
snd1 pst=cfg: deleting
snd2 pst=cfg: deleting
snd3 pst=cfg: deleting
helper: hup
helper(helper|zom): destroyed
nothing to do...

$ doas sndiod
doas (h...@ppc.stare.cz) password:

$ pgrep -fl sndiod
81333 sndiod
18951 sndiod: helper


But when I try to actualy use the device:

$ aucat -o /tmp/file.wav
default: couldn't open audio device

Testing the basics, it is already sio_open() that fails:

#include <stdio.h>
#include <sndio.h>

int
main(void)
{
        struct sio_hdl* hdl = NULL;
        struct sio_par want, have;

        if ((hdl = sio_open(SIO_DEVANY, SIO_PLAY | SIO_REC, 1)) == NULL)
                return 1;

        /*
        sio_initpar(&want);
        sio_initpar(&have);

        want.bits  = 16;
        want.bps   = SIO_BPS(want.bits);
        want.sig   = 1;
        want.le    = SIO_LE_NATIVE;
        want.pchan = 2;
        want.rate  = 48000;
        want.xrun  = SIO_ERROR;

        if (0 == sio_setpar(hdl, &want))
                return 1;

        sio_close(hdl);
        */

        return 0;
}

Is anyone using an aoa audio device succesfully?
What can I do to further debug this?

Thank you

        Jan


[ using 1355316 bytes of bsd ELF symbol table ]
console out [ATY,RockHopper2_A] console in [keyboard], using USB
using parent ATY,RockHopper2Paren:: memaddr 98000000, size 8000000 : consaddr 
9c008000 : ioaddr 90020000, size 20000: width 1920 linebytes 2048 height 1080 
depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2024 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.4-current (GENERIC) #203: Sun Jan 21 06:16:02 MST 2024
    dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1025224704 (977MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: model PowerMac10,2
cpu0 at mainbus0: 7447A (Revision 0x102): 1499 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 1GB DDR SDRAM non-parity PC3200CL3.0
memc0 at mainbus0: uni-n rev 0xd2
"hw-clock" at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple UniNorth AGP" rev 0x00
agp at pchb0 not configured
radeondrm0 at pci0 dev 16 function 0 "ATI Radeon 9200" rev 0x01
drm0 at radeondrm0
radeondrm0: irq 48
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
"modem-reset" at macgpio0 offset 0x1d not configured
"modem-power" at macgpio0 offset 0x1c not configured
macgpio1 at macgpio0 offset 0x9: irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
"gpio5" at macgpio0 offset 0x6f not configured
"gpio6" at macgpio0 offset 0x70 not configured
"extint-gpio15" at macgpio0 offset 0x67 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zs0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
aoa0 at macobio0 offset 0x10000: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000
apm0 at adb0: battery flags 0x0, 0% charged
piic0 at adb0
iic1 at piic0
maxtmp0 at iic1 addr 0xc8: max6642
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x20000 irq 24: DMA
audio0 at aoa0
ohci0 at pci1 dev 26 function 0 "Apple Intrepid USB" rev 0x00: irq 29, version 
1.0, legacy support
ohci1 at pci1 dev 27 function 0 "NEC USB" rev 0x43: irq 63, version 1.0
ohci2 at pci1 dev 27 function 1 "NEC USB" rev 0x43: irq 63, version 1.0
ehci0 at pci1 dev 27 function 2 "NEC USB" rev 0x04: irq 63
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 
addr 1
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Apple OHCI root hub" rev 1.00/1.00 
addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
mpcpcibr2 at mainbus0 pci: uni-north
pci2 at mpcpcibr2 bus 0
kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid ATA" rev 0x00
wdc1 at kauaiata0 irq 39: DMA
wd0 at wdc1 channel 0 drive 0: <ST9160821A>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
"Apple UniNorth Firewire" rev 0x81 at pci2 dev 14 function 0 not configured
gem0 at pci2 dev 15 function 0 "Apple Uni-N2 GMAC" rev 0x80: irq 41, address 
00:14:51:17:42:34
bmtphy0 at gem0 phy 0: BCM5221 100baseTX PHY, rev. 4
uhub4 at uhub3 port 1 configuration 1 interface 0 "Mitsumi Electric Hub in 
Apple Extended USB Keyboard" rev 1.10/4.10 addr 2
uhidev0 at uhub4 port 3 configuration 1 interface 0 "Mitsumi Electric Apple 
Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes, country code 13
wskbd0 at ukbd0: console keyboard
uhidev1 at uhub4 port 3 configuration 1 interface 1 "Mitsumi Electric Apple 
Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 3: 4 usages, 4 keys, enum
wskbd1 at ucc0 mux 1
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@f4000000/ata-6@d/disk@0:/bsd
root on wd0a (64c5f028a86139ec.a) swap on wd0b dump on wd0b
WARNING: clock gained 132 days
WARNING: CHECK AND RESET THE DATE!
radeondrm0: RV280
[drm] *ERROR* Unable to locate a BIOS ROM
radeondrm0: 1920x1080, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Reply via email to