LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-06-2003, 09:22 AM   #1
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
sound card problem


i have some problem with my built in sound card which is the sound quality is very bad

when i run sndconf i got thos msg

A PCI sound card was found in your │
│ system. The details are: │
│ │
│ Model: Intel Corporation|ICH4 │
│ 845G/GL Chipset AC'97 Audio Controller │






The following error occurred running the modprobe program: │
│ │
│ /lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/i810_audi │
│ o.o.gz: init_module: No such device │
│ modprobe: insmod │
│ /lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/i810_audi │
│ o.o.gz failed │
│ modprobe: insmod sound-slot-0 failed
 
Old 04-07-2003, 11:39 AM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
if you type 'cat /proc/pci' what is the output?
who makes the motherboard?

just trying to get some more info as I'm having trouble tracking down the audio chip.

have you tried alsa though?

Last edited by jpbarto; 04-07-2003 at 11:40 AM.
 
Old 04-07-2003, 02:23 PM   #3
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
motherboard is Asus
 
Old 04-07-2003, 03:25 PM   #4
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
ASUS what? looking at the website I'm taking a best guess based upon listed chipsets and I'm gonna say its an Asus 845G... which then means that it has a c-media 8738-mx audio chip which is supported by the alsa project.

so you would have to go to alsa's website;
http://www.alsa-project.org
and download the appropriate driver source, compile it, then modprobe it into your kernel.

course if you're motherboard is not an Asus 845G... then all this advice is wasted...
 
Old 04-07-2003, 09:31 PM   #5
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
nup
it is 845g

thanx alot for ur help

i'll d/l the source and see what can i do with the modprobe

thanx for help
 
Old 04-07-2003, 09:50 PM   #6
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
i found that it is C-Media 9738 4-ch not 8738

will it be supported also
 
Old 04-07-2003, 09:52 PM   #7
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
yahoooooooo
i found tha driver for my sound card on the c-media main page
 
Old 04-08-2003, 09:27 AM   #8
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
Excellent... I was having trouble finding a driver from google... I was just about to tell you to buy a sound card... I'm glad you found the driver... party on Garth.
 
Old 04-08-2003, 09:27 AM   #9
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
but how shall i Turn on sound support (soundcore module)
 
Old 04-08-2003, 09:59 AM   #10
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
soundcore module should already exist. You should just have to compile / install the downloaded driver then execute 'modprobe <module-name>'. Send me a link to the driver you downloaded an I'll take a look at it.

If you execute the modprobe and the driver complains about no soundcore being available then you'll have to recompile your kernel to add sound support. But I can't imagine that Mandrake wouldn't provide an out-of-the-box kernel w/out sound support.
 
Old 04-08-2003, 10:43 AM   #11
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
http://www.cmedia.com.tw/download/e_UDA9738_linux.htm
 
Old 04-08-2003, 11:52 AM   #12
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
ok, now I see what you mean... to check for soundcore suport execute the following as root:
<prompt># updatedb && locate sound | grep core

