Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

20.09.2005, 15:29

Soundkarten-Problem

Moin!

Ich versuche nun schon ueber einer Woche ALSA zum Laufen zu bekommen. Habe dazu das Howto von www.gentoo.de genutzt. (http://www.gentoo.de/doc/de/alsa-guide.xml) Ich wuerde gerne die Variante mit dem Kernel nehmen, aber irgendwie funktioniert es nicht. Habe deshalb mal aufgeschrieben, was ich gemacht habe.

Als erstes habe ich geschaut, welche Soundkarte ich habe, das ist folgende:

Zitat

localhost blackflash # lspci -v | grep -i audio
0000:00:11.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device


Dann habe ich auf der ALSA-Matrix nach meinem Treiber gesucht => cmipci.

Danach bin ich in das Verzeichnis des Kernels (/usr/src/linux) gewechselt und habe "make menuconfig" ausgefuehrt.

Habe wie in dem Howto beschrieben meine Soundkarte (bzw. Treiber fuer die Soundkarte) gesucht. Danach habe ich noch "make" ausgefuehrt und meinen Rechner neugestartet.

Wenn ich danach allerdings "alsaconf" ausfuehre, sagt er mir, dass er keine Treiber fuer die Soundkarte findet.

Habe auch bereits in dem Forum hier gesucht, aber bisher noch nichts passendes gefunden.

gez. Blackflash

amielke

unregistriert

2

20.09.2005, 16:28

Hallo,

verwende doch die Alsa-driver.

dazu trägst Du in Deine make.conf folgendes ein.

ALSA_CARDS="cmipci"


Dannach machst Du ein emerge -av alsa-driver

wenn Du coldplug verwendest, werden die Module dann automatich geladen.

Wichtig ist nur das Du im Kernel dazu OSS und ALSA Unterstützung deaktivierst, aber sound Unterstützung muss aktiviert beleiben.

Gruß

3

20.09.2005, 16:59

das muss in die /etc/make.conf

Quellcode

1
ALSA_CARDS="cmipci"


einzusehen hier

mach es mal so:

deinen kernel so einstellen:

Quellcode

1
2
3
4
5
6
7
8
9
10
 Loadable module support  --->
     [*] Enable loadable module support

 Device Drivers  --->
     Sound  --->
         <*> Sound card Support
             Advanced Linux Sound Architecture  --->
                 < > Advanced Linux Sound Architecture
             Open Sound System  --->
                 < > Open Sound System (Deprecated)



dann musst du jegliche packages mit alsa emergen
z.b.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# emerge alsa-lib alsa-driver alsa-oss alsa-utils alsa-headers
  
These are the packages that I would merge, in order: 
  
Calculating dependencies ...done! 
[ebuild   R   ] media-libs/alsa-lib-1.0.8
[ebuild N     ] media-sound/alsa-driver-1.0.8
[ebuild   R   ] media-libs/alsa-oss-1.0.8-r1 
[ebuild   R   ] media-sound/alsa-utils-1.0.8 
[ebuild N     ] media-sound/mpg321

# etc-update
Scanning Configuration files... 
Exiting: Nothing left to do; exiting. :)



dann musst du deine /etc/modules.d/alsa folgendermaßen anpassen

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
        # ALSA portion
        alias char-major-116 snd
        alias snd-card-0 snd-cmipci
	# module options should go here

        # OSS/Free portion
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0
	
	# card #1
	alias sound-service-0-0 snd-mixer-oss
	alias sound-service-0-1 snd-seq-oss
	alias sound-service-0-3 snd-pcm-oss
	alias sound-service-0-8 snd-seq-oss
	alias sound-service-0-12 snd-pcm-oss


und dann alsasound zum bootlevel hinzufügen...

Quellcode

1
2
3
4
# rc-update add alsasound boot
# /etc/init.d/alsasound start 
* ALSA Detected... 
* Restoring Mixer Levels                     [ ok ] 



dann muss dein user ja noch in der gruppe audio sein...

und dann noch die mixer level einstellen... --> alsamixer

und mit

Quellcode

1
2
# alsactl store
(werden die soundlevel gespeichert)



