azalia audio: Sound distorted
Hello, I am currently running a snapshot of OpenBSD-current (amd64) as of 31st July, 2012. I am having audio problems, i.e. the sound is distorted when playing an mp3 or ogg-file. Sometimes even "cat /dev/zero > /dev/audio" leads to errors (as reported by "audioctl play.errors"). Should I try a more recent snapshot? I can't see any relevant changes in http://www.openbsd.org/plus.html. I have attached the output of "dmesg", "audioctl -a" and "mixerctl -a" below. Many thanks in advance for your help. Best Regards, Alexander === Snip Script started on Thu Aug 9 22:39:06 2012 $ su Password: # dmesg OpenBSD 5.2 (GENERIC.MP) #367: Mon Jul 30 16:29:56 MDT 2012 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP RTC BIOS diagnostic error 80 real mem = 8486903808 (8093MB) avail mem = 8238608384 (7856MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6dd0 (20 entries) bios0: vendor Insyde Corp. version "R0190E4" date 04/30/2012 bios0: Sony Corporation SVTC5E acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP UEFI ASF! HPET APIC MCFG SLIC WDAT SSDT BOOT ASPT SSDT SSDT acpi0: wakeup devices P0P1(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S0) PXSX(S4) RP01(S0) PXSX(S4) RP02(S0) PXSX(S4) RP03(S3) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(S4) RP08(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEG2(S4) PEG3(S4) LID0(S3) SLPB(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.90 MHz cpu0: FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF cpu0: 256KB 64b/line 8-way L2 cache cpu0: apic clock running at 99MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz cpu1: FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF cpu1: 256KB 64b/line 8-way L2 cache cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz cpu2: FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF cpu2: 256KB 64b/line 8-way L2 cache cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz cpu3: FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF cpu3: 256KB 64b/line 8-way L2 cache ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (P0P1) acpiprt2 at acpi0: bus 2 (RP01) acpiprt3 at acpi0: bus 8 (RP02) acpiprt4 at acpi0: bus 14 (RP03) acpiprt5 at acpi0: bus -1 (RP04) acpiprt6 at acpi0: bus -1 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus -1 (RP07) acpiprt9 at acpi0: bus -1 (RP08) acpiprt10 at acpi0: bus -1 (PEG0) acpiprt11 at acpi0: bus -1 (PEG1) acpiprt12 at acpi0: bus -1 (PEG2) acpiprt13 at acpi0: bus -1 (PEG3) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpicpu2 at acpi0: C3, C2, C1, PSS acpicpu3 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature is 103 degC acpitz1 at acpi0: critical temperature is 126 degC acpiac0 at acpi0: AC unit offline acpibat0 at acpi0: BAT0 model "VGP-BPS30" serial 3435 type LION oem "726f4320594e4f53" acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: SLPB acpisony0 at acpi0: SNC_ acpivideo0 at acpi0: PEGP acpivideo1 at acpi0: GFX0 acpivout0 at acpivideo1: DD02 cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 2300, 2200, 2000, 1900, 1800, 1700, 1500, 1400, 1300, 1200, 1100, 900, 800, 799 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09 vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp at vga1 not configured "Intel 7 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 0 int 16 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI roo
Re: azalia audio: Sound distorted
On Aug 09 23:12:27, Alexander Shendi (web.de) wrote: > Hello, > > I am currently running a snapshot of OpenBSD-current (amd64) as of > 31st July, 2012. I am having audio problems, i.e. the sound is distorted > when playing an mp3 or ogg-file. How exactly do you play it? Do you run sndiod? How exactly? > Sometimes even "cat /dev/zero > /dev/audio" leads to errors (as reported by > "audioctl play.errors"). In your output below, it keeps saying play.errors=0 > Should I try a more recent snapshot? I can't see any relevant changes in > http://www.openbsd.org/plus.html. > > I have attached the output of "dmesg", "audioctl -a" and "mixerctl -a" > below. > > Many thanks in advance for your help. > > Best Regards, > > Alexander > > === Snip > > Script started on Thu Aug 9 22:39:06 2012 > $ su > Password: > # dmesg > OpenBSD 5.2 (GENERIC.MP) #367: Mon Jul 30 16:29:56 MDT 2012 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > RTC BIOS diagnostic error 80 > real mem = 8486903808 (8093MB) > avail mem = 8238608384 (7856MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6dd0 (20 entries) > bios0: vendor Insyde Corp. version "R0190E4" date 04/30/2012 > bios0: Sony Corporation SVTC5E > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP UEFI ASF! HPET APIC MCFG SLIC WDAT SSDT BOOT ASPT > SSDT SSDT > acpi0: wakeup devices P0P1(S4) GLAN(S4) EHC1(S3) EHC2(S3) XHC_(S3) HDEF(S0) > PXSX(S4) RP01(S0) PXSX(S4) RP02(S0) PXSX(S4) RP03(S3) PXSX(S4) RP04(S4) > PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(S4) RP08(S4) > PEG0(S4) PEGP(S4) PEG1(S4) PEG2(S4) PEG3(S4) LID0(S3) SLPB(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpihpet0 at acpi0: 14318179 Hz > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.90 MHz > cpu0: > FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF > cpu0: 256KB 64b/line 8-way L2 cache > cpu0: apic clock running at 99MHz > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz > cpu1: > FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF > cpu1: 256KB 64b/line 8-way L2 cache > cpu2 at mainbus0: apid 2 (application processor) > cpu2: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz > cpu2: > FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF > cpu2: 256KB 64b/line 8-way L2 cache > cpu3 at mainbus0: apid 3 (application processor) > cpu3: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz, 2394.56 MHz > cpu3: > FPU,VME,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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,NXE,LONG,LAHF > cpu3: 256KB 64b/line 8-way L2 cache > ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins > acpimcfg0 at acpi0 addr 0xe000, bus 0-255 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (P0P1) > acpiprt2 at acpi0: bus 2 (RP01) > acpiprt3 at acpi0: bus 8 (RP02) > acpiprt4 at acpi0: bus 14 (RP03) > acpiprt5 at acpi0: bus -1 (RP04) > acpiprt6 at acpi0: bus -1 (RP05) > acpiprt7 at acpi0: bus -1 (RP06) > acpiprt8 at acpi0: bus -1 (RP07) > acpiprt9 at acpi0: bus -1 (RP08) > acpiprt10 at acpi0: bus -1 (PEG0) > acpiprt11 at acpi0: bus -1 (PEG1) > acpiprt12 at acpi0: bus -1 (PEG2) > acpiprt13 at acpi0: bus -1 (PEG3) > acpiec0 at acpi0 > acpicpu0 at acpi0: C3, C2, C1, PSS > acpicpu1 at acpi0: C3, C2, C1, PSS > acpicpu2 at acpi0: C3, C2, C1, PSS > acpicpu3 at acpi0: C3, C2, C1, PSS > acpitz0 at acpi0: critical temperature is 103 degC > acpitz1 at acpi0: critical temperature is 126 degC > acpiac0 at acpi0: AC unit offline > acpibat0 at acpi0: BAT0 model "VGP-BPS30" serial 3435 type LION oem > "726f4320594e4f53" > acpibtn0 at acpi0: LID0 > acpibtn1 at acpi0: SLPB > acpisony0 at acpi0: SNC_ > acpivideo0 at acpi0: PEGP > acpivideo1 at acpi0: GFX0 > acpivout0 at acpivideo1: DD02 > cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 2300, 2200, 2000, > 1900, 1800, 1700, 1500, 1400, 1300, 1200, 1100, 900, 800, 799 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09 > vga1 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09 > wsdisplay0 at vga1 mux 1: console (80x25, v
Re: azalia audio: Sound distorted
Jan Stary wrote: > > I am currently running a snapshot of OpenBSD-current (amd64) as of > > 31st July, 2012. I am having audio problems, i.e. the sound is distorted > > when playing an mp3 or ogg-file. > > How exactly do you play it? > Do you run sndiod? How exactly? I got a new Ivy Bridge laptop this week with a dmesg that looks broadly similar to Alexander's--in particular it has the same Intel HD Audio and ALC269 codec--and playing audio is broken there as well. To simplify things, I stopped sndiod and ran mpg123 directly. That produces mostly noise, but concurrent system activity sometimes improves the sound, so you can actually make out that it is playing, say, song51.mp3. Running "ls -R /" in another xterm works best, though neither disk (dd) nor video (glxgears) activity on their own have much effect. There are no play.errors. Frequently it sounds as if azalia0 is stuck on the same audio buffer, just repeating it over and over again. systat(1) shows azalia0 getting 10 interrupts/s no matter how good or bad the audio sounds. My best guess is some sort of interrupt or DMA problem. -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: azalia audio: Sound distorted
Does the diff below fix the problem? Index: azalia.c === RCS file: /cvs/src/sys/dev/pci/azalia.c,v retrieving revision 1.200 diff -u -p -r1.200 azalia.c --- azalia.c10 May 2012 22:46:48 - 1.200 +++ azalia.c10 Aug 2012 16:22:12 - @@ -461,6 +461,7 @@ azalia_configure_pci(azalia_t *az) case PCI_PRODUCT_INTEL_3400_HDA: case PCI_PRODUCT_INTEL_QS57_HDA: case PCI_PRODUCT_INTEL_6SERIES_HDA: + case PCI_PRODUCT_INTEL_7SERIES_HDA: reg = azalia_pci_read(az->pc, az->tag, INTEL_PCIE_NOSNOOP_REG); reg &= INTEL_PCIE_NOSNOOP_MASK;
Re: azalia audio: Sound distorted
Mark Kettenis: > Does the diff below fix the problem? Yes, it does. > --- azalia.c 10 May 2012 22:46:48 - 1.200 > +++ azalia.c 10 Aug 2012 16:22:12 - > @@ -461,6 +461,7 @@ azalia_configure_pci(azalia_t *az) > case PCI_PRODUCT_INTEL_3400_HDA: > case PCI_PRODUCT_INTEL_QS57_HDA: > case PCI_PRODUCT_INTEL_6SERIES_HDA: > + case PCI_PRODUCT_INTEL_7SERIES_HDA: > reg = azalia_pci_read(az->pc, az->tag, > INTEL_PCIE_NOSNOOP_REG); > reg &= INTEL_PCIE_NOSNOOP_MASK; -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: azalia audio: Sound distorted
Christian Weisgerber mips.inka.de> writes: > > Mark Kettenis: > > > Does the diff below fix the problem? > > Yes, it does. > > > --- azalia.c10 May 2012 22:46:48 - 1.200 > > +++ azalia.c10 Aug 2012 16:22:12 - > > @@ -461,6 +461,7 @@ azalia_configure_pci(azalia_t *az) > > case PCI_PRODUCT_INTEL_3400_HDA: > > case PCI_PRODUCT_INTEL_QS57_HDA: > > case PCI_PRODUCT_INTEL_6SERIES_HDA: > > + case PCI_PRODUCT_INTEL_7SERIES_HDA: > > reg = azalia_pci_read(az->pc, az->tag, > > INTEL_PCIE_NOSNOOP_REG); > > reg &= INTEL_PCIE_NOSNOOP_MASK; > Great :) Guess I'll have to learn to compile an OpenBSD kernel. Thanks to all who replied. I am currently travelling. I will try this diff when I have decent network connectivity again and will report the results.
Re: azalia audio: Sound distorted
Hello, > Christian Weisgerber mips.inka.de> writes: > > > > > Mark Kettenis: > > > > > Does the diff below fix the problem? > > > > Yes, it does. The diff works for me too. Many thanks to you all for your help. Alexander