[nas] Fatal server error...

Erik Inge Bolsø knan at mo.himolde.no
Sat Feb 1 07:55:24 MST 2003


On Thu, 30 Jan 2003, Vincas Ciziunas wrote:
>Here's the strace...it's not long.  If it's not full duplex, is there any
>way it could work.  I only really want to use the device as an output.

Try this patch: (against NAS 1.6)

--- server/dda/voxware/auvoxware.c      2002-07-25 02:42:28.000000000 +0200
+++ server/dda/voxware/auvoxware.c.new  2003-02-01 15:39:15.000000000 +0100
@@ -1545,6 +1545,7 @@
          }
         }

+#if 0
         if (ioctl(mixerfd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) {
          UNIDENTMSG;
          return AuFalse;
@@ -1554,6 +1555,7 @@
          UNIDENTMSG;
          return AuFalse;
         }
+#endif

         /* get all sound levels */
         for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) {


... as that seems to be what's failing. Seems that SOUND_MIXER_READ_RECSRC
isn't supported in the dmaaudio driver.

The two ioctls seem unnecessary as they stand, anyway, so this shouldn't
cause any problems.

>BEGIN NASD STRACE---------------------
>
>open("/dev/dsp", O_RDWR|O_SYNC)         = 9
>open("/dev/dsp", O_RDONLY)              = -1 EINVAL (Invalid argument)
>ioctl(9, SNDCTL_DSP_SETFMT, 0x292e0)    = 0
>ioctl(9, SNDCTL_DSP_STEREO, 0x292e4)    = 0
>ioctl(9, SNDCTL_DSP_SPEED, 0x292ec)     = 0
>ioctl(9, SNDCTL_DSP_SPEED, 0x292f0)     = 0
>ioctl(9, SNDCTL_DSP_SETFRAGMENT, 0xbffffbac) = 0
>open("/dev/mixer", O_RDONLY)            = 10
>ioctl(10, SOUND_MIXER_READ_DEVMASK, 0x29224) = 0
>ioctl(10, SOUND_MIXER_READ_RECMASK, 0x2922c) = 0
>ioctl(10, SOUND_MIXER_READ_RECSRC, 0x29228) = -1 EINVAL (Invalid argument)
>write(2, "\nFatal server error:\n", 21
>Fatal server error:
>) = 21
>write(2, "could not create audio connectio"..., 44could not create audio connection block info) = 44
>write(2, "\n", 1
>)                       = 1
>_exit(1)                                = ?
>
>END NASD STRACE----------------------------
>
>
>On Thu, 30 Jan 2003, Nick Ing-Simmons wrote:
>
>> Jon Trulson <jon at radscan.com> writes:
>> >On Wed, 29 Jan 2003, Vincas Ciziunas wrote:
>> >
>> >> Date: Wed, 29 Jan 2003 22:30:38 -0500 (EST)
>> >> From: Vincas Ciziunas <fizban-nas at tamos.net>
>> >> To: nas at radscan.com
>> >> Subject: [nas] Fatal server error...
>> >>
>> >> I'm using a dma sound device (I've tried on both my powerbook and on a
>> >> zaurus) and with both, nas dies with the following error:
>> >>
>> >> Fatal server error:
>> >> could not create audio connection block info
>> >>
>> >
>> >	Couple of causes for this... It typically means there was some
>> >problem in opening the sound device... Either it is already in use by a
>> >different program, doesn't exist (/dev/dsp) or won't do full duplex...
>> >
>> >	Running strace on it should point out the problem.  Look for the
>> >open on /dev/audio* or /dev/dsp*
>>
>> Any chance that the errno from the failing open could get propagated
>> or used in the error message?

--
Erik I. Bolsø | email: <knan at mo.himolde.no>
The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.



More information about the Nas mailing list