Wichtig: Falls Sie Probleme haben sollten, alsamixer zu starten und Fehlermeldungen erhalten wie alsamixer: function snd_ctl_open failed for default: No such file or directory, ist das gewöhnlich ein Problem mit dem Einrichten der Geräte von udev. Lassen Sie killall udevd; udevstart laufen, um die Einträge in/dev neu zu laden und starten Sie alsamixer. Das sollte das Problem beheben.


*good luck

*bei problemen nochmal melden...
MfG MyD

amielke

unregistriert

4

20.09.2005, 17:21

MyD,

wieso must Du die /etc/modules.d/alsa anpassen?

ich habe jetz schon viele Systeme installiert und es reichte immer wenn ich es in die make.conf eintrage und dann die alsa-driver emerge.

Die Module werden durch coldplug automatisch gestartet und fertig.

Habe die /etc/modules.d/alsa noch nie geändert und bei allen 5 Systemen läuft der Sound.

alsa-osss habe ich natürlich noch überall installiert.

Gruß

5

20.09.2005, 17:33

Zitat

Original von amielke
MyD,

wieso must Du die /etc/modules.d/alsa anpassen?

ich habe jetz schon viele Systeme installiert und es reichte immer wenn ich es in die make.conf eintrage und dann die alsa-driver emerge.

Die Module werden durch coldplug automatisch gestartet und fertig.

Habe die /etc/modules.d/alsa noch nie geändert und bei allen 5 Systemen läuft der Sound.

alsa-osss habe ich natürlich noch überall installiert.

Gruß


das alsa-project sagt dieses halt - ich mache es immer zur vorsorge - schaden kann es ja nicht...
MfG MyD

amielke

unregistriert

6

20.09.2005, 17:38

Zitat

das alsa-project sagt dieses halt - ich mache es immer zur vorsorge - schaden kann es ja nicht...



achso, naja ich werde es nachwievor nicht eintragen. Sound geht ja ohne Probleme auf allen Systemen.

Gruß Andreas

7

20.09.2005, 19:18

Habe alles nun gemacht, leider funktioniert es nicht so, wie es soll. Folgendes ist passiert:

Zitat

