Hello,

  I have been trying to set up ALSA for my sound card
(via686), i think my problem is on /etc/modules.conf..
I'm using a Debian Woody w/ kernel 2.4.18-k7...

   Take a look to my log:


-----------------------------
Message error:

Sound server informational message:
Error while initializing the sound driver:
device: default can't be opened for playback (No such
file or directory)

The sound server will continue, using the null output
device.
------------------------------


I did:

#apt-get install alsa-source
debconf ask some questions about my card (in my case
via686)
i didn't enable debugging neither isa-pnp support (in
my case is not an isa card)

i run:
#uname -r to know what my kernel is.

#apt-get install alsa-modules-2.4.18-k7

#apt-get install kernel-headers-2.4.18-k7
If you need headers....

#apt-get install alsa-source

Now unpack the source code:

#cd /usr/src
#tar xvzf alsa-driver.tar.gz

Next, compile the modules and build the Debian package
of them:

#cd /usr/src/modules/alsa-driver/

#./debian/rules KSRC=/usr/src/kernel-headers-2.4.18-k7
KVERS=2.4.18-k7 KDREV=2.4.18-5 binary-modules
-- I explain this line:
       KSRC=the place where headers are.
       KVERS=run command uname -r
       KDREV=dpkg -l kernel-image-2.4.18-k7

su -
password:
dpkg -i /usr/src/modules/alsa-modules-*

Note:
 alsa-source versions below 0.9.0rc5-2 have a bug in
