Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2000 22:16:54 +0400 (MSD)
From:      grg@philol.msu.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/17695: Vibra16X sound card doesn't record audio using pcm driver in FreeBSD 4.0-STABLE
Message-ID:  <200003301816.WAA00800@isabase.philol.msu.ru>

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

>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":


  <Precise description of the problem (multiple lines)>
unknown: <PNP0000> can't assign resources
unknown0: <PNP0200> at port 0-0xf,0x81-0x83,0x87,0x89-0x8b,0x8f-0x91,0xc0-0xdf drq 4 on isa0
unknown1: <PNP0100> at port 0x40-0x43 irq 0 on isa0
unknown2: <PNP0b00> at port 0x70-0x71 irq 8 on isa0
unknown: <PNP0303> can't assign resources
unknown: <PNP0800> can't assign resources
unknown3: <PNP0c04> at port 0xf0-0xff irq 13 on isa0
unknown4: <PNP0c01> at iomem 0-0x9ffff,0xfffe0000-0xffffffff,0x100000-0x3ffffff on isa0
unknown5: <PNP0c02> at iomem 0xf0000-0xf3fff,0xf4000-0xf7fff,0xf8000-0xfbfff,0xfc000-0xfffff on isa0
unknown6: <PNP0a03> at port 0x294-0x297,0x4d0-0x4d1,0xcf8-0xcff,0x480-0x48f,0x4000-0x403f,0x5000-0x501f on
+isa0
unknown7: <PNP0c02> at port 0x208-0x20f on isa0
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0401> can't assign resources
unknown: <PNP0501> can't assign resources
sbc0: <Creative ViBRA16X> 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: <SB DSP 4.16 (ViBRA16X)> on sbc0
unknown8: <Game> at port 0x201 on isa0

2) Without "options PNPBIOS":

sbc0: <Creative ViBRA16X> 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: <SB DSP 4.16 (ViBRA16X)> on sbc0
unknown0: <Game> at port 0x201 on isa0



>Description:
  <Code/input/activities to reproduce the problem (multiple lines)>

Playback of .au, .wav, .mp3 works as expected.

However, when I attempt to record an .au or .wav
  <How to correct or work around the problem, if known (multiple lines)>
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




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