Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 15:47:09 +0200
From:      =?iso-8859-1?Q?Juha_Erkkil=E4?= <erkkila@mirri.cc.jyu.fi>
To:        freebsd-questions@FreeBSD.org
Subject:   problem with pcm driver with AudioPCI ES1373-B
Message-ID:  <20021219154709.A6088@mirri.cc.jyu.fi>

next in thread | raw e-mail | index | archive | help
hello there,

just installed FreeBSD 4.7, and i appear to have a problem with my
sound card.  playing CDs through it with cdcontrol works fine, and
i can use a mixer progran (`mixer'), but if i try to use /dev/dsp
in any way, i get this:

aot% play one_hand_clapping.wav
pcm0:play:0: play interrupt timeout, channel dead

ogg123, madplay and mpg123 similarly just get stuck with no sound,
looking like this:

aot% madplay superhero.mp3
MPEG Audio Decoder 0.14.2 (beta) - Copyright (C) 2000-2001 Robert Leslie
     Title: SUPERHERO
    Artist: the ALLSORTS
     Album: the ALLSORTS  -  MP3 . EP
     Track: 3
     Genre: Alternative
            Alternative General
   Encoder: mp3.com
pcm0:play:0: play interrupt timeout, channel dead
output: write: Invalid argument
aot%

i haven't compiled my own kernel, but use the GENERIC one.
here's some info on my configuration:

aot% dmesg | grep pcm
Preloaded elf module "snd_pcm.ko" at 0xc052e190.
pcm0: <AudioPCI ES1373-B> port 0xb000-0xb03f irq 10 at device 9.0 on pci0
pcm0:play:0: play interrupt timeout, channel dead
pcm0:play:0: play interrupt timeout, channel dead

aot% cat /boot/loader.conf
snd_es137x_load="YES"
# -- sysinstall generated deltas -- #
userconfig_script_load="YES"

aot% kldstat
Id Refs Address    Size     Name
 1    5 0xc0100000 40ddc4   kernel
 2    1 0xc050e000 5710     snd_es137x.ko
 3    1 0xc0514000 1887c    snd_pcm.ko
 4    1 0xc10c0000 3000     daemon_saver.ko
 5    1 0xc10c3000 14000    linux.ko

aot% sysctl -a | grep snd
hw.snd.targetirqrate: 32
hw.snd.report_soft_formats: 1
hw.snd.verbose: 1
hw.snd.maxautovchans: 0
hw.snd.pcm0.buffersize: 4096
hw.snd.pcm0.vchans: 0

aot% ls -l /dev/audio* /dev/dsp* /dev/midi* /dev/mixer* /dev/music* \
> /dev/sequencer* /dev/pss*
lrwxrwxrwx  1 root  wheel         6 Dec 18 14:37 /dev/audio -> audio0
lrwxrwxrwx  1 root  wheel         8 Dec 18 14:37 /dev/audio0 -> audio0.0
crw-rw-rw-  1 root  wheel   30,   4 Dec 18 14:37 /dev/audio0.0
crw-rw-rw-  1 root  wheel   30, 0x00010004 Dec 18 14:37 /dev/audio0.1
crw-rw-rw-  1 root  wheel   30, 0x00020004 Dec 18 14:37 /dev/audio0.2
crw-rw-rw-  1 root  wheel   30, 0x00030004 Dec 18 14:37 /dev/audio0.3
lrwxrwxrwx  1 root  wheel         4 Dec 18 14:37 /dev/dsp -> dsp0
lrwxrwxrwx  1 root  wheel         6 Dec 18 14:37 /dev/dsp0 -> dsp0.0
crw-rw-rw-  1 root  wheel   30,   3 Dec 19 12:46 /dev/dsp0.0
crw-rw-rw-  1 root  wheel   30, 0x00010003 Dec 18 14:37 /dev/dsp0.1
crw-rw-rw-  1 root  wheel   30, 0x00020003 Dec 18 14:37 /dev/dsp0.2
crw-rw-rw-  1 root  wheel   30, 0x00030003 Dec 18 14:37 /dev/dsp0.3
lrwxrwxrwx  1 root  wheel         5 Dec 18 14:37 /dev/dspW -> dspW0
lrwxrwxrwx  1 root  wheel         7 Dec 18 14:37 /dev/dspW0 -> dspW0.0
crw-rw-rw-  1 root  wheel   30,   5 Dec 18 14:37 /dev/dspW0.0
crw-rw-rw-  1 root  wheel   30, 0x00010005 Dec 18 14:37 /dev/dspW0.1
crw-rw-rw-  1 root  wheel   30, 0x00020005 Dec 18 14:37 /dev/dspW0.2
crw-rw-rw-  1 root  wheel   30, 0x00030005 Dec 18 14:37 /dev/dspW0.3
crw-rw-rw-  1 root  wheel   30,   2 Dec 18 14:37 /dev/midi0
lrwxrwxrwx  1 root  wheel         6 Dec 18 14:37 /dev/mixer -> mixer0
crw-rw-rw-  1 root  wheel   30,   0 Dec 18 14:37 /dev/mixer0
lrwxrwxrwx  1 root  wheel         6 Dec 18 14:37 /dev/music -> music0
crw-rw-rw-  1 root  wheel   30,   8 Dec 18 14:37 /dev/music0
lrwxrwxrwx  1 root  wheel         4 Dec 18 14:37 /dev/pss -> pss0
crw-rw-rw-  1 root  wheel   30,   9 Dec 18 14:37 /dev/pss0
lrwxrwxrwx  1 root  wheel        10 Dec 18 14:37 /dev/sequencer -> sequencer0
crw-rw-rw-  1 root  wheel   30,   1 Dec 18 14:37 /dev/sequencer0
aot%

this soundcard works okay with linux 2.2.20, so this shouldn't be
a hardware problem.  i didn't have problems with FreeBSD 4.3
either.  here's the whole dmesg output in case it might be
`interesting':

aot% dmesg
Copyright (c) 1992-2002 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.7-RELEASE #0: Wed Oct  9 15:08:34 GMT 2002
    root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (434.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134205440 (131060K bytes)
config> di sn0
config> di lnc0
config> di ie0
config> di fe0
config> di ed0
config> di cs0
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 125296640 (122360K bytes)
Preloaded elf kernel "kernel" at 0xc052e000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc052e09c.
Preloaded elf module "snd_es137x.ko" at 0xc052e0ec.
Preloaded elf module "snd_pcm.ko" at 0xc052e190.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00f0b60
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GB graphics accelerator> at 0.0 irq 11
isab0: <VIA 82C596B PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C596 ATA33 controller> port 0xb800-0xb80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f at device 4.2 on pci0
pci_cfgintr_virgin: using routable interrupt 3
pci_cfgintr: 0:4 INTD routed to irq 3
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <unknown card> (vendor=0x1106, dev=0x3050) at 4.3
pcm0: <AudioPCI ES1373-B> port 0xb000-0xb03f irq 10 at device 9.0 on pci0
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
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
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: parallel port not found.
ad0: 9770MB <Maxtor 91021U2> [19852/16/63] at ata0-master UDMA33
acd0: CD-RW <Hewlett-Packard CD-Writer Plus 8200> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
cd9660: RockRidge Extension
pcm0:play:0: play interrupt timeout, channel dead
pcm0:play:0: play interrupt timeout, channel dead

any pointers on how this could be resolved somehow?  thanks for
any help

Juha

-- 
People must not do things for fun.  We are not here for fun.  There is
no reference to fun in any Act of Parliament.
                                         -- A P Herbert, Uncommon Law

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219154709.A6088>