it, it installs the modules into /lib/modules/alsa. If
this happens to you please mv /lib/modules/alsa/*
/lib/modules/<kernel version>/alsa/. and run depmod -A
before proceeding, i.e.:

mv /lib/modules/alsa/* /lib/modules/2.4.18-k7/alsa/.
depmod -A


SETTING UP THINGS


#apt-get install alsa-utils
#cp /usr/share/doc/alsa-base/examples/modules-0.9.conf
/etc/alsa/modutils/0.9
#ln -s /etc/alsa/modutils/0.9 /etc/modutils/alsa

Edit /etc/alsa/alsa-base.conf :


# This is a configuration file for alsa-base.

# Define true if you want the OSS compatibility layer
# to be automatically loaded as well
startosslayer=true

# Define true if you want to unload alsa modules
before 
# your system suspneds. This is currently useful if
your
# machine is hanged up after resume.
force_stop_modules_before_suspend=false

# Uncomment if you always want to stop alsa modules
forcibly in
# /etc/init.d/alsa stop or restart by killing all of
running
# applications which use sound devices.
ALSA_KILL_MODE="force"


Edit the /etc/modutils/alsa :


# Example Configuration of ALSA 0.9 for Debian
GNU/Linux

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

options snd snd_major=116 snd_cards_limit=1
snd_device_mode=0660 snd_device_gid=29
snd_device_uid=0

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

alias snd-card-0 snd-via686
#alias snd-card-1 snd-serial
#alias snd-card-2 snd-share
#alias snd-card-3 snd-virmidi

alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3

# You must need to add your own card setteings below.
#  or use alsaconf to setup in menu form.


Now run as root:

update-modules
/etc/init.d/alsa start

--

#lsmod

Module                  Size  Used by    Tainted: P
agpgart                30688   3  (autoclean)
snd-via686              6592   0  (unused)
snd-pcm                49312   0  [snd-via686]
snd-timer              10528   0  [snd-pcm]
snd-ac97-codec         22688   0  [snd-via686]
snd-mpu401-uart         2736   0  [snd-via686]
snd-rawmidi            12768   0  [snd-mpu401-uart]
snd-seq-device          4096   0  [snd-rawmidi]
snd                    25992   0  [snd-via686 snd-pcm
snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi
snd-seq-device]
soundcore               3684   0  [snd]
nvidia               1467584  10 
ac97                    3024   0  (unused)
8139too                14688   1 
mii                     1120   0  [8139too]
af_packet              11848   1 
rtc                     5592   0  (autoclean)
usb-uhci               21508   0  (unused)
usbcore                49696   0  [usb-uhci]
ide-scsi                7680   0 
scsi_mod               86328   1  [ide-scsi]
parport_pc             22280   1  (autoclean)
lp                      6496   0  (autoclean)
parport                23360   1  (autoclean)
[parport_pc lp]
ext2                   30848   1  (autoclean)
ide-disk                6816   2  (autoclean)
ide-probe-mod           8096   0  (autoclean)
ide-mod               131404   2  (autoclean)
[ide-scsi ide-disk ide-probe-mod]
ext3                   57248   0  (autoclean)
jbd                    35640   0  (autoclean) [ext3]
unix                   13636  83  (autoclean)


--


# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules
that are
# to be loaded at boot time, one per line.  Comments
begin with
# a "#", and everything on the line after them are
ignored.

af_packet
8139too
ac97
nvidia
snd-via686

--

#cat /etc/modules.conf

### This file is automatically generated by
update-modules"
#
# Please do not edit this file directly. If you want
to change or add
# anything please take a look at the files in
/etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing
/etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if
you upgrade modutils
# it will be restored in case some modifications have
been made.
#
# The keep command is necessary to prevent insmod and
friends from ignoring
# the builtin defaults of a path-statement is
encountered. Until all other
# packages use the new `add path'-statement this
keep-statement is essential
# to keep your system working
keep

### update-modules: end processing /etc/modutils/0keep

### update-modules: start processing
/etc/modutils/actions
# Special actions that are needed for some modules

# The BTTV module does not load the tuner module
automatically,
# so do that in here
post-install bttv insmod tuner
post-remove bttv rmmod tuner


### update-modules: end processing
/etc/modutils/actions

### update-modules: start processing
/etc/modutils/aliases
# Aliases to tell insmod/modprobe which modules to use


# Uncomment the network protocols you don't want
loaded:
# alias net-pf-1 off            # Unix
# alias net-pf-2 off            # IPv4
# alias net-pf-3 off            # Amateur Radio AX.25
# alias net-pf-4 off            # IPX
# alias net-pf-5 off            # DDP / appletalk
# alias net-pf-6 off            # Amateur Radio NET/ROM
# alias net-pf-9 off            # X.25
# alias net-pf-10 off           # IPv6
# alias net-pf-11 off           # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off           # Acorn Econet

alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81     bttv
alias char-major-108    ppp_generic
alias /dev/ppp          ppp_generic
alias tty-ldisc-3       ppp_async
alias tty-ldisc-14      ppp_synctty
alias ppp-compress-21   bsd_comp
alias ppp-compress-24   ppp_deflate
alias ppp-compress-26   ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0   loop_gen
alias loop-xfer-3       loop_fish2
alias loop-xfer-gen-10  loop_gen
alias cipher-2          des
alias cipher-3          fish2
alias cipher-4          blowfish
alias cipher-6          idea
alias cipher-7          serp6f
alias cipher-8          mars6
alias cipher-11         rc62
alias cipher-15         dfc2
alias cipher-16         rijndael
alias cipher-17         rc5


### update-modules: end processing
/etc/modutils/aliases

### update-modules: start processing
/etc/modutils/alsa
# Example Configuration of ALSA 0.9 for Debian
GNU/Linux

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

options snd snd_major=116 snd_cards_limit=1
snd_device_mode=0660 snd_device_gid=29
snd_device_uid=0

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

alias snd-card-0 snd-via686
#alias snd-card-1 snd-serial
#alias snd-card-2 snd-share
#alias snd-card-3 snd-virmidi

alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3

# You must need to add your own card setteings below.
#  or use alsaconf to setup in menu form.

### update-modules: end processing /etc/modutils/alsa

### update-modules: start processing
/etc/modutils/alsa-path
# Debian ALSA modules path
# Do not edit this unless you understand what you're
doing.
path=/lib/modules/`uname -r`/alsa

### update-modules: end processing
/etc/modutils/alsa-path

### update-modules: start processing
/etc/modutils/paths
# This file contains a list of paths that modprobe
should scan,
# beside the once that are compiled into the modutils
tools
# themselves.


### update-modules: end processing /etc/modutils/paths

### update-modules: start processing /etc/modutils/ppp
alias /dev/ppp          ppp_generic
alias char-major-108    ppp_generic
alias tty-ldisc-3       ppp_async  
alias tty-ldisc-14      ppp_synctty
alias ppp-compress-21   bsd_comp   
alias ppp-compress-24   ppp_deflate
alias ppp-compress-26   ppp_deflate

### update-modules: end processing /etc/modutils/ppp

### update-modules: start processing
/etc/modutils/setserial
#
# This is what I wanted to do, but logger is in
/usr/bin, which isn't loaded
# when the module is first loaded into the kernel at
boot time!
#
#post-install serial /etc/init.d/setserial start |
logger -p daemon.info -t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger
-p daemon.info -t "setserial-module uload"
#
alias /dev/tts          serial
alias /dev/tts/0        serial
alias /dev/tts/1        serial
alias /dev/tts/2        serial
alias /dev/tts/3        serial
post-install serial /etc/init.d/setserial modload >
/dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave  >
/dev/null 2> /dev/null

### update-modules: end processing
/etc/modutils/setserial

### update-modules: start processing
/etc/modutils/sndconfig
alias sound-slot-0 via82cxxx_audio
post-install sound-slot-0 /bin/aumix-minimal -f
/etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f
/etc/.aumixrc -S >/dev/null 2>&1 || :

### update-modules: end processing
/etc/modutils/sndconfig

### update-modules: start processing
/etc/modutils/sndconfig.bak
alias sound-slot-0 via82cxxx_audio
post-install sound-slot-0 /bin/aumix-minimal -f
/etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f
/etc/.aumixrc -S >/dev/null 2>&1 || :

### update-modules: end processing
/etc/modutils/sndconfig.bak

### update-modules: start processing
/etc/modutils/arch/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc

### update-modules: end processing
/etc/modutils/arch/i386


--

For my /home/user/.asoundrc :

        pcm.via686 {
           type hw
           card 0
        }

        ctl.via686 {
           type hw
           card 0
        }

--

Checking my soundcore:
#modinfo soundcore


filename:   
/lib/modules/2.4.18-k7/kernel/drivers/sound/soundcore.o
description: "Core sound module"
author:      "Alan Cox"
license:     "GPL"

--

Set : 
#chmod a+rw /dev/dsp /dev/mixer /dev/sequencer
/dev/midi 

Test:
#modprobe snd-via686;modprobe snd-pcm-oss;modprobe
snd-mixer-oss;modprobe snd-seq-oss

*** Error :
#alsamixer

alsamixer: function snd_ctl_open failed for default:
No such file or directory


To solve this problem, i decided to run :
#apt-get install aumix
#apt-get install gamix

I am going for reboot...

it didn't work.....

what else could i do ?

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to