Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 23:43:39 -0400 (EDT)
From:      Antoine Beaupre <beaupran@IRO.UMontreal.CA>
To:        stable@freebsd.org
Subject:   Can't record hifi audio on with sox on -stable
Message-ID:  <Pine.LNX.4.21.0010242256590.26679-100000@phobos.IRO.UMontreal.CA>

next in thread | raw e-mail | index | archive | help
Hi. 

I have submitted a follow-up on my previous pr (kern/21438) concerning
4.1-rel here but it might have been considered rude by some so I will
start a fresh new thread with this since (1) a new release is coming
(yay) and (2) I do not seem to be the only one having audio problems with
-stable. A search on the freebsd.org engines does not yield any result for
"record overrun" (my problem).

Ok here we go. 

Testing are all made with "rec" from the sox (12.16) package. Recording
first a simple file (8000 Hz, 8 bits, mono) works correctly. If I switch
to 16 bits, the recorded file is just empty (i.e. no sound at all). Trying
now 22050 Hz at 8 bits, mono: working correctly.

Now trying 44100 Hz at 8 bits, mono gives me:

pcm0: record overrun, dumping 44500 bytes
[...]

(about 1 warning/second) And the sample is just 8192 bytes big. CPU usage
also gets really high (almost 100%). Same with 16 bits recording at
44100Hz, mono.

Doing the same in stereo yields the predictable result:

pcm0: record overrun, dumping 89212 bytes

which is vaguely the double of mono recording overruns. 

So that's about it. The message comes from line 577 in file
/sys/dev/sound/pcm/channel.c. I do not understand clearly what could be
the problem here.

The sound card is a AWE32: 
sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x300-0x301,0x388-0x38b irq
9 drq 0,5 on isa0
pcm0: <SB DSP 4.16> on sbc0

It's odd, however, that drq 0 thing... The system is a 4.1.1-stable dated
on 2000.10.17. 

Playing hi-fi doesn't yield the same problems, on the first look, this
might be because it's using the other drq setting (???).

So that's about all I can think of now, please send in any comments or
ideas regarding this.

Here are dmesg output:

Copyright (c) 1992-2000 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 4.1.1-STABLE #0: Tue Oct 17 10:52:04 EDT 2000
    root@:/usr/src/sys/compile/HALL
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 167046148 Hz
CPU: Pentium/P55C (167.05-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 33554432 (32768K bytes)
config> dis joy
config> irq sio2 12
avail memory = 29491200 (28800K bytes)
Preloaded elf kernel "kernel" at 0xc0352000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc035209c.
Intel Pentium detected, installing workaround for F00F bug
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at
device 7.3 on pci0
pci0: <ATI Mach64-GU graphics accelerator> at 9.0
ahc0: <Adaptec 2930CU SCSI adapter> port 0x6400-0x64ff mem
0xe1001000-0xe1001fff irq 10 at device 11.0 on pci0
aic7860: Single Channel A, SCSI Id=7, 3/255 SCBs
isa0: too many dependant configs (8)
isa0: unexpected small tag 14
ep0: <3Com 3C509-TPO EtherLink III> at port 0x200-0x20f irq 5 on isa0
ep0: Ethernet address 00:10:5a:aa:51:33
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
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
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
sio2 at port 0x3e8-0x3ef irq 12 drq 0 on isa0
sio2: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pca0 at port 0x40 on isa0
sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x300-0x301,0x388-0x38b irq
9 drq 0,5 on isa0
pcm0: <SB DSP 4.16> on sbc0
unknown: <Game> can't assign resources
IP packet filtering initialized, divert disabled, rule-based forwarding
disabled, default to deny, logging limited to 100 packets/entry by default
ad0: 3079MB <QUANTUM FIREBALL ST3.2A> [6256/16/63] at ata0-master using
UDMA33
acd0: CDROM <MATSHITA CR-585> at ata0-slave using PIO3
Waiting 2 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s2a
da0 at ahc0 bus 0 target 0 lun 0
da0: <DEC RZ2CD-KS (C) DEC 0306> Fixed Direct Access SCSI-2 device 
da0: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled
da0: 4091MB (8380080 512 byte sectors: 255H 63S/T 521C)
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <YAMAHA CRW8424S 1.0d> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 15)
cd0: cd present [284675 x 2048 byte records]
pcm0: record overrun, dumping 89204 bytes
pcm0: record [...]

kernel config: (snipped comments (124 lines!) for sanity reasons)

machine         "i386"          # This is a 386 OS
cpu             "I586_CPU"      # Pentium
ident           HALL            # This is HALL!
maxusers        32
options         "CPU_FASTER_5X86_FPU"   # enables faster FPU exception
handler.



options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP
THIS!]
options         UCONSOLE                #Allow users to grab the console
options         SYSVSHM                 #SysV   shared memory
options         SYSVSEM                 #       semaphores
options         SYSVMSG                 #       message queue
options         USER_LDT                #allow user-level control of i386
ldt

options         KTRACE                  #kernel tracing
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor



options         NTIMECOUNTER=20



options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep
this!]
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         CD9660_ROOT             #CD-ROM usable as
root. "CD9660" req'ed
options         PROCFS                  #Process filesystem

options         QUOTA                   #enable disk quotas
options         NFS                     #Network File System




options         "P1003_1B"
options         "_KPOSIX_PRIORITY_SCHEDULING"
options         _KPOSIX_VERSION=199309L


device          isa0
device          pci0

device          fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0

device          ata0    at isa? port IO_WD1 irq 14
device          ata1    at isa? port IO_WD2 irq 15
device          ata
device          atadisk         # ATA disk drive
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives

device          npx0    at isa? port "IO_NPX" irq 13


device          scbus
device          cd
device          pass
device          sa
device          da
device          ch

device          ahc
options         AHC_ALLOW_MEMIO

device pt0 at scbus?


device          sc0     at isa? 

device          atkbdc0 at isa? port IO_KBD 
device          atkbd0  at atkbdc? irq 1

device          vga0    at isa?



device          sio0    at isa? port IO_COM1 flags 0x10 irq 4 
device          sio1    at isa? port IO_COM2 irq 3
device          sio2    at isa? port IO_COM3 irq 12


device          ppc0    at isa? irq 7
device          ppbus
device          lpt
device          plip
device          ppi




options         INET                    #InterNETworking

pseudo-device   loop
pseudo-device   tun     1
pseudo-device   ether           # Ethernet support
pseudo-device   ppp     1               #Point-to-point protocol
options PPP_BSDCOMP                     #PPP BSD-compress support
options PPP_DEFLATE                     #PPP zlib/deflate/gzip support
options PPP_FILTER                      #enable bpf filtering (needs
bpfilter)
pseudo-device   bpf     4
pseudo-device   vn      4

options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
                                        # dropped packets
options         IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity


device          ep


device          pcm

pseudo-device   splash          # splash screen/screen saver
pseudo-device   gzip            # Exec gzipped a.out's
pseudo-device   pty     16      # This is a lot for a non-shell server..



device  joy0    at isa? port IO_GAME            # Joystick
device  pca0    at isa? port IO_TIMER1          # Not controlled by `snd'
pseudo-device   speaker         #Play IBM BASIC-style noises out your
speaker




Si l'image donne l'illusion de savoir
C'est que l'adage pretend que pour croire,
L'important ne serait que de voir

Lofofora



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0010242256590.26679-100000>