auvia plays noise with 44 KHz samples in OpenBSD 4.0 i386 (snapshot 2006-09-01)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

auvia plays noise with 44 KHz samples in OpenBSD 4.0 i386 (snapshot 2006-09-01)

Andrés Delfino
Hi, auvia(4) doesn't work OK when playing 44 KHz samples. Sometimes
one can hear noise, and that's not a problem of the samples ;) I had
read the FAQ, but no luck with those. One thing I noted is that
there's no problems with 48 KHz samples.

I need to turn off outputs.headphones.mute (even when I'm not using
headphones), to get sound working.

I installed NetBSD 3.0.1 (i386) to test its auvia driver, and it works
just fine. I guess you can find it useful.

My motherboard is a SY-P4VGM one.
http://www.soyousa.com/products/proddesc.php?id=273

/var/run/dmesg.boot content:

OpenBSD 4.0 (GENERIC) #1104: Fri Sep  1 11:54:27 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.50GHz ("GenuineIntel" 686-class) 2.51 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 527990784 (515616K)
avail mem = 473714688 (462612K)
using 4256 buffers containing 26501120 bytes (25880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(2e) BIOS, date 10/21/03, BIOS32 rev. 0 @
0xfb240, SMBIOS rev. 2.2 @ 0xf0800 (40 entries)
bios0: VIA Technologies, Inc. P4M266A-8235
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf44
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 5 11 12
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8751 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8633 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 ProSavage DDR" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "Acer Labs", unknown product 0x5459 (class communications
subclass modem, rev 0x00) at pci0 dev 9 function 0 not configured
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
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 0x80: irq 5
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 0x80: irq 12
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
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
iic0 at viapm0
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP0411N>
wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors
wd1 at pciide0 channel 0 drive 1: <SAMSUNG SV0221N>
wd1: 16-sector PIO, LBA48, 19130MB, 39179952 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: <SONY, CD-RW CRX230EE, 2YS3> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 12
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x74: irq 11,
address 00:50:2c:a2:51:aa
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 8: OUI
0x004063, model 0x0032
isa0 at mainbus0
isadma0 at isa0
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
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev
1.10/3.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x81
dkcsum: wd1 matches BIOS drive 0x80
root on wd1a
rootdev=0x10 rrootdev=0x310 rawdev=0x312

audioctl -a output:

name=VIA VT8233
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=416
hiwat=157
lowat=117
monitor_gain=0
mode=
play.rate=8000
play.channels=1
play.precision=8
play.encoding=mulaw
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=0
play.active=0
play.buffer_size=65536
record.rate=8000
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

mixerctl -a output:

outputs.master=199,199
outputs.master.mute=off
outputs.mono=255
outputs.mono.mute=on
outputs.mono.source=mixerout
outputs.headphones=255,255
outputs.headphones.mute=on
outputs.bass=255
outputs.treble=255
inputs.speaker=255
inputs.speaker.mute=off
inputs.phone=191
inputs.phone.mute=on
inputs.mic=191
inputs.mic.mute=on
inputs.mic.preamp=off
inputs.mic.source=mic0
inputs.line=191,191
inputs.line.mute=on
inputs.cd=191,191
inputs.cd.mute=off
inputs.video=191,191
inputs.video.mute=on
inputs.aux=191,191
inputs.aux.mute=on
inputs.dac=191,191
inputs.dac.mute=off
record.source=mic
record.volume=255,255
record.volume.mute=off
record.mic=0
record.mic.mute=off
outputs.loudness=off
outputs.spatial=off
outputs.spatial.center=0
outputs.spatial.depth=0
outputs.surround=255,255
outputs.surround.mute=off
outputs.center=255
outputs.center.mute=off
outputs.lfe=255
outputs.lfe.mute=off
outputs.extamp=off



Hope you can fix it before OpenBSD 4.0-release, because it is
soooooooooo annoying :/

Greetings!

Reply | Threaded
Open this post in threaded view
|

Re: auvia plays noise with 44 KHz samples in OpenBSD 4.0 i386 (snapshot 2006-09-01)

Stuart Henderson
On 2006/09/07 10:01, Andris wrote:
> Hi, auvia(4) doesn't work OK when playing 44 KHz samples. Sometimes
> one can hear noise, and that's not a problem of the samples ;) I had
> read the FAQ, but no luck with those.

Try "Coping with fixed rate sound devices",
http://www.openbsd.org/faq/faq13.html

Reply | Threaded
Open this post in threaded view
|

Re: auvia plays noise with 44 KHz samples in OpenBSD 4.0 i386 (snapshot 2006-09-01)

Andrés Delfino
As far as I understand, the fixed rate for my device ir 44.1 KHz;

http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/auvia.c?rev=1.33&content-type=text/x-cvsweb-markup

But I have problems playing at that frequency. I have no problems with 48 KHz.

On 9/7/06, Stuart Henderson <[hidden email]> wrote:
> On 2006/09/07 10:01, AndrC)s wrote:
> > Hi, auvia(4) doesn't work OK when playing 44 KHz samples. Sometimes
> > one can hear noise, and that's not a problem of the samples ;) I had
> > read the FAQ, but no luck with those.
>
> Try "Coping with fixed rate sound devices",
> http://www.openbsd.org/faq/faq13.html
>
>


--
AndrC)s Delfino

Reply | Threaded
Open this post in threaded view
|

Re: auvia plays noise with 44 KHz samples in OpenBSD 4.0 i386 (snapshot 2006-09-01)

Stuart Henderson
On 2006/09/07 10:28, Andris wrote:
> As far as I understand, the fixed rate for my device ir 44.1 KHz;
> But I have problems playing at that frequency. I have no problems with 48
> KHz.

Facts: 48K works, 44K1 does not work,
the OpenBSD kernel does not resample audio.

Therefore: your device supports 48KHz.
This is fairly normal for PC audio devices.