DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th December 2010
tehsean tehsean is offline
Custom User
 
Join Date: Aug 2010
Posts: 22
Thanked 1 Time in 1 Post
Default azalia Intel SCH HD Audio strange audio issues

The machine is a Fujitsu U820. Audio works, but the sound is very dirty: a lot of echo, artifact and static.

The first time I played with audio on this machine was while X was running. In X, the audio is passable, with the echo barely noticeable and a mild amount of static. When i went back to the command line, audio performance was abysmal. It almost sounds like the audio data for each frame rolls into the next frame.

I man'd / faq'd up, and played around with settings in mixerctl, while running mpg321 on command line. I noticed that issuing the mixerctl command while the audio was playing cleaned up the sound for a split second. I then found that entering ANY command while audio was playing cleaned up the sound. I whipped up a little script:
Code:
while true; do
ls
sleep .05
done
Running this while playing got command line audio playing at about the same quality as in X.

I've tried both ogg123 and mpg321 which both perform the same. I also played the same mp3 I tested with in Windows XP (dual boot) and the sound output does not have any issue.

Here's my dmesg, audioctl, and mixerctl -v output:
DMESG
Code:
OpenBSD 4.8 (GENERIC.MP) #359: Mon Aug 16 09:16:26 MDT 2010
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
real mem  = 1062490112 (1013MB)
avail mem = 1035124736 (987MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/16/09, BIOS32 rev. 0 @ 0xfdc39, SMBIOS rev. 2.4 @ 0xe5950 (34 entries)
bios0: vendor FUJITSU // Phoenix Technologies Ltd. version "Version 1.18" date 01/16/2009
bios0: FUJITSU LifeBook U820
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT SSDT FACP HPET MCFG SSDT SSDT APIC BOOT SLIC
acpi0: wakeup devices HDEF(S3) PXS1(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (PXS1)
acpiprt2 at acpi0: bus 4 (RP01)
acpiprt3 at acpi0: bus 8 (RP02)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 100 degC
acpitz1 at acpi0: critical temperature 100 degC
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: CMB1 model "CP345770-02" serial 01A-Z091130000060Z type LION oem "Fujitsu"
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: CRT_
acpivout1 at acpivideo0: LCD_
acpivout2 at acpivideo0: TV__
acpivout3 at acpivideo0: DVI_
bios0: ROM list: 0xc0000/0xe600!
cpu0: Enhanced SpeedStep 1597 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel US15W Host" rev 0x06
vga1 at pci0 dev 2 function 0 "Intel US15W Video" rev 0x06
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp at vga1 not configured
azalia0 at pci0 dev 27 function 0 "Intel SCH HD Audio" rev 0x06: apic 2 int 22 (irq 11)
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel SCH PCIE" rev 0x06: apic 2 int 17 (irq 11)
pci1 at ppb0 bus 4
ppb1 at pci1 dev 0 function 0 "PLX PEX 8112" rev 0xaa
pci2 at ppb1 bus 5
cbb0 at pci2 dev 3 function 0 "O2 Micro OZ69[17]2 CardBus" rev 0x40: apic 2 int 19 (irq 11)
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 36 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
ppb2 at pci0 dev 28 function 1 "Intel SCH PCIE" rev 0x06: apic 2 int 16 (irq 11)
pci3 at ppb2 bus 8
athn0 at pci3 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 17 (irq 11), address 00:26:b6:8e:ac:15
athn0: AR9280 rev 2 (2T2R), ROM rev 22
uhci0 at pci0 dev 29 function 0 "Intel SCH USB" rev 0x06: apic 2 int 23 (irq 11)
uhci1 at pci0 dev 29 function 1 "Intel SCH USB" rev 0x06: apic 2 int 19 (irq 11)
uhci2 at pci0 dev 29 function 2 "Intel SCH USB" rev 0x06: apic 2 int 18 (irq 11)
ehci0 at pci0 dev 29 function 7 "Intel SCH USB" rev 0x06: apic 2 int 21 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
sdhc0 at pci0 dev 30 function 0 "Intel SCH SD/MMC" rev 0x06: apic 2 int 22 (irq 11)
sdmmc0 at sdhc0
pcib0 at pci0 dev 31 function 0 "Intel SCH LPC" rev 0x06
pciide0 at pci0 dev 31 function 1 "Intel SCH IDE" rev 0x06: DMA, channel 0 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <KingSpec KSD-ZF18.1-064MS>
wd0: 1-sector PIO, LBA, 60736MB, 124387328 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
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: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
sdhc_sdclk_frequency_select: command in progress
sdmmc0: can't enable card
umass0 at uhub0 port 6 configuration 1 interface 0 "RICOH USB2.0-FLASH Media" rev 2.00/0.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <RICOH, R5U880FlashMedia, 0000> SCSI2 0/direct removable
sd0: 15296MB, 512 bytes/sec, 31326208 sec total
uvideo0 at uhub0 port 8 configuration 1 interface 0 "MITSUMI USB Camera" rev 2.00/1.00 addr 3
video0 at uvideo0
ugen0 at uhub3 port 1 "AuthenTec Fingerprint Sensor" rev 2.00/19.00 addr 2
ugen1 at uhub2 port 1 "Silicon Labs Kyocera GPS Module" rev 1.10/1.00 addr 2
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Fujitsu Component USB Touch Panel" rev 1.10/50.01 addr 2
uhidev0: iclass 3/1
uhts0 at uhidev0
wsmouse1 at uhts0 mux 0
ubt0 at uhub2 port 2 "vendor 0x0c24 product 0x0022" rev 2.00/48.39 addr 3
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

AUDIOCTL
Code:
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=17536
hiwat=2
lowat=1
output_muted=0
monitor_gain=0
mode=play
play.rate=44100
play.sample_rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=142
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=35072
play.samples=40683520
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=17536
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=125
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.block_size=9600
record.errors=0
and MIXERCTL -V
Code:
inputs.dac-0:1=141,141 
inputs.dac-2:3=141,141 
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=0,0 
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=0,0 
inputs.mix_source=aux  { mic2 aux }
inputs.mix_mic2=120,120 
inputs.mix_aux=120 
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
outputs.spkr_source=mix3  [ mix2 mix3 ]
outputs.spkr_mute=on  [ off on ]
outputs.spkr_eapd=on  [ off on ]
outputs.hp_source=mix2  [ mix2 mix3 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
outputs.mic2_source=mix2  [ mix2 mix3 ]
outputs.mic2_mute=on  [ off on ]
inputs.mic2=0,0 
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50 input-vr80 input-vr100 ]
record.adc-0:1_source=mic  [ mic2 aux mic mix ]
record.adc-2:3_source=mic2,aux,mix  { mic2 aux mix }
outputs.hp_sense=plugged  [ unplugged plugged ]
outputs.mic2_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic2  { hp mic2 }
outputs.master=142,142 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp  { dac-0:1 dac-2:3 spkr hp mic2 }
record.volume=125,125 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-2:3,adc-0:1  { adc-2:3 adc-0:1 mic2 }
Reply With Quote
  #2   (View Single Post)  
Old 4th December 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by tehsean View Post
The machine is a Fujitsu U820. Audio works, but the sound is very dirty: a lot of echo, artifact and static.
...
Here's my dmesg, audioctl, and mixerctl -v output:
DMESG
Code:
OpenBSD 4.8 (GENERIC.MP) #359: Mon Aug 16 09:16:26 MDT 2010
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
real mem  = 1062490112 (1013MB)
avail mem = 1035124736 (987MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/16/09, BIOS32 rev. 0 @ 0xfdc39, SMBIOS rev. 2.4 @ 0xe5950 (34 entries)
bios0: vendor FUJITSU // Phoenix Technologies Ltd. version "Version 1.18" date 01/16/2009
bios0: FUJITSU LifeBook U820
...
According to the following:

http://www.laptopdrivers.net/downloa...nd_generic.htm

Version 1.22 of the BIOS is available. You should check to see whether you can upgrade.

Secondly, ongoing discussion on the official misc@ mailing list indicates that it is not uncommon for manufacturers to incorrectly integrate audio functionality, or enter into contracts for crippled chipsets which have not been fully tested.

My recommendation would be to:
  • upgrade your BIOS (if possible) first.
  • If problems persist, consider installing -current second.
  • Provide all relevant details to misc@ or file a PR. The developers will be more interested in knowing whether the behavior is already resolved in -current, so if you don't answer this question upfront, it will be the first suggestion they make to you.
If you do end up posting or submitting a PR, be thorough in the information provided to the developers. Information on submitting can be found at the following:

http://www.openbsd.org/report.html

It is wise to follow the recommendations advised on this page for either PR submissions or posting to misc@.
Reply With Quote
  #3   (View Single Post)  
Old 25th August 2012
tehsean tehsean is offline
Custom User
 
Join Date: Aug 2010
Posts: 22
Thanked 1 Time in 1 Post
Default

As of 5.1, this issue is now no longer a nuisance and actually hard-locks the computer. Only course of action is a power button hold to restart. I'ma hafta send in a bug report.

Oh, BTW, this is happening on a Sony Vaio P I'm using now. So Fuj firmware is probably not the issue.
Reply With Quote
  #4   (View Single Post)  
Old 26th August 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by tehsean View Post
I'ma hafta send in a bug report.
Given the age of OpenBSD 5.1, the developers will be more interested in the behavior seen with -current (which at this point is a month beyond the OpenBSD 5.2 codebase slated to be released in November...). You might find different behavior with -current making it worth testing before sending a bug report.

If problems persist, please file a bug report on -current. Information on reporting can be found at the following:

http://www.openbsd.org/report.html

Last edited by ocicat; 26th August 2012 at 12:55 AM. Reason: correction: 5.2 tagging took place late July...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
netbsd 5 audio from mic in jaideep_jdof NetBSD General 0 28th April 2010 06:15 PM
netbsd 5 and intel hda audio support jaideep_jdof NetBSD General 5 18th September 2009 05:50 PM
macmini audio gosha OpenBSD General 15 14th January 2009 02:43 AM
Audio & Headphones JMJ_coder General Hardware 3 10th November 2008 05:21 PM
Intel High Definition Audio Stuttering Mare FreeBSD General 0 17th June 2008 10:03 AM


All times are GMT. The time now is 06:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick