Hi I'm trying to record audio samples using azalia and 4.1-Release I can monitor the audio but cannot record it. dd fails to read anything from /dev/audio or /dev/sound eg. $ dd if=/dev/sound of=/tmp/raw reads 0 bytes. The manual page for azalia(4) doesn't mention recording via line-in or mic being broken.
My dmesg and output of mixerctl -av and audioctl -a follow. OpenBSD 4.1 (GENERIC) #874: Sat Mar 10 19:09:51 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 1005121536 (981564K) avail mem = 848392192 (828508K) using 22937 buffers containing 100720640 bytes (98360K) of memory mainbus0 (root) bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0000 (36 entries) bios0: MICRO-STAR INTERNATIONAL CO., LTD MS-7253 acpi at mainbus0 not configured cpu0 at mainbus0: (uniprocessor) cpu0: AMD Athlon(tm) 64 Processor 3200+, 2000.27 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 "VIA K8M890 Host" rev 0x00 pchb1 at pci0 dev 0 function 1 "VIA K8M890 Host" rev 0x00 pchb2 at pci0 dev 0 function 2 "VIA K8M890 Host" rev 0x00 pchb3 at pci0 dev 0 function 3 "VIA K8M890 Host" rev 0x00 pchb4 at pci0 dev 0 function 4 "VIA K8M890 Host" rev 0x00 "VIA K8M890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured pchb5 at pci0 dev 0 function 7 "VIA K8M890 Host" rev 0x00 ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "VIA DeltaChrome Video" rev 0x11 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00 pci2 at ppb1 bus 2 ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00 pci3 at ppb2 bus 3 pciide0 at pci0 dev 15 function 0 "VIA VT8237A SATA" rev 0x80: DMA pciide0: using irq 11 for native-PCI interrupt pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x07: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide1 channel 0 drive 0: <ST3250620A> wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd0(pciide1:0:0): using PIO mode 4, DMA mode 2 atapiscsi0 at pciide1 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-H42N, RL00> SCSI0 5/cdrom removable cd0(pciide1:1:0): using PIO mode 4, DMA mode 2 uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0xa0: irq 10 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0xa0: irq 11 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0xa0: irq 11 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0xa0: irq 10 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib0 at pci0 dev 17 function 0 "VIA VT8237A ISA" rev 0x00 pchb6 at pci0 dev 17 function 7 "VIA VT8251 VLINK" rev 0x00 vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x7c: irq 10, address 00:16:17:dd:14:1f rlphy0 at vr0 phy 1: RTL8201L 10/100 PHY, rev. 1 ppb3 at pci0 dev 19 function 0 "VIA VT8237A PCI-PCI" rev 0x00 pci4 at ppb3 bus 4 azalia0 at pci4 dev 1 function 0 "VIA HD Audio" rev 0x10: irq 11 azalia0: host: High Definition Audio rev. 1.0 azalia0: codec: 0x04x/0x10ec (rev. 0.2), HDA version 1.0 audio0 at azalia0 ppb4 at pci0 dev 19 function 1 "VIA VT8237A PCI-PCI" rev 0x00 pci5 at ppb4 bus 5 pchb7 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00 pchb8 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00 pchb9 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00 pchb10 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: 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 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 lm0 at isa0 port 0x290/8: W83627EHF fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec ural0 at uhub4 port 1 ural0: Cisco-Linksys Wireless-G USB Network Adapter, rev 2.00/0.04, addr 2 ural0: MAC/BBP RT2571 (rev 0x03), RF RT2526, address 00:12:17:8f:a7:de uaudio0 at uhub4 port 3 configuration 1 interface 2: Logitech product 0x08ce, rev 2.00/0.05, addr 3 uaudio0: audio rev 1.00, 2 mixer controls audio1 at uaudio0 uhidev0 at uhub1 port 2 configuration 1 interface 0 uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 mixerctl -av record.adc08.mute=off [ off on ] record.adc08=123,123 record.adc09.mute=off [ off on ] record.adc09=123,123 inputs.mix0b.pink18.mu=off [ off on ] inputs.mix0b.pink19.mu=off [ off on ] inputs.mix0b.blue1a.mu=off [ off on ] inputs.mix0b.green1b.m=off [ off on ] inputs.mix0b.unknown1c=off [ off on ] inputs.mix0b.black1d.m=off [ off on ] inputs.mix0b.green14.m=off [ off on ] inputs.mix0b.black15.m=off [ off on ] inputs.mix0b.orange16.=off [ off on ] inputs.mix0b.gray17.mu=off [ off on ] inputs.mix0b.pink18=123,123 inputs.mix0b.pink19=123,123 inputs.mix0b.blue1a=123,123 inputs.mix0b.green1b=123,123 inputs.mix0b.unknown1c=123,123 inputs.mix0b.black1d=123 inputs.mix0b.green14=123,123 inputs.mix0b.black15=123,123 inputs.mix0b.orange16=123,123 inputs.mix0b.gray17=123,123 outputs.mix0c=197,197 inputs.mix0c.dac02.mut=off [ off on ] inputs.mix0c.mix0b.mut=off [ off on ] outputs.mix0d=123,123 inputs.mix0d.dac03.mut=off [ off on ] inputs.mix0d.mix0b.mut=off [ off on ] outputs.mix0e=123,123 inputs.mix0e.dac04.mut=off [ off on ] inputs.mix0e.mix0b.mut=off [ off on ] outputs.mix0f=123,123 inputs.mix0f.dac05.mut=off [ off on ] inputs.mix0f.mix0b.mut=off [ off on ] outputs.green14.source=mix0c [ mix0c mix0d mix0e mix0f mix26 ] outputs.green14.mute=off [ off on ] outputs.green14=85,85 outputs.green14.dir=output [ input output ] outputs.green14.boost=off [ off on ] outputs.black15.source=mix0d [ mix0c mix0d mix0e mix0f mix26 ] outputs.black15.mute=off [ off on ] outputs.black15=85,85 outputs.black15.dir=output [ input output ] outputs.black15.boost=off [ off on ] outputs.orange16.source=mix0e [ mix0c mix0d mix0e mix0f mix26 ] outputs.orange16.mute=off [ off on ] outputs.orange16=85,85 outputs.orange16.dir=output [ input output ] outputs.orange16.boost=off [ off on ] outputs.gray17.source=mix0f [ mix0c mix0d mix0e mix0f mix26 ] outputs.gray17.mute=off [ off on ] outputs.gray17=85,85 outputs.gray17.dir=output [ input output ] outputs.gray17.boost=off [ off on ] outputs.pink18.source=mix0c [ mix0c mix0d mix0e mix0f mix26 ] outputs.pink18.mute=off [ off on ] outputs.pink18=85,85 outputs.pink18.dir=input [ input output ] outputs.pink18.boost=off [ off on ] outputs.pink19.source=mix0c [ mix0c mix0d mix0e mix0f mix26 ] outputs.pink19.mute=off [ off on ] outputs.pink19=85,85 outputs.pink19.dir=input [ input output ] outputs.pink19.boost=off [ off on ] outputs.blue1a.source=mix0c [ mix0c mix0d mix0e mix0f mix26 ] outputs.blue1a.mute=off [ off on ] outputs.blue1a=85,85 outputs.blue1a.dir=input [ input output ] outputs.blue1a.boost=off [ off on ] outputs.green1b.source=mix0c [ mix0c mix0d mix0e mix0f mix26 ] outputs.green1b.mute=off [ off on ] outputs.green1b=85,85 outputs.green1b.dir=output [ input output ] outputs.green1b.boost=off [ off on ] inputs.mix22.pink18.mu=off [ off on ] inputs.mix22.pink19.mu=off [ off on ] inputs.mix22.blue1a.mu=off [ off on ] inputs.mix22.green1b.m=off [ off on ] inputs.mix22.unknown1c=off [ off on ] inputs.mix22.black1d.m=off [ off on ] inputs.mix22.green14.m=off [ off on ] inputs.mix22.black15.m=off [ off on ] inputs.mix22.orange16.=off [ off on ] inputs.mix22.gray17.mu=off [ off on ] inputs.mix22.mix0b.mut=off [ off on ] inputs.mix23.pink18.mu=off [ off on ] inputs.mix23.pink19.mu=off [ off on ] inputs.mix23.blue1a.mu=off [ off on ] inputs.mix23.green1b.m=off [ off on ] inputs.mix23.unknown1c=off [ off on ] inputs.mix23.black1d.m=off [ off on ] inputs.mix23.green14.m=off [ off on ] inputs.mix23.black15.m=off [ off on ] inputs.mix23.orange16.=off [ off on ] inputs.mix23.gray17.mu=off [ off on ] inputs.mix23.mix0b.mut=off [ off on ] outputs.mix26=123,123 inputs.mix26.dac25.mut=off [ off on ] inputs.mix26.mix0b.mut=off [ off on ] inputs.usingdac=02040305 [ 02040305 02 06 25 ] record.usingadc=0a [ 08 09 0a ] audioctl -a name=HD-Audio version=1.0 config=azalia0 encodings=slinear_le:16,slinear_le:16,slinear_le:16,slinear_le:16,slinear_le:16,slinear_le:32 properties=full_duplex,independent full_duplex=0 fullduplex=0 blocksize=8704 hiwat=7 lowat=1 monitor_gain=0 mode= play.rate=44100 play.channels=2 play.precision=16 play.encoding=slinear_le play.gain=0 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=0 play.active=0 play.buffer_size=65536 record.rate=44100 record.channels=2 record.precision=16 record.encoding=slinear_le record.gain=0 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=0 record.active=0 record.buffer_size=65536 record.errors=0 jamex:45$ dd if=/dev/sound of=/tmp/raw ^C0+0 records in 0+0 records out 0 bytes transferred in 6.796 secs (0 bytes/sec) jamex:46$ ls -l /dev/sound* lrwxr-xr-x 1 root wheel 6 Jul 19 14:10 /dev/sound@ -> sound0 crw-rw-rw- 1 root wheel 42, 0 Jul 19 14:23 /dev/sound0 jamex:48$ uname -a OpenBSD key.jamesreynoldstown.org 4.1 GENERIC#874 amd64