Sound problems (hangs and distored output) on current

Daniel O'Connor doconnor at gsoft.com.au
Mon Jul 17 12:07:52 UTC 2006


I am using the ICH chipset in my laptop (Inspiron 8600) and I find than 
after a short time (eg a minute or so) the sound tends to get distorted - it 
isn't clipping, it sounds like low quality sample rate conversion (ie
buzzing/beating on some sounds).

The music is being played with Amarok using the xine output plugin which (I
think) is outputting at 44.1kHz. If I switch to using arts configured to 
output at 48kHz it used to sound better, however since I upgraded it locks
my system up after about 5 seconds :(

I don't get a panic but that may be a problem with X running.. I will try 
and get a backtrace.

The system is running -current as of July 4th.

This is the output when I am running amarok using the Xine engine.
[inchoate 16:15] ~ >cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH4 (82801DB)> at io 0xf4fff800, 0xf4fff400 irq 9 bufsz 16384 kld snd_ich (1p/1r/2v channels duplex default)
        [pcm0:play:0:dsp0.0]: spd 48000, fmt 0x10000010, flags 0x00103020, 0x00000000
        interrupts 93080, underruns 0, ready 0 [b:8192/4096/2|bs:8192/4096/2]
        {userland} -> feeder_vchan_s16(0x10000010) -> {hardware}
        [pcm0:record:0:dsp0.1]: spd 48000, fmt 0x10000010, flags 0x00000000, 0x00000000
        interrupts 0, overruns 0, hfree 8192, sfree 131072 [b:8192/4096/2|bs:131072/4096/32]
        {hardware} -> feeder_root(0x10000010) -> {userland}
        pcm0:play:0:dsp0.0[pcm0:virtual:0:dsp0.2]: spd 44100/48000, fmt 0x10000010, flags 0x10001030, 0x00000010, pid 1131
        interrupts 0, underruns 0, ready 131072 [b:0/4096/0|bs:131072/4096/32]
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
        pcm0:play:0:dsp0.0[pcm0:virtual:1:dsp0.3]: spd 44100/48000, fmt 0x10000010, flags 0x10000000, 0x00000010
        interrupts 0, underruns 0, ready 0 [b:0/4096/0|bs:131072/4096/32]
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
[inchoate 16:15] ~ >ps -axwwwp 1131
  PID  TT  STAT      TIME COMMAND
 1131  ??  S      1:59.93 amarokapp
[inchoate 16:15] ~ >sysctl hw.snd
hw.snd.report_soft_formats: 1
hw.snd.targetirqrate: 32
hw.snd._feeder_rate_buffersize: 8192
hw.snd.feeder_rate_scaling: 5
hw.snd.feeder_rate_ratemax: 1102500
hw.snd.feeder_rate_ratemin: 4000
hw.snd.verbose: 2
hw.snd.maxautovchans: 4
hw.snd.default_unit: 0
hw.snd.pcm0._buffersize: 16384
hw.snd.pcm0._vchans: 2
hw.snd.pcm0._vchanrate: 48000
hw.snd.pcm0.ac97rate: 48000
[inchoate 16:16] ~ >dmesg
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 7.0-CURRENT #0: Tue Jul  4 14:28:22 CST 2006
    darius at inchoate.localdomain:/usr/obj/usr/src/sys/INCHOATE
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1400MHz (1398.82-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
  Features=0xa7e9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x180<EST,TM2>
real memory  = 536535040 (511 MB)
avail memory = 511426560 (487 MB)
sequencer 0 created scp 0xc284be00
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
dell0: <Dell System Management Mode BIOS> on motherboard
dell0: Dell Computer Corporation Inspiron 8600, BIOS A04, service tag C41H91S
acpi0: <DELL CPi R  > on motherboard
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link1: BIOS IRQ 11 for 0.31.INTB is invalid
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82855 host to AGP bridge> on hostb0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce FX Go5200> mem 0xfc000000-0xfcffffff,0xd0000000-0xdfffffff irq 11 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xbf80-0xbf9f irq 11 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: LegSup = 0x0000
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xbf40-0xbf5f irq 11 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: LegSup = 0x0000
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xbf20-0xbf3f irq 11 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: LegSup = 0x0000
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xf4fffc00-0xf4ffffff irq 11 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci_link1: BIOS IRQ 11 for 2.3.INTA is invalid
pci2: <ACPI PCI bus> on pcib2
bfe0: <Broadcom BCM4401 Fast Ethernet> mem 0xfaffe000-0xfaffffff irq 11 at device 0.0 on pci2
miibus0: <MII bus> on bfe0
bmtphy0: <BCM4401 10/100baseTX PHY> on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bfe0: Ethernet address: 00:0d:56:b3:99:6e
bfe0: [GIANT-LOCKED]
cbb0: <TI4510 PCI-CardBus Bridge> at device 1.0 on pci2
cbb0: Found memory at f6000000
cbb0: Secondary bus is 0
cbb0: Secondary bus set to 2 subbus 3
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <1394 Open Host Controller Interface> mem 0xfaffd800-0xfaffdfff,0xfaff8000-0xfaffbfff irq 11 at device 1.1 on pci2
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 43:4f:c0:00:08:17:a4:38
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwip0: <IP over FireWire> on firewire0
fwip0: Firewire address: 43:4f:c0:00:08:17:a4:38 @ 0xfffe00000000, S400, maxrec 2048
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 42:4f:c0:17:a4:38
fwe0: Ethernet address: 42:4f:c0:17:a4:38
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
ath0: <Atheros 5212> mem 0xfafe0000-0xfafeffff irq 9 at device 3.0 on pci2
ath0: [GIANT-LOCKED]
ath0: Ethernet address: 00:90:96:c1:90:54
ath0: mac 5.9 phy 4.3 radio 4.6
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xbfa0-0xbfaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pcm0: <Intel ICH4 (82801DB)> port 0xb800-0xb8ff,0xbc40-0xbc7f mem 0xf4fff800-0xf4fff9ff,0xf4fff400-0xf4fff4ff irq 9 at device 31.5 on pci0
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> flags 0x2000 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model GlidePoint, device ID 0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcf7ff,0xcf800-0xcffff pnpid ORM0000 on isa0
fdc_initial_reset called
status = 0xff
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio0: [FAST]
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio1: [FAST]
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1398819812 Hz quality 800
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
seq_eventthread started
Status is 0x30000006
ad0: 57231MB <HTS726060M9AT00 MH4OA6EA> at ata0-master UDMA100
acd0: DVDR <NEC DVD+/-RW ND-6650A/102C> at ata1-master UDMA33
cd0 at ata1 bus 0 target 0 lun 0
cd0: <_NEC DVD+-RW ND-6650A 102C> Removable CD-ROM SCSI-0 device
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s2a
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 336 files 1
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 4 files 0
WARNING: attempt to net_add_domain(bluetooth) after domainfinalize()
ath0: link state changed to UP
NVRM: detected agp.ko, aborting NVIDIA AGP setup!
Warning: pid 982 used static ldt allocation.
See the i386_set_ldt man page for more info
ums0: <Logitech USB-PS/2 Trackball, class 0/0, rev 1.00/2.10, addr 2> on uhub1
ums0: 3 buttons and Z dir.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20060717/695b11a4/attachment.pgp


More information about the freebsd-multimedia mailing list