Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/dsp ohne alsa im Kernel
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Nori
n00b
n00b


Joined: 18 Nov 2004
Posts: 32

PostPosted: Wed Jan 19, 2005 11:34 pm    Post subject: /dev/dsp ohne alsa im Kernel Reply with quote

Ich habe einen SB Live! 24-Bit, der leider nur mit dem alsa-driver Paket läuft. Die meisten Kommerziellen Spiele verlassen sich aber auf ein /dev/dsp, das ich jetzt, ohne alsa-kernel-support, nicht mehr habe. Ein symbolischer Link würde helfen, doch worauf? xmms und gstreamer laufen alle über esound, aber ich habe keine Ahnung wo ich die Karte direkt finde.
Scheinbar sollte auch alsa-drivers sowas simulieren:

/etc/modules.d/alsa:
Code:

# 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 /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.7 ---
options snd  device_mode=0666
alias snd-card-0 snd-ca0106
alias sound-slot-0 snd-ca0106
# --- END: Generated by ALSACONF, do not edit. ---
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Thu Jan 20, 2005 12:49 am    Post subject: Reply with quote

Was hast du für einen Kernel laufen? Einen 2.4er oder 2.6er? Benutzt du devfs oder udev oder keins von beiden?
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Thu Jan 20, 2005 7:31 am    Post subject: Reply with quote

Wie wärs mit:
Code:
emerge alsa-oss

Description: Advanced Linux Sound Architecture OSS compatibility layer.
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
tam
Guru
Guru


Joined: 04 Mar 2003
Posts: 569

PostPosted: Thu Jan 20, 2005 9:57 am    Post subject: Reply with quote

Im 2.6er Kernel: CONFIG_SND_PCM_OSS
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Thu Jan 20, 2005 10:04 am    Post subject: Reply with quote

tam wrote:
Im 2.6er Kernel: CONFIG_SND_PCM_OSS
funktioniert nur, wenn die Kernelvariante von Alsa eingesetzt wird. Für die ebuilds funktioniert das nicht.
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
tam
Guru
Guru


Joined: 04 Mar 2003
Posts: 569

PostPosted: Thu Jan 20, 2005 12:16 pm    Post subject: Reply with quote

oscarwild wrote:
funktioniert nur, wenn die Kernelvariante von Alsa eingesetzt wird

Dagegen spricht ja nichts, oder?
Back to top
View user's profile Send private message
Nori
n00b
n00b


Joined: 18 Nov 2004
Posts: 32

PostPosted: Thu Jan 20, 2005 1:13 pm    Post subject: Reply with quote

2.6er Kernel. Alsa darf nicht im Kernel eingebaut sein, weil es ja schon im userspace vorhanden ist (alsa-driver ebuild beschwert sich beim mergen). Alsa-oss ist instaliert, stellt jedoch kein /dev/dsp bereit.
Vielleicht oss als useflag angeben und alsa neu mergen?
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Thu Jan 20, 2005 1:39 pm    Post subject: Reply with quote

AFAIK macht es nur Sinn, alsa-driver zu verwenden, wenn man einen Kernel <2.6 hat. Gerade weil ALSA seit 2.6 als standard in den Kernel aufgenommen ist. Alsa-driver kann getrost ungemergt werden, stattdessen die Treiber aus dem Kernel verwendet werden.

Im Kernel sind auch die Module zur OSS-Emulation enthalten:

Quote:

<M> OSS PCM (digital audio) API

CONFIG_SND_PCM_OSS:

To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y here


Wenn du es als Modul kompilierst, solltest du überprüfen, ob der ALSA-bootscript das Modul snd-pcm-oss auch lädt.
Back to top
View user's profile Send private message
noergeli
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 205
Location: Hamburg, Gemany

PostPosted: Thu Jan 20, 2005 2:15 pm    Post subject: Reply with quote

kompi wrote:
AFAIK macht es nur Sinn, alsa-driver zu verwenden, wenn man einen Kernel <2.6 hat.
Theoretisch macht es keinen Unterschied. Wenn die Treiber im alsa-driver Paket ausgereifter sind, kann es allerdings schon Sinn machen im Kernel nur die Soundkartenunterstützung zu aktivieren und die alsa-module extern zu bauen.
nori wrote:
Vielleicht oss als useflag angeben und alsa neu mergen?
Einen Versuch wär es wert. Immerhin berücksichtigt alsa-driver dieses USE-flag. lsmod sollte dir sagen können, ob die oss-module geladen sind oder nicht.
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Thu Jan 20, 2005 6:01 pm    Post subject: Reply with quote

1. Ich denke, der Hund liegt darin begraben, dass die OSS-Emulation auskommentiert ist:
Code:
# 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

2. Sind die oss-Module geladen?

Gegen die Kerneltreiber spricht natürlich nichts (ganz im Gegenteil...), sofern die Karte von denen unterstützt wird. Das ist aber nicht immer der Fall, und wenn ich Nori richtig verstanden habe, klappts damit nicht?
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum