博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

Unix爱好者家园

卓越源代码  
   sdccf.cublog.cn
关于作者  
姓名:sdccf
职业:chinapost
年龄:36
位置:sd
个性介绍:

我的分类  




SCO UnixWare 7.1.4下配置声卡
作者:sco  出处:uw714doc.sco.com   

Configuring a sound card

透过 Google AdSense 使您的网站产生收益

If you want to install a sound card after installing UnixWare 7 and the LKP, you need to do the following to enable Linux application to use it. Sound card configuration is performed entirely on the Unix side; only the configuration of Linux applications to use the card is done from the LKP side.

  1. Install the sound card in your system using scoadmin audio from a UNIX shell or desktop.

  2. Download the Open Sound System (OSS) from http://www.opensound.com. (They provide a free evaluation copy, but charge for a permanent license.)

    Select the UnixWare 7 version of the OSS and follow their installation instructions. Note the device node under /dev used by the audio card.

  3. Verify that the sound card is working on UnixWare 7 in UNIX mode using OSS.

  4. Determine the major node of the UnixWare 7 audio device node:
       ls -l /dev/audio-device
    

    Do this from a Unix shell: you need the major number of the UnixWare 7 device node, not the Linux device node.

    In the output of ls, the major and minor numbers are listed in the column before the date, separated by a comma; as in the following example, where 29 is the major number:

       crw-rw-rw-    1 bin      bin       29,  0 Apr  7  1998 audio
    

  5. Change directory to /linux/lxinst/dev.
       cd /linux/lxinst/dev
    

  6. Copy the following script into a file name mkaudio.sh in the current directory:
       #!/bin/sh
       

    umask 111 rm audio rm audio0 rm audio1 rm audio2 rm audio3 rm audio4 rm dmfm0 rm dsp rm dsp0 rm dsp1 rm dsp2 rm dsp4 rm dspW0 rm dspW1 rm midi00 rm midi01 rm midi02 rm midi03 rm midi04 rm mixer0 rm mixer1 rm mixer2 rm mixer3 rm mixer4 rm music rm sequencer rm sndstat mknod audio c $1 4 mknod audio0 c $1 4 mknod audio1 c $1 20 mknod audio2 c $1 36 mknod audio3 c $1 52 mknod audio4 c $1 68 mknod dmfm0 c $1 7 mknod dsp c $1 3 mknod dsp0 c $1 3 mknod dsp1 c $1 19 mknod dsp2 c $1 35 mknod dsp4 c $1 67 mknod dspW0 c $1 5 mknod dspW1 c $1 21 mknod midi00 c $1 2 mknod midi01 c $1 18 mknod midi02 c $1 34 mknod midi03 c $1 50 mknod midi04 c $1 66 mknod mixer0 c $1 0 mknod mixer1 c $1 16 mknod mixer2 c $1 32 mknod mixer3 c $1 48 mknod mixer4 c $1 64 mknod music c $1 8 mknod sequencer c $1 1 mknod sndstat c $1 6

  7. Run the script as follows, using the major number of the UnixWare 7 audio device obtained previously:
       sh ./mkaudio.sh major#
    

  8. You should now be able to configure a Linux application under LKP to use the audio card you just installed.
 

 发表于: 2007-04-29,修改于: 2007-04-29 08:15 已浏览944次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:6.2387

京ICP证041476号