From owner-freebsd-questions Thu Dec 19 5:46:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AF1637B401 for ; Thu, 19 Dec 2002 05:46:53 -0800 (PST) Received: from mirri.cc.jyu.fi (mirri.cc.jyu.fi [130.234.6.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB10443ED4 for ; Thu, 19 Dec 2002 05:46:51 -0800 (PST) (envelope-from erkkila@mirri.cc.jyu.fi) Received: (from erkkila@localhost) by mirri.cc.jyu.fi (8.11.6/8.11.6) id gBJDlAL06134 for freebsd-questions@FreeBSD.org; Thu, 19 Dec 2002 15:47:10 +0200 Date: Thu, 19 Dec 2002 15:47:09 +0200 From: =?iso-8859-1?Q?Juha_Erkkil=E4?= To: freebsd-questions@FreeBSD.org Subject: problem with pcm driver with AudioPCI ES1373-B Message-ID: <20021219154709.A6088@mirri.cc.jyu.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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: 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: 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: 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: (vendor=0x1106, dev=0x3050) at 4.3 pcm0: port 0xb000-0xb03f irq 10 at device 9.0 on pci0 orm0: