我用的是fc2系统(kernel2.6.7),alsa驱动能正确识别我的cm8738声卡,应用程序也能正确打开设备,可声卡就是不出声。请问我该怎么办.. //oss驱动能使声卡正常工作,但2.6版本的核心正在试图减少oss的影响力。
by drewasdrew - Linux论坛 - 2004-07-08 09:53:29 阅读(772) 回复(1)
已经有一个摄像头驱动,为了增加功能,准备用ioctl实现。 驱动里,fcap_ioctl函数用switch 根据cmd 来调用相应的功能实现函数。在应用软件里,用ioctl(fd,cmd,...)来调用。 在头文件 linux/videodev.h里,增加cmd的定义,用的是#define cmd ('v',30,struct ...) cmd是自己定义的命令表示 但是编译的时候就是报在应用软件程序里,cmd未定义。。。。。。。 刚接触Linux驱动,请各位大侠指教
Sorry that I can not input Chinese at this machine!! I wanna get the pid name by calling ioctl function using PIOCPSINFO Sign!But this symbol cannot find it! I search my /usr/include directory by greping "PIOCPSINFO" but I cannot find this kind of define! my machine is Redhat 9.0 and my kernel is 2.4.20-8 Is that because redhat9 delete this defination? Any helps are very appreciated! :P
在编译时.CONFIGURE时出现如下错误: checking for directory with kernel source... /lib/modules/2.4.20-8/build checking for kernel version... The file /lib/modules/2.4.20-8/build/include/lin x/version.h does not exist. Please, install the package with full kernel sources for your distribution ...
我现在在fedora core 3系统上安装了alsa声卡驱动,都调试完毕了。 不知道何原因设备/dev,中总是缺少声卡相应的设备。我在播放音乐是总要进入alsa-driver目录下执行./snddevices命令后才能正常启动。不知道如何设置才能自动启动相应的设备阿。 我现在这里谢过了阿
我装的是RH 3.0企业版本.我的声卡的是华硕主板集成的AC97声卡,装上LINUX后他找到了这声卡,但是就是没用声音,然后我用alsa去驱动,在安装过程中就是不能执行 ./alsaconf 望大家指教!
[背景] 使用ifconfig可以得到网络接口eth0的ip,广播地址,掩码地址,MTU,RX packets,TX packets,RX bytes,TX bytes。 我用octl函数可以取得接口eth0的ip,广播地址,掩码地址,MTU。 [问题] 现在我想用iotcl函数取得RX packets,TX packets,RX bytes,TX bytes这四个选项的值,请问要如何操作,要使用什么命令(cmd),请各位达人指点。