Re: No audio on auvia0 / "VIA VT8233 AC97"
On 5 June 2012 12:18, Brett wrote: > > doh! I tried that and it does not work for me. Perhaps the connector or > chip is flaky, and the PCI is the way to go. > > I suspect it's the chipset support rather than the connector. Google suggests that it's actually a Realtek ALC653 and there were difficulties getting it working in Linux. See : https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1622
Re: No audio on auvia0 / "VIA VT8233 AC97"
On Tue, 05 Jun 2012 12:25:43 +0200 Remco wrote: > Brett wrote: > > > Hi, > > > > I've gotten an old computer and installed OpenBSD on it, to act as a media > > player. The problem is I have no sound. > > A bit of a long shot, I once had a sound card that > needed 'outputs.extamp=on' to work. > > doh! I tried that and it does not work for me. Perhaps the connector or chip is flaky, and the PCI is the way to go.
Re: No audio on auvia0 / "VIA VT8233 AC97"
Brett wrote: > Hi, > > I've gotten an old computer and installed OpenBSD on it, to act as a media > player. The problem is I have no sound. First attempt was i386-current, > 2nd attempt was amd64-5.1. > > There are 2 audio minijack outputs, one from the sound ports attached to > motherboard, the other is a plug leading to the front jack (there are 2 > plugs to fit this connector, one labelled "ac97" the other "HD audio"). > I've tried of all these, and also disconnecting the front jack altogether. > > Sound is tested with mplayer, with files of mp4, avi, mkv formats. > > $ mplayer -cache 1000 -vo sdl -ao null file.avi > results in a great picture, with no frame drops > > $ mplayer -cache 1000 -vo sdl file.avi > results in either a blank screen, or a picture that plays for a brief > moment then freezes. Jumping forward (page up or arrow) either repeats > this brief playback at the new location, or has no effect. > > I tried changing bios settings but no difference (disabling/enabling > onboard AC97 was the only one that seemed related, but I tried usb1/2 etc > as well). I don't have windows available to update bios, but from reading > AMD erratas 89 and 97, they don't seem related anyway (see dmesg). > > My understanding is that auvia(4) should work on this machine. > > Is there something else I can try before getting a PCI soundcard? > .. > > > # mixerctl > outputs.master=199,199 > outputs.master.mute=off > outputs.mono=255 > outputs.mono.mute=on > outputs.mono.source=mixerout > outputs.surround=255,255 > outputs.surround.mute=on > outputs.surround.lineinjack=off > outputs.center=255 > outputs.center.mute=on > outputs.center.micjack=off > outputs.lfe=255 > outputs.lfe.mute=on > outputs.lfe.micjack=off > inputs.spkr=255 > inputs.spkr.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=255,255 > inputs.video.mute=off > 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 > outputs.extamp=off > outputs.spdif=off > A bit of a long shot, I once had a sound card that needed 'outputs.extamp=on' to work.
Re: No audio on auvia0 / "VIA VT8233 AC97"
>>Also try 44100 Hz. > >I tried but audioctl will not let me lower the Hz rate below 48000 Hz. Probably the native freq but it's strange it'd interpolate in software. >> >Is there something else I can try before getting a PCI soundcard? >> >> Update BIOS and any other firmware. > >As far as I know, the BIOS is the only firmware existing on this computer. The on-board audio firmware could be embedded in the BIOS. >I'm on BIOS version 210. According to >http://www.asus.com/Motherboards/AMD_Socket_939/A8VMX/#download the 2 BIOS >updates more recent than this one are to "Support new CPUs." I wonder how >accurate this info is (i.e. do they fail to mention other things the BIOS >update achieves...). I'm kind of reluctant to flash the BIOS in case I brick >the beast. Forthcoming technical docs are rare in my experience. Other stuff you can try: measure voltage on your minijacks (or sample from other PC), check any digital audio jumpers, make sure your AMD videocard has no audio out like HDMI, some multimedia-heavy Linux live CD. cheers, -- p
Re: No audio on auvia0 / "VIA VT8233 AC97"
Hi Peter, > Not 100% sure from the logs but you've got a lot of mixer channels muted, > maybe PCM isn't getting amped. Using audioctl and mixerctl I changed all the output settings that can be changed, one by one. Unfortunately no effect. Anyway I feel that if the outputs were wrong, this would not affect mplayer being able to play the file without freezing. >Also try 44100 Hz. I tried but audioctl will not let me lower the Hz rate below 48000 Hz. > >Is there something else I can try before getting a PCI soundcard? > > Update BIOS and any other firmware. As far as I know, the BIOS is the only firmware existing on this computer. I'm on BIOS version 210. According to http://www.asus.com/Motherboards/AMD_Socket_939/A8VMX/#download the 2 BIOS updates more recent than this one are to "Support new CPUs." I wonder how accurate this info is (i.e. do they fail to mention other things the BIOS update achieves...). I'm kind of reluctant to flash the BIOS in case I brick the beast. Brett.
Re: No audio on auvia0 / "VIA VT8233 AC97"
On Tue, 5 Jun 2012 08:23:39 +0200 Alexandre Ratchov wrote: > Hey, > > could you try the following: > > aucat -dd -frsnd/0 -i whatever.wav > > and send me the output. If you don't have a .wav file, just use any > large bonary file (ex /bsd) it will produce noise. > > If it hangs, while above process is still running, could you run: > > audioctl; sleep 1; audioctl > > and send me the output as well. This is to test whether the DMA > engine works; mplayer freezing suggests DMA doesn't start. > > thanks. > > -- Alexandre Hi Alexandre, I played utopia.wav on the problem machine, but got no sound from it. The file was not an issue because I checked it on my normal OpenBSD computer beforehand and it played fine. >From aucat (utopia is an 8 minute track. I left the machine for about 15 >minutes after running this and then the audioctl commands, when I came back >nothing had changed on the terminal window): $ aucat -dd -frsnd/0 -i utopia.wav wav(utopia.wav|): created utopia.wav: playing s16le,0:1,44100 44..87828524 snd0: device requested sio(rsnd/0|): created snd0: playing s16le,0:1,48000 mix(play): newout, will use 9432 fr snd0: block size is 1048 frames, using 9 blocks wav0: overwritten slot 0 wav(wav0)/sta: allocating buffers wav0(127)/stp: not ready, server delayed utopia.wav: read 69324 bytes in 24539us midi(midi): mtc full frame at 0, 24 fps wav(wav0)/run: attaching resamp(utopia.wav): new 963/1048 resamp(utopia.wav)->mix(play): setmaster: 32768/32768 snd0: syncing device, mix(play): todo = 0: lat = 0 rwav(utopia.wav)->resamp(utopia.wav): setting volume to 32768 starting device sio(rsnd/0|): started === $ audioctl; sleep 1; audioctl name=VIA VT8233 version= config=auvia encodings=ulinear:8:1:1,mulaw:8:1:1*,alaw:8:1:1*,slinear:8:1:1*,slinear_le:16:2:1,ulinear_le:16:2:1*,slinear_be:16:2:1*,ulinear_be:16:2:1* properties=full_duplex,mmap,independent full_duplex=0 fullduplex=0 blocksize=4192 hiwat=9 lowat=8 output_muted=0 monitor_gain=0 mode=play play.rate=48000 play.sample_rate=48000 play.channels=2 play.precision=16 play.bps=2 play.msb=1 play.encoding=slinear_le play.gain=199 play.balance=32 play.port=0x0 play.avail_ports=0x0 play.seek=37728 play.samples=62880 play.eof=0 play.pause=0 play.error=0 play.waiting=0 play.open=1 play.active=1 play.buffer_size=65536 play.block_size=4192 play.errors=0 record.rate=48000 record.sample_rate=48000 record.channels=2 record.precision=16 record.bps=2 record.msb=1 record.encoding=slinear_le 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.block_size=9600 record.errors=0 name=VIA VT8233 version= config=auvia encodings=ulinear:8:1:1,mulaw:8:1:1*,alaw:8:1:1*,slinear:8:1:1*,slinear_le:16:2:1,ulinear_le:16:2:1*,slinear_be:16:2:1*,ulinear_be:16:2:1* properties=full_duplex,mmap,independent full_duplex=0 fullduplex=0 blocksize=4192 hiwat=9 lowat=8 output_muted=0 monitor_gain=0 mode=play play.rate=48000 play.sample_rate=48000 play.channels=2 play.precision=16 play.bps=2 play.msb=1 play.encoding=slinear_le play.gain=199 play.balance=32 play.port=0x0 play.avail_ports=0x0 play.seek=37728 play.samples=62880 play.eof=0 play.pause=0 play.error=0 play.waiting=0 play.open=1 play.active=1 play.buffer_size=65536 play.block_size=4192 play.errors=0 record.rate=48000 record.sample_rate=48000 record.channels=2 record.precision=16 record.bps=2 record.msb=1 record.encoding=slinear_le 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.block_size=9600 record.errors=0 $ Let me know if you want me to try something else. Brett.
Re: No audio on auvia0 / "VIA VT8233 AC97"
Not 100% sure from the logs but you've got a lot of mixer channels muted, maybe PCM isn't getting amped. Also try 44100 Hz. >I don't have windows available to update bios You probably don't need Windows, just a boot CD like from PE Builder, Ultimate Boot CD, etc. Intel and Dell also have some ISO images you can reuse. >Is there something else I can try before getting a PCI soundcard? Update BIOS and any other firmware. -- p >dmesg, pcidump, mixerctl, audioctl, and mplayer output below all came from >amd64-5.1 and mplayer from packages: > >== > >OpenBSD 5.1 (GENERIC) #181: Sun Feb 12 09:35:53 MST 2012 >dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC >real mem = 1072365568 (1022MB) >avail mem = 1029746688 (982MB) >mainbus0 at root >bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0720 (45 entries) >bios0: vendor American Megatrends Inc. version "0210" date 09/05/2005 >bios0: ASUSTeK Computer INC. A8V-MX >acpi0 at bios0: rev 0 >acpi0: sleep states S0 S1 S4 S5 >acpi0: tables DSDT FACP APIC OEMB >acpi0: wakeup devices PCI0(S4) PS2K(S4) PS2M(S4) UAR1(S4) P7P8(S4) USB1(S4) >USB2(S4) USB3(S4) USB4(S4) EHCI(S4) ILAN(S4) SLPB(S4) PWRB(S4) >acpitimer0 at acpi0: 3579545 Hz, 24 bits >acpimadt0 at acpi0 addr 0xfee0: PC-AT compat >cpu0 at mainbus0: apid 0 (boot processor) >cpu0: AMD Athlon(tm) 64 Processor 3500+, 2200.45 MHz >cpu0: >FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,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 >cpu0: AMD errata 89, 97 present, BIOS upgrade may be required >cpu0: apic clock running at 200MHz >ioapic0 at mainbus0: apid 1 pa 0xfec0, version 3, 24 pins >acpiprt0 at acpi0: bus 0 (PCI0) >acpiprt1 at acpi0: bus 1 (P0P1) >acpiprt2 at acpi0: bus 2 (P0P7) >acpiprt3 at acpi0: bus 4 (P7P9) >acpiprt4 at acpi0: bus 3 (P7P8) >acpicpu0 at acpi0: PSS >aibs0 at acpi0: RTMP RVLT RFAN >acpibtn0 at acpi0: SLPB >acpibtn1 at acpi0: PWRB >cpu0: Cool'n'Quiet K8 2200 MHz: speeds: 2200 2000 1800 1000 MHz >pci0 at mainbus0 bus 0 >pchb0 at pci0 dev 0 function 0 "VIA K8M800 Host" rev 0x00 >agp at pchb0 not configured >pchb1 at pci0 dev 0 function 1 "VIA K8M800 Host" rev 0x00 >pchb2 at pci0 dev 0 function 2 "VIA K8M800 Host" rev 0x00 >pchb3 at pci0 dev 0 function 3 "VIA K8M800 Host" rev 0x00 >pchb4 at pci0 dev 0 function 4 "VIA K8M800 Host" rev 0x00 >pchb5 at pci0 dev 0 function 7 "VIA K8M800 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 "ATI Radeon VE" rev 0x00 >wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) >wsdisplay0: screen 1-5 added (80x25, vt100 emulation) >radeondrm0 at vga1: apic 1 int 16 >drm0 at radeondrm0 >pciide0 at pci0 dev 15 function 0 "VIA VT8251 SATA" rev 0x00: DMA >pciide0: using apic 1 int 21 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: >wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors >wd0(pciide1:0:0): using PIO mode 4, DMA mode 2 >pciide1: channel 1 disabled (no drives) >uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x90: apic 1 int 20 >uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x90: apic 1 int 22 >uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x90: apic 1 int 21 >uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x90: apic 1 int 23 >ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x90: apic 1 int 22 >usb0 at ehci0: USB revision 2.0 >uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 >viapm0 at pci0 dev 17 function 0 "VIA VT8251 ISA" rev 0x00: SMI >iic0 at viapm0 >spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0 >spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC3200CL3.0 >auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x70: apic 1 int 22 >ac97: codec id 0x414c4761 (Avance Logic ALC655 rev 1) >audio0 at auvia0 >pchb6 at pci0 dev 17 function 7 "VIA VT8251 VLINK" rev 0x00 >vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x7c: apic 1 int 23, address >00:13:d4:cc:b4:36 >rlphy0 at vr0 phy 1: RTL8201L 10/100 PHY, rev. 1 >ppb1 at pci0 dev 19 function 0 "VIA VT8251 PCIE" rev 0x00 >pci2 at ppb1 bus 2 >ppb2 at pci2 dev 0 function 0 "VIA VT8251 PCIE" rev 0x00 >pci3 at ppb2 bus 3 >ppb3 at pci2 dev 0 function 1 "VIA VT8251 PCIE" rev 0x00 >pci4 at ppb3 bus 4 >pchb7 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00 >pchb8 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00 >pchb9 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00 >kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00 >usb1 at uhci0: US
Re: No audio on auvia0 / "VIA VT8233 AC97"
Hey, could you try the following: aucat -dd -frsnd/0 -i whatever.wav and send me the output. If you don't have a .wav file, just use any large bonary file (ex /bsd) it will produce noise. If it hangs, while above process is still running, could you run: audioctl; sleep 1; audioctl and send me the output as well. This is to test whether the DMA engine works; mplayer freezing suggests DMA doesn't start. thanks. -- Alexandre
No audio on auvia0 / "VIA VT8233 AC97"
Hi, I've gotten an old computer and installed OpenBSD on it, to act as a media player. The problem is I have no sound. First attempt was i386-current, 2nd attempt was amd64-5.1. There are 2 audio minijack outputs, one from the sound ports attached to motherboard, the other is a plug leading to the front jack (there are 2 plugs to fit this connector, one labelled "ac97" the other "HD audio"). I've tried of all these, and also disconnecting the front jack altogether. Sound is tested with mplayer, with files of mp4, avi, mkv formats. $ mplayer -cache 1000 -vo sdl -ao null file.avi results in a great picture, with no frame drops $ mplayer -cache 1000 -vo sdl file.avi results in either a blank screen, or a picture that plays for a brief moment then freezes. Jumping forward (page up or arrow) either repeats this brief playback at the new location, or has no effect. I tried changing bios settings but no difference (disabling/enabling onboard AC97 was the only one that seemed related, but I tried usb1/2 etc as well). I don't have windows available to update bios, but from reading AMD erratas 89 and 97, they don't seem related anyway (see dmesg). My understanding is that auvia(4) should work on this machine. Is there something else I can try before getting a PCI soundcard? dmesg, pcidump, mixerctl, audioctl, and mplayer output below all came from amd64-5.1 and mplayer from packages: == OpenBSD 5.1 (GENERIC) #181: Sun Feb 12 09:35:53 MST 2012 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 1072365568 (1022MB) avail mem = 1029746688 (982MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0720 (45 entries) bios0: vendor American Megatrends Inc. version "0210" date 09/05/2005 bios0: ASUSTeK Computer INC. A8V-MX acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S4 S5 acpi0: tables DSDT FACP APIC OEMB acpi0: wakeup devices PCI0(S4) PS2K(S4) PS2M(S4) UAR1(S4) P7P8(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EHCI(S4) ILAN(S4) SLPB(S4) PWRB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) 64 Processor 3500+, 2200.45 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,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 cpu0: AMD errata 89, 97 present, BIOS upgrade may be required cpu0: apic clock running at 200MHz ioapic0 at mainbus0: apid 1 pa 0xfec0, version 3, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus 2 (P0P7) acpiprt3 at acpi0: bus 4 (P7P9) acpiprt4 at acpi0: bus 3 (P7P8) acpicpu0 at acpi0: PSS aibs0 at acpi0: RTMP RVLT RFAN acpibtn0 at acpi0: SLPB acpibtn1 at acpi0: PWRB cpu0: Cool'n'Quiet K8 2200 MHz: speeds: 2200 2000 1800 1000 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "VIA K8M800 Host" rev 0x00 agp at pchb0 not configured pchb1 at pci0 dev 0 function 1 "VIA K8M800 Host" rev 0x00 pchb2 at pci0 dev 0 function 2 "VIA K8M800 Host" rev 0x00 pchb3 at pci0 dev 0 function 3 "VIA K8M800 Host" rev 0x00 pchb4 at pci0 dev 0 function 4 "VIA K8M800 Host" rev 0x00 pchb5 at pci0 dev 0 function 7 "VIA K8M800 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 "ATI Radeon VE" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 1 int 16 drm0 at radeondrm0 pciide0 at pci0 dev 15 function 0 "VIA VT8251 SATA" rev 0x00: DMA pciide0: using apic 1 int 21 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: wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide1:0:0): using PIO mode 4, DMA mode 2 pciide1: channel 1 disabled (no drives) uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x90: apic 1 int 20 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x90: apic 1 int 22 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x90: apic 1 int 21 uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x90: apic 1 int 23 ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x90: apic 1 int 22 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 viapm0 at pci0 dev 17 function 0 "VIA VT8251 ISA" rev 0x00: SMI iic0 at viapm0 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0 spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC3200CL3.0 auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x70: apic 1 int 22 a