Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103739969
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类:

2007-04-29 08:15:42

作者:sco  出处:uw714doc.sco.com   

Configuring a sound card

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 (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.
 
阅读(3475) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~