Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Make a directory to store the alsa source code in.
cd /usr/src
mkdir alsa
cd alsa
cp /wherethedownloadfileis/alsa-* .
Now unzip and install the alsa-driver package
bunzip2 alsa-driver-xxx
tar -xf alsa-driver-xxx
cd alsa-driver-xxx
./configure --with-cards=emu10k1 --with-sequencer=yes;make;make install
NB. If you are using drivers before 0.9.4 then you need to run
./snddevices
If you use devfs then you should not run the snddevices script
The snddevices script sets the permissions for the devices it creates to root. You should
chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi
Now unzip and install the alsa-lib package
cd ..
bunzip2 alsa-lib-xxx
tar -xf alsa-lib-xxx
cd alsa-lib-xxx
./configure;make;make install
Now unzip and install the alsa-utils package
cd ..
bunzip2 alsa-utils-xxx
tar -xf alsa-utils-xxx
cd alsa-utils-xxx
./configure;make;make install
Now insert the modules into the kernel.
modprobe snd-emu10k1;
modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
NB. For drivers older than 0.9.0beta11 use:
modprobe snd-card-emu10k1
Now adjust your soundcards volume levels.
All mixer channels are muted by default.
You must use a native mixer program to unmute appropriate channels,
for example alsamixer from the alsa-utils package.
Note that some usb-audio devices do not have internal mixer controls.
alsamixer
0000:00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
0000:00:09.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
0000:00:09.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
0000:00:0b.0 FireWire (IEEE 1394): NEC Corporation: Unknown device 00e7 (rev 01)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)
0000:00:11.2 USB Controller: VIA Technologies, Inc. USB (rev 1b)
0000:00:11.3 USB Controller: VIA Technologies, Inc. USB (rev 1b)
0000:00:11.4 USB Controller: VIA Technologies, Inc. USB (rev 1b)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 70)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)
and i found this in one log
Code:
Aug 12 20:29:01 linux kernel: ALSA sound/core/init.c:107: cannot find the slot for index 0 (range 0-0)
Aug 12 20:29:01 linux kernel: EMU10K1_Audigy: probe of 0000:00:09.0 failed with error -12
cat: /lib/modules/2.6.5-7.104-default/build/include/linux/kmod.h: No such file or directory
ant these when doing 'make'
Code:
WARNING: Symbol version dump /usr/src/linux-2.6.5-7.104-obj/i386/default/Module.symvers is missing, modules will have CONFIG_MODVERSIONS disabled.
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/hwdep.o
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/memalloc.o
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/sgbuf.o
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/memory_wrapper.o
/usr/src/alsa/alsa-driver-1.0.5a/acore/memory_wrapper.c: In function `snd_compat_vmalloc_to_page':
/usr/src/alsa/alsa-driver-1.0.5a/acore/memory_wrapper.c:41: warning: implicit declaration of function `VMALLOC_VMADDR'
/usr/src/alsa/alsa-driver-1.0.5a/acore/memory_wrapper.c:47: warning: implicit declaration of function `pte_offset'
/usr/src/alsa/alsa-driver-1.0.5a/acore/memory_wrapper.c:47: warning: assignment makes pointer from integer without a cast
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/pcm.o
CC [M] /usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/pcm_native.o
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2339: warning: `struct sndrv_pcm_sync_ptr' declared inside parameter list
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2339: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c: In function `snd_pcm_sync_ptr':
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2342: error: storage size of `sync_ptr' isn't known
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2348: warning: type defaults to `int' in declaration of `type name'
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2350: error: dereferencing pointer to incomplete type
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2354: error: `SNDRV_PCM_SYNC_PTR_HWSYNC' undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2354: error: (Each undeclared identifier is reported only once
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2354: error: for each function it appears in.)
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2360: error: `SNDRV_PCM_SYNC_PTR_APPL' undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2364: error: `SNDRV_PCM_SYNC_PTR_AVAIL_MIN' undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2342: warning: unused variable `sync_ptr'
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c: In function `snd_pcm_common_ioctl1':
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2431: error: `SNDRV_PCM_IOCTL_SYNC_PTR' undeclared (first use in this function)
/usr/src/alsa/alsa-driver-1.0.5a/acore/pcm_native.c:2432: warning: passing arg 2 of `snd_pcm_sync_ptr' from incompatible pointer type
make[5]: *** [/usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore/pcm_native.o] Error 1
make[4]: *** [/usr/src/alsa/alsa-driver-1.0.5a/kbuild/../acore] Error 2
make[3]: *** [_module_/usr/src/alsa/alsa-driver-1.0.5a/kbuild] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.5-7.104-obj/i386/default'
make: *** [compile] Error 2
and then this when doing 'make install'
Code:
find /lib/modules/2.6.5-7.104-default/kernel/sound -name 'snd*.*o' | xargs rm -f
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.5a/acore'
mkdir -p /lib/modules/2.6.5-7.104-default/kernel/sound/acore
cp snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-rawmidi.ko snd-timer.ko snd.ko ib/modules/2.6.5-7.104-default/kernel/sound/acore
cp: cannot stat `snd-hwdep.ko': No such file or directory
cp: cannot stat `snd-page-alloc.ko': No such file or directory
cp: cannot stat `snd-pcm.ko': No such file or directory
cp: cannot stat `snd-rawmidi.ko': No such file or directory
cp: cannot stat `snd-timer.ko': No such file or directory
cp: cannot stat `snd.ko': No such file or directory
make[1]: *** [modules_install] Error 1
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.5a/acore'
make: *** [install-modules] Error 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.