misc@openbsd.org

Audio play too fast on AC97 onboard

Hello
I noticed it with OpenBSD 3.4 & it didn't change up to 3.7.
I didn't report that because i din't use sound so much before 3.7.
Now i'm using OBSD much more so sound start to be important for me:)

First of all, the audio play too fast. I searched on mailing list archives,
& i find that it's nothing new because some audio chips works with 48000Hz.
The solution was to set playing rate to 44100 with "audioctl".
So this is what "# audioctl -a" gives me:

name=VIA VT82C686A
version=
config=auvia
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=1
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=9600
play.samples=26874240
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=48000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=191
record.balance=32
record.port=0x1
record.avail_ports=0x7
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

I try to make "# audioctl play.rate=44100" but the answer was:

audioctl: set failed: Invalid argument

I read that sometimes even witht hat notice it is working. But not thios time.
Play rate is still 48000.

Another intresting thing is that sometimes i get notice on terminal like this:

"auvia0: codec invalid".

Here is my dmesg:

OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron(tm) Processor ("AuthenticAMD" 686-class) 952 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 267952128 (261672K)
avail mem = 237600768 (232032K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(3b) BIOS, date 12/16/02, BIOS32 rev. 0 @ 0xfb350
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb7d0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdce0/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 7 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xd000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x4153 rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "ATI", unknown product 0x4173 (class display subclass miscellaneous, rev 0x00) at pci1 dev 0 function 1 not configured
pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 6Y060L0>
wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <MITBISHI, LS-120 COSM 05, 0512> SCSI0 0/direct removable
sd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x1b
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
sd0: drive offline
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
sd0(pciide0:0:1): using PIO mode 0
atapiscsi1 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi1: 2 targets
cd0 at scsibus1 targ 0 lun 0: <_NEC, CD-RW NR-9100A, 2.12> SCSI0 5/cdrom removable
atapiscsi2 at pciide0 channel 1 drive 1
scsibus2 at atapiscsi2: 2 targets
cd1 at scsibus2 targ 0 lun 0: <_NEC, DVD_RW ND-3520A, 1.04> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30
auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC97" rev 0x20: irq 7
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at auvia0
rl0 at pci0 dev 8 function 0 "Realtek 8139" rev 0x10: irq 10 address 00:c0:df:12:12:f1
rlphy0 at rl0 phy 0: RTL internal phy
xl0 at pci0 dev 9 function 0 "3Com 3c905B 100Base-TX" rev 0x24: irq 11, address 00:10:4b:9c:31:3f
exphy0 at xl0 phy 24: 3Com internal media interface
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt1 at isa0 port 0x278/4: polled
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask eb6d netmask ef6d ttymask ff6f
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
dkcsum: wd0 matched BIOS disk 80
sd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
sd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x1b
    SENSE KEY: Not Ready
     ASC/ASCQ: Medium Not Present
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
sd0(pciide0:0:1): using PIO mode 0
wd0a: aborted command, interface CRC error reading fsbn 16 of 16-31 (wd0 bn 109691836; cn 108821 tn 4 sn 16), retrying
wd0: soft error (corrected)
auvia0: codec invalid
auvia0: codec invalid

Can anyone suggest some solution for me please ?

Best Regards
Marcin Wilk

Reply via email to