LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-12-2004, 12:04 PM   #1
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
alsa not working


i don't get any sound from my SuSE box! help!

Code:
zaphyr@dhcppc0:~> esd
ALSA lib pcm_hw.c:1057:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: No such device
zaphyr@dhcppc0:~>
 
Old 08-12-2004, 12:35 PM   #2
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
this is a good site to get alsa set up.

lspci will show you your sound card, found on the website and they have really good step by step to setup the sound.

http://www.alsa-project.org/
 
Old 08-12-2004, 12:56 PM   #3
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
there is really a lot of info on that page! can anyone give a hint on where to look, and what to look for?

thanks
 
Old 08-12-2004, 01:12 PM   #4
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
do a lspci

and tell me your soundcard...
second download alsa. http://www.alsa-project.org/download.php

Code:
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
taken from there website.
http://www.alsa-project.org/alsa-doc...module=emu10k1

let me know if you need any help.

Last edited by djgerbavore; 08-12-2004 at 02:04 PM.
 
Old 08-12-2004, 01:46 PM   #5
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
can i install it from YaST instead??

here is the result of lspci

Code:
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

Last edited by ZaphyR; 08-12-2004 at 01:52 PM.
 
Old 08-12-2004, 02:02 PM   #6
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
what happens when you type in
modinfo soundcore
????/
 
Old 08-12-2004, 02:14 PM   #7
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
i get this result

Code:
alias:          char-major-14-*
license:        GPL
author:         Alan Cox
description:    Core sound module
depends:
supported:      yes
vermagic:       2.6.5-7.104-default 586 REGPARM gcc-3.3
 
Old 08-12-2004, 02:37 PM   #8
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
thats good, that means you don't have to recompile your kernel.

type wget ftp://ftp.alsa-project.org/pub/drive...1.0.5a.tar.bz2 this will download the newest, stable alsa.


then you have to:
cd /usr/src
mkdir alsa
cd alsa
cp /thepathToWereYouDownloadIt/alsa-* .

then:
bunzip2 alsa-driver-xxx
tar -xf alsa-driver-xxx
cd alsa-driver-xxx
./configure --with-cards=emu10k1 --with-sequencer=yes;make;make install

finally:
>modprobe snd-card-emu10k1

>alsamixer

if you don't get an error then it work.

here is a link for all the information about your sound card and chipset:
http://www.alsa-project.org/alsa-doc...module=emu10k1

let me know how this goes.

Last edited by djgerbavore; 08-12-2004 at 02:38 PM.
 
Old 08-12-2004, 03:05 PM   #9
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
there are one error when './configure'

Code:
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
 
  


Reply



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
Alsa working under 2.6.10 sharpie Slackware 20 02-18-2005 05:24 PM
alsa in 2.6.x not working? this might help a2carat Slackware 1 03-15-2004 08:47 AM
getting ALSA working sharpie Linux - Newbie 2 02-26-2004 06:27 AM
alsa 0.9.6/7 not working? Toker Mandriva 1 10-13-2003 06:55 PM
ALSA and EMU10K1 working and yet not working Nevernamed90 Linux - Newbie 1 01-09-2003 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

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