From owner-freebsd-multimedia Sun Jul 13 18:44:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA19973 for multimedia-outgoing; Sun, 13 Jul 1997 18:44:25 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id SAA19964 for ; Sun, 13 Jul 1997 18:44:17 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 13 Jul 1997 21:42:28 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA29914; Sun, 13 Jul 97 21:42:27 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id VAA06405; Sun, 13 Jul 1997 21:40:21 -0400 Message-Id: <19970713214020.28548@ct.picker.com> Date: Sun, 13 Jul 1997 21:40:20 -0400 From: Randall Hopper To: Alan Batie Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: onboard sound problem References: <19970710220458.09697@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: ; from Alan Batie on Fri, Jul 11, 1997 at 10:08:29AM -0700 Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I've never used rat (maybe an MBONE expert will chime in with some help here), but the ktrace output here looks mighty fishy. First, it's opening /dev/audio (8KHz ULAW device). Then it tries to change the sample rate...Hmmmmmmm. Looks like it should have opened /dev/dsp if that's what it wanted to do. That fails of course. Then it looks like it goes off into LaLa land sending an ioctl and close to fd -1, following up that act by trying to reopen /dev/audio. Sorry, only one device at a time there. Appears rat might not be configured right and could use some fixes to handle incorrect configuration and error handling. ...that's just my best guess never having run rat before. BTW, your device files have the same major and minor as mine, so that looks OK. Hope this helps. Randall Alan Batie: |Now (and it was doing it before, but I wanted the audio to be working in |general before reporting it), rat repeatedly reports "audio busy" when I |start it up. It's 3.0.22, the pre-compiled binary from the Multimedia |Conferencing Applications Archive at http://ugwww.ucs.ed.ac.uk/mice/archive/ | | 301 rat CALL open(0x10130,0x4,0xffffffff) | 301 rat NAMI "/dev/audio" | 301 rat RET open 7 | 301 rat CALL ioctl(0x7,0x20005016 ,0) | 301 rat RET ioctl -1 errno 22 Invalid argument | 301 rat CALL ioctl(0x7,0xc004500a ,0xefbf976c) | 301 rat RET ioctl 0 | 301 rat CALL ioctl(0x7,0xc0045005 ,0xefbf9768) | 301 rat RET ioctl 0 | 301 rat CALL fstat(0x1,0xefbf93fc) | 301 rat RET fstat 0 | 301 rat CALL ioctl(0x1,TIOCGETA,0xefbf9438) | 301 rat RET ioctl 0 | 301 rat CALL write(0x1,0x19c000,0x2c) | 301 rat GIO fd 1 wrote 44 bytes | "Device doesn't support 16bit linear format! | " | 301 rat RET write 44/0x2c | 301 rat CALL ioctl(0xffffffff,0x20005016 ,0) | 301 rat RET ioctl -1 errno 9 Bad file descriptor | 301 rat CALL close(0xffffffff) | 301 rat RET close -1 errno 9 Bad file descriptor | 301 rat CALL open(0x10130,0x5,0x12a000) | 301 rat NAMI "/dev/audio" | 301 rat RET open -1 errno 16 Device busy | 301 rat CALL writev(0x2,0xefbf9730,0x4) | 301 rat GIO fd 2 wrote 24 bytes | "audio_open: Device busy | " | 301 rat RET writev 24/0x18 | 301 rat CALL close(0xffffffff) | 301 rat RET close -1 errno 9 Bad file descriptor | |lrwxrwxrwx 1 root wheel 6 Jul 10 13:44 /dev/audio@ -> audio0 |crw-rw-rw- 1 root wheel 30, 4 Jul 10 13:44 /dev/audio0 |lrwxrwxrwx 1 root wheel 4 Jul 10 13:44 /dev/dsp@ -> dsp0 |crw-rw-rw- 1 root wheel 30, 3 Jul 11 09:58 /dev/dsp0