Re: problems with playback via pcm device

2001-02-09 Thread Mike Holling

 i have Ensoniq ES1371-based soundcard supported by pcm driver and
 experience some problems. the sound played is interruped by clicks and
 distorsions, and they appear more often when the disk activity is high.
 during playback the kernel generates messages like 'pcm0: hwptr went
 backwards 64 - 32'. any ideas?

I have similar problems, except the disruptions only seem to occur during
keyboard activity.  I ran a cvsup while using mpg123 and had no problems,
which is pretty impressive since the machine is a P133.  However, even a
small amount of typing causes noticeable audio glitches.  This happens
both with a ES1371 and an old SB16 ISA card.  It seems I may also be
losing keystrokes from the keyboard, though I haven't confirmed it's not a
problem with the keyboard itself.

- Mike



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: problems with playback via pcm device

2001-02-09 Thread John Baldwin


On 09-Feb-01 Mike Holling wrote:
 i have Ensoniq ES1371-based soundcard supported by pcm driver and
 experience some problems. the sound played is interruped by clicks and
 distorsions, and they appear more often when the disk activity is high.
 during playback the kernel generates messages like 'pcm0: hwptr went
 backwards 64 - 32'. any ideas?
 
 I have similar problems, except the disruptions only seem to occur during
 keyboard activity.  I ran a cvsup while using mpg123 and had no problems,
 which is pretty impressive since the machine is a P133.  However, even a
 small amount of typing causes noticeable audio glitches.  This happens
 both with a ES1371 and an old SB16 ISA card.  It seems I may also be
 losing keystrokes from the keyboard, though I haven't confirmed it's not a
 problem with the keyboard itself.

This could be related to the entropy gathering by the random kthread.  Have you
tried removing the random device from your kernel?

 - Mike

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: problems with playback via pcm device

2001-02-09 Thread Ilya Naumov

On Fri, 9 Feb 2001, John Baldwin wrote:

  i have Ensoniq ES1371-based soundcard supported by pcm driver and
  experience some problems. the sound played is interruped by clicks and
  distorsions, and they appear more often when the disk activity is high.
  during playback the kernel generates messages like 'pcm0: hwptr went
  backwards 64 - 32'. any ideas?

 This could be related to the entropy gathering by the random kthread.  Have you
 tried removing the random device from your kernel?

yes, i've tried. no effect.


sincerely,
ilya naumov (at work)




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: problems with playback via pcm device

2001-02-09 Thread Mike Holling

  This could be related to the entropy gathering by the random kthread.  Have you
  tried removing the random device from your kernel?

 yes, i've tried. no effect.

This seems to have fixed the problem for me, thanks!  I'm using the
machine now and am getting no keyboard-related glitches in audio, just
when the machine gets busy (which is fine since I don't expect a P133 to
be able to do too much else when playing MP3's).

- Mike




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



problems with playback via pcm device

2001-02-08 Thread Ilya Naumov


i have Ensoniq ES1371-based soundcard supported by pcm driver and
experience some problems. the sound played is interruped by clicks and
distorsions, and they appear more often when the disk activity is high.
during playback the kernel generates messages like 'pcm0: hwptr went
backwards 64 - 32'. any ideas?

here is my dmesg:

Copyright (c) 1992-2001 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 5.0-CURRENT #2: Thu Feb  8 18:19:26 MSK 2001
[EMAIL PROTECTED]:/garbage/src/sys/compile/CAMEL
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 550023689 Hz
CPU: AMD Athlon(tm) Processor (550.02-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x621  Stepping = 1
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
  AMD Features=0xc040AMIE,DSP,3DNow!
real memory  = 134135808 (130992K bytes)
avail memory = 125829120 (122880K bytes)
Preloaded elf kernel "kernel" at 0xc03de000.
Pentium Pro MTRR support enabled
Using $PIR table, 8 entries at 0xc00f15e0
npx0: math processor on motherboard
npx0: INT 16 interface
pcib0: Host to PCI bridge at pcibus 0 on motherboard
pci0: PCI bus on pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at 0.0 (no driver attached)
isab0: PCI-ISA bridge at device 4.0 on pci0
isa0: ISA bus on isab0
atapci0: VIA 82C686 ATA66 controller port 0xd800-0xd80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: serial bus, USB at 4.2 (no driver attached)
pci0: serial bus, USB at 4.3 (no driver attached)
pcm0: AudioPCI ES1371 port 0xa400-0xa43f irq 9 at device 9.0 on pci0
ahc0: Adaptec aic7850 SCSI adapter port 0xa000-0xa0ff mem 0xe180-0xe1800fff irq 
5 at device 10.0 on pci0
aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs
xl0: 3Com 3c905B-TX Fast Etherlink XL port 0x9800-0x987f mem 0xe100-0xe17f 
irq 10 at device 11.0 on pci0
xl0: Ethernet address: 00:10:5a:74:c4:6c
miibus0: MII bus on xl0
xlphy0: 3Com internal media interface on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: NEC 72065B or clone at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5" drive on fdc0 drive 0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
psm0: PS/2 Mouse flags 0x8000 irq 12 on atkbdc0
psm0: model NetMouse/NetScroll Optical, device ID 0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
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
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
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
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
unknown: PNP0401 can't assign resources
unknown: PNP0501 can't assign resources
unknown: PNP0501 can't assign resources
unknown: PNP0700 can't assign resources
unknown: PNP0f13 can't assign resources
unknown: PNP0303 can't assign resources
atspeaker0: AT speaker at port 0x61 on isa0
IP packet filtering initialized, divert enabled, rule-based forwarding disabled, 
default to deny, logging limited to 200 packets/entry by default
ncp_load: [210-213]
ad0: 8223MB ST38410A [16708/16/63] at ata0-master UDMA66
acd0: CDROM CREATIVE CD5220 at ata1-master using WDMA2
Waiting 5 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s1a
xl0: promiscuous mode enabled
/dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 $
/dev/vmmon: Module vmmon: initialized


sincerely,
ilya naumov (at work)



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: problems with playback via pcm device

2001-02-08 Thread Warner Losh

In message [EMAIL PROTECTED] Ilya Naumov writes:
: during playback the kernel generates messages like 'pcm0: hwptr went
: backwards 64 - 32'. any ideas?
: FreeBSD 5.0-CURRENT #2: Thu Feb  8 18:19:26 MSK 2001

Interrupt latency in current really sucks right now.

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message