Subject: Re: /dev/audioctl emulation?
To: None <port-sparc@NetBSD.ORG>
From: Neil J. McRae <neil@domino.org>
List: port-sparc
Date: 03/10/1996 17:05:57
On Sat, 09 Mar 1996 04:34:48 -0800 
 Greg Earle <earle@isolar.tujunga.ca.us> wrote:

> Ooh!  Close, Charles.  Actually, it turns out to be an I_SETSIG.  It seems
> to be required for audio code which wants to be notified of changes made
> to the audio parameters via the control device (/dev/audioctl).  (Because
> the SunOS audio device is actually a STREAMS-based device.)
> 
> It turns out that this STREAMS ioctl() is handled in the 1.1/-current version
> of /usr/src/sys/compat/sunos_ioctl.c - albeit with a tiny buglet: the code sa
ys
> 
>         case _IO('S', 9):       /* I_SIGSET */
> 
> but it's actually "I_SETSIG", not "I_SIGSET":
> 
> isolar:1:244 % egrep SETSIG /usr/include/stropts.h
> #define I_SETSIG        _IO(S,011)
> 
> So, once again I slink off and hang my head in shame for still running ancien
t
> software (1.0) ...  :-)
> 
Wouldn't make any difference:

  6321 raplayer RET   write 2044/0x7fc
  6321 raplayer CALL  open(0x28768,0,0xbc)
  6321 raplayer NAMI  "/emul/sunos/dev/audioctl"
  6321 raplayer NAMI  "/dev/audioctl"
  6321 raplayer RET   open -1 errno 19 Operation not supported by device
  6321 raplayer CALL  open(0x28c58,0x1,0)
  6321 raplayer NAMI  "/emul/sunos/dev/audio"
  6321 raplayer NAMI  "/dev/audio"
  6321 raplayer RET   open 9
  6321 raplayer CALL  ioctl(0xffffffff,0x40844101 ,0xf7fff090)
  6321 raplayer RET   ioctl -1 errno 9 Bad file descriptor
  6321 raplayer CALL  close(0x9)
  6321 raplayer RET   close 0
  6321 raplayer CALL  write(0x3,0xbcd00,0x520)
  6321 raplayer GIO   fd 3 wrote 1312 bytes


I made a audioctl but it doesn't work...

Neil.



--  
Neil J. McRae                                 DNS: Domino Network Services
neil@domino.org         NetBSD/sparc: 100% SpF (Solaris protection Factor)   
  Free the daemon in your computer!