From owner-freebsd-bugs Thu Mar 30 10:20: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9DC0F37BAA9 for ; Thu, 30 Mar 2000 10:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA74811; Thu, 30 Mar 2000 10:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from isabase.philol.msu.ru (isabase.philol.msu.ru [195.208.217.73]) by hub.freebsd.org (Postfix) with ESMTP id D358E37B916 for ; Thu, 30 Mar 2000 10:17:00 -0800 (PST) (envelope-from grg@isabase.philol.msu.ru) Received: (from grg@localhost) by isabase.philol.msu.ru (8.9.3/8.9.2) id WAA00800; Thu, 30 Mar 2000 22:16:54 +0400 (MSD) (envelope-from grg) Message-Id: <200003301816.WAA00800@isabase.philol.msu.ru> Date: Thu, 30 Mar 2000 22:16:54 +0400 (MSD) From: grg@philol.msu.ru Reply-To: grg@philol.msu.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/17695: Vibra16X sound card doesn't record audio using pcm driver in FreeBSD 4.0-STABLE Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17695 >Category: kern >Synopsis: Vibra16X sound card doesn't record audio using pcm driver in FreeBSD 4.0-STABLE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 30 10:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Grigoriy Strokin >Release: FreeBSD 4.0-STABLE i386 >Organization: Moscow University >Environment: FreeBSD isabase.philol.msu.ru 4.0-STABLE FreeBSD 4.0-STABLE #5: Thu Mar 30 21:57:26 MSD 2000 grg@isabase.philol.msu.ru:/usr/src/sys/compile/ISABASE i386 The sound card is ISA, behaves as a PnP card and is detected as Creative ViBRA16X. kernel config I have the following lines in my config: # (also tried with the this option commented out) options PNPBIOS # (also tried as "device pcm0 at isa? irq 5 drq 1 flags 0x15", to # try forcing the card be detected as non-PnP, with the only # effect of appearing "pcm1" instead of "pcm0" in dmesg) device pcm # (also tried with this device commented out # and also "device sbc0 at isa? port 0x220 irq 5 drq 1 # flags 0x15", # effect of appearing "sbc1" instead of "sbc0" in dmesg) device sbc BIOS setup ----------- FreeBSD isabase.philol.msu.ru 4.0-STABLE FreeBSD 4.0-STABLE #5: Thu Mar 30 21:57:26 MSD 2000 grg@isabase.philol.msu.ru:/usr/src/sys/compile/ISABASE i386 The sound card is ISA, behaves as a PnP card and is detected as Creative ViBRA16X. kernel config ------------- I have the following lines in my config: # (also tried with the this option commented out) options PNPBIOS # (also tried as "device pcm0 at isa? irq 5 drq 1 flags 0x15", to # try forcing the card be detected as non-PnP, with the only # effect of appearing "pcm1" instead of "pcm0" in dmesg) device pcm # (also tried with this device commented out # and also "device sbc0 at isa? port 0x220 irq 5 drq 1 # flags 0x15", # effect of appearing "sbc1" instead of "sbc0" in dmesg) device sbc BIOS setup ----------- All configurations have been tried with both "PnP OS installed: Yes" and "PnP OS installed: No", without any effect the behaviour of the card. dmesg ----- The messages in dmesg related to audio and PnP are as follows: 1) With "options PNPBIOS": unknown: can't assign resources unknown0: at port 0-0xf,0x81-0x83,0x87,0x89-0x8b,0x8f-0x91,0xc0-0xdf drq 4 on isa0 unknown1: at port 0x40-0x43 irq 0 on isa0 unknown2: at port 0x70-0x71 irq 8 on isa0 unknown: can't assign resources unknown: can't assign resources unknown3: at port 0xf0-0xff irq 13 on isa0 unknown4: at iomem 0-0x9ffff,0xfffe0000-0xffffffff,0x100000-0x3ffffff on isa0 unknown5: at iomem 0xf0000-0xf3fff,0xf4000-0xf7fff,0xf8000-0xfbfff,0xfc000-0xfffff on isa0 unknown6: at port 0x294-0x297,0x4d0-0x4d1,0xcf8-0xcff,0x480-0x48f,0x4000-0x403f,0x5000-0x501f on +isa0 unknown7: at port 0x208-0x20f on isa0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,3 on isa0 sbc0: setting card to irq 5, drq 1, 3 pcm0: on sbc0 unknown8: at port 0x201 on isa0 2) Without "options PNPBIOS": sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,3 on isa0 sbc0: setting card to irq 5, drq 1, 3 pcm0: on sbc0 unknown0: at port 0x201 on isa0 >Description: Playback of .au, .wav, .mp3 works as expected. However, when I attempt to record an .au or .wav with the 'rec' program from sox, e. g.: grg@isabase.1:~$ rec a.au Send break (control-c) to end recording I cant interrupt the recording with pressing control-c one or several times: the "^C" is just printed on the terminal, and the program won't stop. If I press "^\" (quit), "^\" is printed, and there is no any effect for more than 3 seconds, and only after that I see "Quit - core dumped". The resulting file, a.au has zero length. It looks like device timeout for me. However, there are no any messages on the console except: /kernel: pid 7403 (sox), uid 1001: exited on signal 3 (core dumped) Also, I try to record using the 'lrecord' command from ESPS/waves+, a commercial software equipment compiled for Linux (lrecord states for Linux-record). lrecord worked for me on FreeBSD 3.4. Now I get the following: grg@isabase.1:~$ lrecord a.sd [then I press ^C] Problems writing samples at sample number 0 No samples collected! Both 'rec' and 'lrecord' worked for me under FreeBSD 3.4-STABLE. >How-To-Repeat: Install sox-12.16 port and try to record audio by typing $ rec a.au The program won't stop after pressing ^C nor will it write anything to a.au >Fix: I don't know. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message