summaryrefslogtreecommitdiff
path: root/setup/SCO_SV/oss
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-05-03 21:08:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-05-03 21:08:42 +0400
commit1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch)
tree4495d23e7b54ab5700e3839081e797c1eafe0db9 /setup/SCO_SV/oss
downloadoss4-upstream.tar.gz
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'setup/SCO_SV/oss')
-rwxr-xr-xsetup/SCO_SV/oss/build/install.sh137
-rw-r--r--setup/SCO_SV/oss/modules/osscore/Drvmap2
-rw-r--r--setup/SCO_SV/oss/modules/osscore/Master4
-rw-r--r--setup/SCO_SV/oss/modules/osscore/Node2
-rw-r--r--setup/SCO_SV/oss/modules/osscore/System4
5 files changed, 149 insertions, 0 deletions
diff --git a/setup/SCO_SV/oss/build/install.sh b/setup/SCO_SV/oss/build/install.sh
new file mode 100755
index 0000000..3239575
--- /dev/null
+++ b/setup/SCO_SV/oss/build/install.sh
@@ -0,0 +1,137 @@
+#!/bin/sh
+
+. /etc/oss.conf
+
+if test "$CONFDIR " = " "
+then
+ CONFDIR=/etc/conf
+fi
+
+# Remove the non-oss ICH driver before doing anything else
+/etc/conf/bin/idinstall -R $CONFDIR -d ich > /dev/null 2>&1
+
+# Unload previous modules
+for n in `ls $OSSLIBDIR/modules|egrep -v "osscore|oss_imux"`
+do
+ modadmin -U $n > /dev/null 2>&1
+done
+
+for MOD in osscore oss_imux
+do
+ modadmin -U $MOD > /dev/null 2>&1
+done
+
+# (re)install osscore and oss_imux
+
+rm -f $OSSLIBDIR/modules/*/install.log
+
+for MOD in osscore oss_imux
+do
+ cd $OSSLIBDIR/modules/$MOD
+
+ if test ! -f Space.c
+ then
+ cp $OSSLIBDIR/space.inst/$MOD Space.c
+ fi
+
+ rm -f install.log
+
+ if /etc/conf/bin/idinstall -k -P oss -R $CONFDIR -M $MOD >> install.log 2>&1
+ then
+ if /etc/conf/bin/idbuild -M $MOD >> install.log 2>&1
+ then
+ echo OSS module $MOD installed OK
+ echo OSS module $MOD installed OK >> install.log
+ else
+ cat install.log
+ echo Building $MOD module failed
+ echo Building $MOD module failed >> install.log
+ exit 1
+ fi
+ else
+ cat install.log
+ echo Failed to idinstall $MOD
+ echo Failed to idinstall $MOD >> install.log
+ exit 1
+ fi
+
+ (cd $OSSLIBDIR/conf && rm -f $MOD.conf && ln -sf ../modules/$MOD/Space.c $MOD.conf)
+
+ installf oss $CONFDIR/sdevice.d/$MOD
+done
+
+
+# Only install the drivers we have a resmgr match for
+OSSTMPFILE=/tmp/ossdetect.$$
+CDIR=`pwd`
+cd $OSSLIBDIR/modules
+/sbin/resmgr -p BRDID > $OSSTMPFILE
+for file in */Drvmap
+do
+ DRVR=`dirname $file`
+ grep "^|" $file | cut -d \| -f3 | while read BRDID
+ do
+ if [ -n "$BRDID" ]; then
+ while read RMBRDID
+ do
+ if [ "$BRDID" = "$RMBRDID" ]; then
+ echo "$DRVR"
+ fi
+ done < $OSSTMPFILE
+ fi
+ done
+done | sort -u | while read DRVR
+do
+ cd $OSSLIBDIR/modules/$DRVR
+
+ if test ! -f Space.c
+ then
+ cp $OSSLIBDIR/../space.inst/$n Space.c
+ fi
+
+ rm -f install.log
+
+# /etc/conf/bin/idinstall -R $CONFDIR -d $DRVR > /dev/null 2>&1
+
+ if /etc/conf/bin/idinstall -k -P oss -R $CONFDIR -M $DRVR >> install.log 2>&1
+ then
+ if /etc/conf/bin/idbuild -M $DRVR >> install.log 2>&1
+ then
+ echo OSS module $DRVR installed OK
+ echo OSS module $DRVR installed OK >> install.log
+ else
+ cat install.log
+ echo Building $DRVR module failed
+ echo Building $DRVR module failed >> install.log
+ exit 1
+ fi
+ else
+ cat install.log
+ echo Failed to idinstall $DRVR
+ echo Failed to idinstall $DRVR >> install.log
+ exit 1
+ fi
+ installf oss $CONFDIR/sdevice.d/$DRVR
+
+ (cd $OSSLIBDIR/conf && rm -f $DRVR.conf && \
+ ln -sf ../modules/$DRVR/Space.c $DRVR.conf)
+done
+
+rm -f $OSSTMPFILE
+
+cd $CDIR
+
+if test -f /bin/dcu
+then
+ /bin/dcu -S
+else
+ /sbin/dcu -S
+fi
+
+if test ! -f $OSSLIBDIR/etc/installed_drivers
+then
+echo "----------------------------------------------"
+ /usr/sbin/ossdetect -v
+echo "----------------------------------------------"
+fi
+echo OSS modules installed OK
diff --git a/setup/SCO_SV/oss/modules/osscore/Drvmap b/setup/SCO_SV/oss/modules/osscore/Drvmap
new file mode 100644
index 0000000..498646c
--- /dev/null
+++ b/setup/SCO_SV/oss/modules/osscore/Drvmap
@@ -0,0 +1,2 @@
+osscore|Y|N|Sound Boards|Open Sound System
+|||OSS framework module
diff --git a/setup/SCO_SV/oss/modules/osscore/Master b/setup/SCO_SV/oss/modules/osscore/Master
new file mode 100644
index 0000000..51a7805
--- /dev/null
+++ b/setup/SCO_SV/oss/modules/osscore/Master
@@ -0,0 +1,4 @@
+$version 2
+$contact 4Front Technologies (http://www.opensound.com)
+$interface ddi 8mp
+osscore - R
diff --git a/setup/SCO_SV/oss/modules/osscore/Node b/setup/SCO_SV/oss/modules/osscore/Node
new file mode 100644
index 0000000..b450408
--- /dev/null
+++ b/setup/SCO_SV/oss/modules/osscore/Node
@@ -0,0 +1,2 @@
+$maxchan 0
+osscore osscore%i c 0 0 0 0600
diff --git a/setup/SCO_SV/oss/modules/osscore/System b/setup/SCO_SV/oss/modules/osscore/System
new file mode 100644
index 0000000..2bdb086
--- /dev/null
+++ b/setup/SCO_SV/oss/modules/osscore/System
@@ -0,0 +1,4 @@
+* Don't edit this file manually! This information will be ignored.
+*
+$version 2
+osscore Y 0 5 4 0 0 0 0 0 -1