Create /dev/audioctl and allow creation of multiple audio devices.
This commit is contained in:
parent
34085fae66
commit
912c4ee11f
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -
|
||||
# $NetBSD: MAKEDEV,v 1.20 1997/07/31 04:08:17 perry Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.21 1997/08/18 21:23:12 augustss Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -297,12 +297,20 @@ mouse)
|
||||
;;
|
||||
|
||||
audio*)
|
||||
rm -f audio sound mixer
|
||||
mknod sound c 24 0
|
||||
mknod audio c 24 128
|
||||
mknod mixer c 24 16
|
||||
chown root.wheel audio sound mixer
|
||||
chmod 666 audio sound mixer
|
||||
unit=${i#audio}
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=24
|
||||
audioctl=audioctl$unit
|
||||
if [ "$unit" = "" ]; then unit=0; fi
|
||||
rm -f $audio $sound $mixer $audioctl
|
||||
mknod $sound c $major $(($unit + 0))
|
||||
mknod $audio c $major $(($unit + 128))
|
||||
mknod $mixer c $major $(($unit + 16))
|
||||
mknod $audioctl c $major $(($unit + 192))
|
||||
chown root.wheel $audio $sound $mixer $audioctl
|
||||
chmod 666 $audio $sound $mixer $audioctl
|
||||
;;
|
||||
|
||||
lpt*|lpa*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.31 1997/07/31 04:08:19 perry Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.32 1997/08/18 21:23:14 augustss Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -434,11 +434,19 @@ ipl)
|
||||
|
||||
audio*)
|
||||
unit=${i#audio}
|
||||
rm -f audio$unit sound$unit mixer$unit
|
||||
mknod audio$unit c 41 $(($unit + 128))
|
||||
mknod sound$unit c 41 $unit
|
||||
mknod mixer$unit c 41 $(($unit + 16))
|
||||
chmod 644 audio$unit sound$unit mixer$unit
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=41
|
||||
audioctl=audioctl$unit
|
||||
if [ "$unit" = "" ]; then unit=0; fi
|
||||
rm -f $audio $sound $mixer $audioctl
|
||||
mknod $sound c $major $(($unit + 0))
|
||||
mknod $audio c $major $(($unit + 128))
|
||||
mknod $mixer c $major $(($unit + 16))
|
||||
mknod $audioctl c $major $(($unit + 192))
|
||||
chown root.wheel $audio $sound $mixer $audioctl
|
||||
chmod 666 $audio $sound $mixer $audioctl
|
||||
;;
|
||||
|
||||
local)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.14 1997/08/01 19:38:30 leo Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.15 1997/08/18 21:23:15 augustss Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -354,12 +354,20 @@ cpu*)
|
||||
;;
|
||||
|
||||
audio*)
|
||||
rm -f audio sound mixer
|
||||
mknod sound c 36 0
|
||||
mknod audio c 36 128
|
||||
mknod mixer c 36 16
|
||||
chown root.wheel audio sound mixer
|
||||
chmod 666 audio sound mixer
|
||||
unit=${i#audio}
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=36
|
||||
audioctl=audioctl$unit
|
||||
if [ "$unit" = "" ]; then unit=0; fi
|
||||
rm -f $audio $sound $mixer $audioctl
|
||||
mknod $sound c $major $(($unit + 0))
|
||||
mknod $audio c $major $(($unit + 128))
|
||||
mknod $mixer c $major $(($unit + 16))
|
||||
mknod $audioctl c $major $(($unit + 192))
|
||||
chown root.wheel $audio $sound $mixer $audioctl
|
||||
chmod 666 $audio $sound $mixer $audioctl
|
||||
;;
|
||||
|
||||
local)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.56 1997/08/04 03:50:26 perry Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.57 1997/08/18 21:23:17 augustss Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -363,12 +363,20 @@ lkm)
|
||||
;;
|
||||
|
||||
audio*)
|
||||
rm -f audio sound mixer
|
||||
mknod sound c 42 0
|
||||
mknod audio c 42 128
|
||||
mknod mixer c 42 16
|
||||
chown root.wheel audio sound mixer
|
||||
chmod 666 audio sound mixer
|
||||
unit=${i#audio}
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=42
|
||||
audioctl=audioctl$unit
|
||||
if [ "$unit" = "" ]; then unit=0; fi
|
||||
rm -f $audio $sound $mixer $audioctl
|
||||
mknod $sound c $major $(($unit + 0))
|
||||
mknod $audio c $major $(($unit + 128))
|
||||
mknod $mixer c $major $(($unit + 16))
|
||||
mknod $audioctl c $major $(($unit + 192))
|
||||
chown root.wheel $audio $sound $mixer $audioctl
|
||||
chmod 666 $audio $sound $mixer $audioctl
|
||||
;;
|
||||
|
||||
apm*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.29 1997/08/01 19:38:46 leo Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.30 1997/08/18 21:23:18 augustss Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -167,12 +167,20 @@ tcx*)
|
||||
;;
|
||||
|
||||
audio)
|
||||
rm -f audio sound mixer
|
||||
mknod audio c 69 0;
|
||||
mknod mixer c 69 16;
|
||||
mknod sound c 69 128;
|
||||
chmod 666 audio sound mixer
|
||||
chown root.wheel audio sound mixer
|
||||
unit=${i#audio}
|
||||
audio=audio$unit
|
||||
sound=sound$unit
|
||||
mixer=mixer$unit
|
||||
major=69
|
||||
audioctl=audioctl$unit
|
||||
if [ "$unit" = "" ]; then unit=0; fi
|
||||
rm -f $audio $sound $mixer $audioctl
|
||||
mknod $sound c $major $(($unit + 0))
|
||||
mknod $audio c $major $(($unit + 128))
|
||||
mknod $mixer c $major $(($unit + 16))
|
||||
mknod $audioctl c $major $(($unit + 192))
|
||||
chown root.wheel $audio $sound $mixer $audioctl
|
||||
chmod 666 $audio $sound $mixer $audioctl
|
||||
;;
|
||||
|
||||
bpf*)
|
||||
|
Loading…
Reference in New Issue
Block a user