LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2479|回复: 25

c-media8738声卡问题(redhat8)

[复制链接]
发表于 2002-10-8 11:15:50 | 显示全部楼层 |阅读模式
安装好RedHat8后,声卡检测出是c-media(正确),但测试声音,却发不出声音, 于是我到驱动之家下载了最新的c-media声卡驱动,先看readme,没想到照着readme说的,打入这个命令声卡自动有声音了"modprobe cmpci",可是每次重起动后,又到回原样。
小弟初接触linux,这个 readme文件,看了又看,还是看不懂,请大家指点一下我。谢谢




readme文件:
=========================
Audio driver for CM8338/CM8738 chips by Chen-Li Tien





HARDWARE SUPPORTED

================================================================================

C-Media CMI8338

C-Media CMI8738

On-board C-Media chips





STEPS TO BUILD DRIVER

================================================================================



  1. Backup the Config.in and Makefile in the sound driver directory

     (/usr/src/linux/driver/sound).

     The Configure.help provide help when you config driver in step

     4, please backup the original one (/usr/src/linux/Document) and

     copy this file.

     The cmpci is document for the driver in detail, please copy it

     to /usr/src/linux/Document/sound so you can refer it. Backup if

     there is already one.



  2. Extract the tar file by 'tar xvzf cmpci-xx.tar.gz' in the above

     directory.



  3. Change directory to /usr/src/linux



  4. Config cm8338 driver by 'make menuconfig', 'make config' or

     'make xconfig' command.



  5. Please select Sound Card (CONFIG_SOUND=m) support and CMPCI

     driver (CONFIG_SOUND_CMPCI=m) as modules. Resident mode not tested.

     For driver option, please refer 'DRIVER PARAMETER'



  6. Compile the kernel if necessary.



  7. Compile the modules by 'make modules'.



  8. Install the modules by 'make modules_install'





INSTALL DRIVER

================================================================================



  1. Before first time to run the driver, create module dependency by

     'depmod -a'



  2. To install the driver manually, enter 'modprobe cmpci'.



  3. Driver installation for various distributions:


整个readme只看懂了这句, 但怎样才能把 'modprobe cmpci'加到我的 /etc/rc.d/rc.modules中呢,我找过了,可是没rc.modules文件 :(
    a. Slackware 4.0

       Add the 'modprobe cmpci' command in your /etc/rc.d/rc.modules

       file.so you can start the driver automatically each time booting.




    b. Caldera OpenLinux 2.2

       Use LISA to load the cmpci module.



    c. RedHat 6.0 and S.u.S.E. 6.1

       Add following command in /etc/conf.modules:



       alias sound cmpci



        also visit http://www.cmedia.com.tw for installation instruction.



DRIVER PARAMETER


================================================================================



  Some functions for the cm8738 can be configured in Kernel Configuration

  or modules parameters. Set these parameters to 1 to enable.



  mpu_io:        I/O ports base for MPU-401, 0 if disabled.

  fm_io:        I/O ports base for OPL-3, 0 if disabled.

  spdif_inverse:Inverse the S/PDIF-in signal, this depends on your

                CD-ROM or DVD-ROM.

  spdif_loop:   Enable S/PDIF loop, this route S/PDIF-in to S/PDIF-out

                directly.

  speakers:     Number of speakers used.

  use_line_as_rear:Enable this if you want to use line-in as

                rear-out.

  use_line_as_bass:Enable this if you want to use line-in as

                bass-out.

  modem:        You will need to set this parameter if you want to use

                the HSP modem. You need install the pctel.o, the modem

                driver itself.

  joystick:        Enable joystick. You will need to install Linux joystick

                driver.


=========================
发表于 2002-10-8 11:27:31 | 显示全部楼层
整个readme只看懂了这句, 但怎样才能把 'modprobe cmpci'加到我的 /etc/rc.d/rc.modules中呢,我找过了,可是没rc.modules文件 :(


用这个来试一下。

在/etc/rc.d目录下的rc.local文件中加上一句,用鼠标右键点击,打开方式用kate 。加入下面的一句
modprobe cmpci

如果成功了,请兄弟回帖,目的是帮助有此问题的弟兄,如果不成功更要回帖。。。呵。。。
 楼主| 发表于 2002-10-8 12:07:40 | 显示全部楼层
最初由 北南南北 发布


用这个来试一下。

在/etc/rc.d目录下的rc.local文件中加上一句,用鼠标右键点击,打开方式用kate 。加入下面的一句
modprobe cmpci

如果成功了,请兄弟回帖,目的是帮助有此问题的弟兄,如果不成功更要回帖。。。呵。。。


成功解决!!!

请南北兄再帮我解决两个小问题。

http://linuxsir.cn/forum.php?mod=viewthread&tid=8717
发表于 2002-10-9 12:40:28 | 显示全部楼层
我的也是这个声卡,redhat 8。0默认出来了
发表于 2002-10-9 16:24:41 | 显示全部楼层
声卡在rh80下是可以认出来的,但是我是四声道的音箱,我知道可以编译内核试试看,可以用make menuconfig编译sound的,有一项是启用4 channel,默认的是2声道的,只是昨天小试了一下,没有成功,要么我再试试看吧,
发表于 2002-10-10 11:46:20 | 显示全部楼层

我是这样就搞定了

setup配置声卡,能听到 声音后重起.
 楼主| 发表于 2002-10-10 15:20:52 | 显示全部楼层
这个问题还有一个解决方法就是在安装redhat8的时候,不要选择desktop安装,选择自定义安装,把关于音频的都装上去,装好之后内置的硬声卡c-media8738就能使用,不用再做什么手脚。
发表于 2002-10-17 11:57:30 | 显示全部楼层
module.c:73: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux-2.4.18-14/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.18-14/include/linux/skbuff.h:1108: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/drivers'
make: *** [_mod_drivers] Error 2

when i type :make modules,it has error
what is the matter?anyone can help me? thanks a lot
发表于 2002-10-17 12:22:51 | 显示全部楼层
下载的驱动不对吧。
发表于 2002-10-30 21:38:57 | 显示全部楼层
我的声卡也是这种型号,我用是的slackware和winxp双系统,只有winxp能找到声卡。而linux却显示:no sound device.不知道是怎么会事。在winxp下听音乐挺好的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表