localhost blackflash # /etc/init.d/alsasound start
* Re-caching dependency info (mtimes differ)...
* Loading ALSA modules ...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Loading: snd_cmipci ...
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.12-gentoo-r10/misc/acore/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_rawmidi (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-rawmidi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_mpu401_uart (/lib/modules/2.6.12-gentoo-r10/misc/drivers/mpu401/snd-mpu401-uart.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_hwdep (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-hwdep.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_opl3_lib (/lib/modules/2.6.12-gentoo-r10/misc/drivers/opl3/snd-opl3-lib.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_cmipci (/lib/modules/2.6.12-gentoo-r10/misc/pci/snd-cmipci.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ]
* Loading: snd-seq-oss ...
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq (/lib/modules/2.6.12-gentoo-r10/misc/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.12-gentoo-r10/misc/acore/seq/snd-seq-device.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.12-gentoo-r10/misc/acore/seq/oss/snd-seq-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ]
* Loading: snd-pcm-oss ...
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.12-gentoo-r10/misc/acore/oss/snd-mixer-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd_pcm (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-pcm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.12-gentoo-r10/misc/acore/oss/snd-pcm-oss.ko): Unknown symbol in module, or unknown parameter (see d [ !! ]
* Loading: snd-mixer-oss ...
FATAL: Error inserting snd_mixer_oss (/lib/modules/2.6.12-gentoo-r10/misc/acore/oss/snd-mixer-oss.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ]
* Loading: snd-seq ...
WARNING: Error inserting snd_timer (/lib/modules/2.6.12-gentoo-r10/misc/acore/snd-timer.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd_seq (/lib/modules/2.6.12-gentoo-r10/misc/acore/seq/snd-seq.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ]
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels ...
* No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]


Danke uebrigens fuer die schnelle Hilfe. :-)

amielke

unregistriert

8

20.09.2005, 19:21

Hast Du als letztes den Kernel gebaut, oder die alsa-driver installiert?

Immer wenn Du am Kernel was änderst, musst Du die alsa-driver neu emergen.

Gruß

9

20.09.2005, 19:22

so ich gehe jetzt einfach mal davon aus das du alsa* - 1.0.8 verwendest...
daher kenne ich das problem...

Quellcode

1
# emerge sync


und emerge nochmal alle alsa packages libs/headers etc. auf die neuste version 1.0.9...
danach sollte dieser fehler nicht mehr auftreten...

und überprüfe ob deine /etc/modules.d/alsa richtig eingestellt hast.

Zitat

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmipci
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss



und was sagt denn ein

Quellcode

1
# cat /proc/asound/cards


--> sobald hier deine karte drinne steht funktioniert sie schonmal und wurde erkannt.
MfG MyD

10

20.09.2005, 20:02

Habe nun Portage aktualisiert und die neuen Pakete updated bzw. er ist gerade noch dabei. Die /etc/modules.d/alsa sieht fast genauso aus wie meine. Sie ist nur in einer anderen Reihenfolge.

Aber folgendes beunruhigt mich:

Quellcode

1
2
localhost blackflash # cat /proc/asound/cards
--- no soundcards ---

11

20.09.2005, 20:15

Er ist jetzt fertig die 5 Pakete neuzuinstallieren. Folgendes passiert:

Quellcode

1
2
3
4
5
6
7
8
localhost blackflash # /etc/init.d/alsasound start
 * WARNING:  "alsasound" has already been started.
localhost blackflash # /etc/init.d/alsasound stop
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...
/usr/sbin/alsactl: save_state:1163: No soundcards found...                [ !! ]
 * Unloading ALSA ...                                                     [ ok ]
 * Unloading ALSA modules ...                                             [ !! ]


Es scheint also irgendwas mit der Soundkarte zu tun zu haben.

12

20.09.2005, 20:19

Zitat

Original von Blackflash
Aber folgendes beunruhigt mich:

Quellcode

1
2
localhost blackflash # cat /proc/asound/cards
--- no soundcards ---


das zeigt es ann wenn /etc/init.d/alsasound nicht gestartet werden kann wie es bei dir der fall ist...

hast du nochmal überprüft ob du alles so befolgt hast wie ich es geschrieben habe ?(

ist auch ein symlink auf den aktuellen kernel gelegt?

Quellcode

1
# ls -l /usr/src/linux


Quellcode

1
# uname -a


Quellcode

1
# cat /etc/modules.d/alsa


gebe mir mal diese infos...
MfG MyD

13

20.09.2005, 20:21

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
localhost blackflash # ls -l /usr/src/linux
lrwxrwxrwx  1 root root 23 Sep  5 19:29 /usr/src/linux -> linux-2.6.12-gentoo-r10
localhost blackflash # uname -a
Linux localhost 2.6.12-gentoo-r10 #1 SMP Mon Sep 5 20:22:08 GMT 2005 i686 AMD Duron(tm) Processor AuthenticAMD GNU/Linux
localhost blackflash # cat /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

# ALSA portion
# OSS/Free portion

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias char-major-116 snd
alias char-major-14 soundcore

alias snd-card-0 snd-cmipci
alias sound-slot-0 snd-card-0

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

options snd cards_limit=1

14

20.09.2005, 20:37

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmipci

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

übernehme das bitte mal so...

weil was soll dir das hier bringen ?(

Zitat

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss


und was sagt bei dir ein

Quellcode

1
# lsmod


und mach mal nen reboot von deiner kiste und schaue dann erst nach!
MfG MyD

15

20.09.2005, 20:56

Habe die Datei nun so geaendert, dass genau das steht, was du mir eben geschrieben hast. Danach habe ich den Rechner gebootet und hier das, was ausgegeben wird:

Quellcode

1
2
3
localhost blackflash # lsmod
Module                  Size  Used by
snd_seq_midi_event      5696  -

16

21.09.2005, 01:25

und bekommst du jetzt beim alsasound booten immer noch diese fehler ?(
MfG MyD

17

21.09.2005, 11:34

Jap, den bekomme ich immernoch.