this should list a library in /lib/modules/2.4.xx/kernel/...
by the name of sound-core or soundcore... or something like that... (if it doesn't try to build without it... if the build complains you'll need to recompile)...
if a soundcore.so (or something like that is listed) then execute as root 'modprobe soundcore'... this will load the soundcore module into the kernel. (NOTE: if the library is named sound-core.so you'll need to execute modprobe sound-core)

then follow the instructions as listed in the readme.

let me know if you have any problems.
 
Old 04-09-2003, 08:10 AM   #13
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
also the same error

i have attached the error i got

plz see it



-----------------------
[root@localhost cmaudio]# updatedb && locate sound | grep core
/usr/include/sound/core.h
/usr/src/linux-2.4.21-0.13mdk/drivers/sound/dmasound/dmasound_core.c
/usr/src/linux-2.4.21-0.13mdk/drivers/sound/sound_core.c
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/dmasound_core.stamp
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/dmasound_core.ver
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/sound_core.stamp
/usr/src/linux-2.4.21-0.13mdk/include/linux/modules/sound_core.ver
/usr/src/linux-2.4.21-0.13mdk/include/sound/core.h
/usr/src/linux-2.4.21-0.13mdk/sound/core
/usr/src/linux-2.4.21-0.13mdk/sound/core/Config.help
/usr/src/linux-2.4.21-0.13mdk/sound/core/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/hwdep32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/ioctl32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/ioctl32.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/pcm32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/rawmidi32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/seq32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/ioctl32/timer32.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/linear.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/copy.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/io.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_plugin.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/mixer_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/mulaw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/pcm_plugin.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/plugin_ops.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/rate.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/oss/route.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/Config.in
/usr/src/linux-2.4.21-0.13mdk/sound/core/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/control.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/device.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/hwdep.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/info.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/info_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/init.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memory_wrapper.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/isadma.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memalloc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_lib.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_gf1.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_fm.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_simple.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/instr/ainstr_iw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/Makefile
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/.depend
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_device.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_writeq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_event.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_event.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_init.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_ioctl.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_midi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_midi.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_readq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_readq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_rw.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_synth.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_synth.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_timer.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/oss/seq_oss_writeq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_clientmgr.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi_event.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_clientmgr.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_device.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_dummy.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_fifo.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_fifo.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_info.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_info.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_instr.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_lock.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_lock.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_memory.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_midi_emul.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_system.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_ports.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_ports.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_prioq.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_prioq.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_queue.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_queue.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_system.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_timer.h
/usr/src/linux-2.4.21-0.13mdk/sound/core/seq/seq_virmidi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sgbuf.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_memory.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_misc.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_native.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/pcm_timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/rawmidi.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/rtctimer.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sound_oss.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/sound.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/wrappers.c
/usr/src/linux-2.4.21-0.13mdk/sound/core/timer.c
/usr/src/linux-2.4.21-0.13mdk/sound/sound_core.c
/lib/modules/2.4.21-0.13mdk/kernel/drivers/sound/soundcore.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss/snd-mixer-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/oss/snd-pcm-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-simple.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-fm.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-gf1.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/instr/snd-ainstr-iw.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/oss
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/oss/snd-seq-oss.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi-emul.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-device.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-dummy.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-instr.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi-event.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-midi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq-virmidi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/seq/snd-seq.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-page-alloc.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-hwdep.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-rawmidi.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-pcm.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd-timer.o.gz
/lib/modules/2.4.21-0.13mdk/kernel/sound/core/snd.o.gz
[root@localhost cmaudio]# modpr
modprobe modprobe-24 modprobe.old
[root@localhost cmaudio]# modprobe sound-core
modprobe: Can't locate module sound-core
[root@localhost cmaudio]# modprobe soundcore
[root@localhost cmaudio]# make
cc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -c -o main.o main.c
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from cmaudio.h:1,
from main.c:1:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from cmaudio.h:1,
from main.c:1:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from cmaudio.h:1,
from main.c:1:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
In file included from cmaudio.h:2,
from main.c:1:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/asm/hardirq.h:6,
from cmaudio.h:21,
from main.c:1:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from cmaudio.h:21,
from main.c:1:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
make: *** [main.o] Error 1
[root@localhost cmaudio]#
 
Old 04-09-2003, 09:45 AM   #14
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
ok... modprobe soundcore works just fine so that's one step in the right direction... now we need to take a look at /usr/src... according to the compile command that 'make' issued its including files from /usr/src/linux-2.4/... (and then from /usr/src/linux)... typically the 'linux' directory in /usr/src is a symbolic link to the source tree of the actual running kernel... if the kernel you're using is linux-2.4.21-0.13.mdk such as it looks then there should be a linux-2.4.... directory in /usr/src with a name similiar... such as 'linux-2.4.21-0.13'... do an 'ls -l' and see if the 'linux' directory points to the proper actual directory... if it doesn't then 'rm linux' (be careful, we want to remove the link but not the actual directory as it contains our source). then recreate the link with 'ln -s <linux directory name> linux'.

if all this seems confusing then you can try doing an ls -l of /usr/src and we can take a better look at it. Also to find out exactly what kernel you're running execute 'uname -r'... that should tell you what version you're using.
 
Old 04-09-2003, 10:06 AM   #15
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
no the link there is fine and nothing is wrong

it as as the error says

/lib/modules/linux.../build and point to usr/src/linux/....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Other problem with the sound in Mandrake - onboard sound card Swetko Linux - Hardware 24 06-19-2006 04:27 PM
Sound problem with intel8x0 sound card. ivopz Linux - Hardware 2 03-28-2005 06:01 AM
Tv card + Sound Card = Audio Problem? kak Slackware 2 01-02-2005 02:18 AM
No sound, problem with sound card install? ak4me Linux - Hardware 2 03-06-2004 05:01 PM
Sound card and Graphics card problem abcdef3 Linux - Software 2 07-31-2001 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration