Benno Senoner wrote:
> 
> Hi, I'm trying to setup ALSA on my box (last version I compiled was 0.5.x
> months ago),  in order to perform some stresstests using
> a sequencer (Muse) that sends midi events to the disk sampler usin the alsa
> seq API.
> 
> I sent a posting to alsa-user but I'm not on the list and did not get back
> anything yet.
> Sorry for the redundancy and stupid questions but it's not trivial to setup
> ALSA :-)
> 
> Basically I compiled and installed alsa driver, lib and utils ( 0.9.0beta5)
> on a 2.4.5 kernel.  (snddevices were created)
> 
> The card is a SB Live! .
> 
>   This is my /etc/modules.conf   stuff:
> 
> # ALSA part
> alias char-major-116 snd
> options snd snd_major=116
> alias snd-card-0 emu10k1
> alias snd-card-0 snd-card-emu10k1
> 
> # OSS/Free part (emulation)
> alias char-major-14 soundcore
> alias sound-slot-0 snd-card-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
> 
> 
> modprobe snd-card-emu10k1  works ok:
> 
> [root@smp /root]# lsmod
> Module                  Size  Used by
> snd-card-emu10k1        2112   0  (unused)
> snd-emu10k1            49856   0  [snd-card-emu10k1]
> snd-util-mem            1856   0  [snd-emu10k1]
> snd-rawmidi            11872   0  [snd-emu10k1]
> snd-seq-device          4016   0  [snd-card-emu10k1 snd-rawmidi]
> snd-pcm                47104   0  [snd-emu10k1]
> snd-timer               8896   0  [snd-pcm]
> snd-hwdep               3696   0  [snd-emu10k1]
> snd-ac97-codec         22624   0  [snd-emu10k1]
> snd                    25232   0  [snd-card-emu10k1 snd-emu10k1 snd-util-mem
> snd-rawmidi snd-seq-device snd-pcm snd-timer snd-hwdep snd-ac97-codec]
> 
> 
> Now my problem:
> 
> Applications using OSS work ok.  (xmms , mpg123 etc), but native ALSA apps
> refuse to work.
> 
> for example running aplay I get:
> 
> [benno@smp benno]$ aplay /tmp/test.wav
> ALSA lib pcm.c:1048:(snd_pcm_open_noupdate) Unknown PCM default
> aplay: main:455: audio open error: No such file or directory
> 
> similarly:
> 
> [benno@smp benno]$ alsamixer
> ALSA lib control.c:525:(snd_ctl_open_noupdate) Invalid CTL default
> 
> alsamixer: function snd_ctl_open failed for default: No such file or
> directory
> 
> Is this because I have no /etc/asound.conf file ?
> 
> What do I need to put in that file ?
> I did look at the docs on the alsa site (joern's and john fulmers ones) but I
> did not find anything describing my problem.
> 
> Can someone give me a quick hint  (or point me to an useful URL) how to make
> it work ?

hello benno :)

hope you had a good flight back to italy !

since these errors correspond to the ctl and pcm entries in
.asoundrc, perhaps you should try with one. maybe the default
behaviour when the file does not exist is broken ?


here's mine:
# cat ~/.asoundrc

    pcmtype.hw {
            open _snd_pcm_hw_open
    }

    pcmtype.client {
            open _snd_pcm_client_open
    }

    pcmtype.multi {
            open _snd_pcm_multi_open
    }

    pcmtype.linear {
            open _snd_pcm_linear_open
    }

    pcmtype.mulaw {
            open _snd_pcm_mulaw_open
    }

    pcmtype.alaw {
            open _snd_pcm_alaw_open
    }

    pcmtype.adpcm {
            open _snd_pcm_adpcm_open
    }

    pcmtype.route {
            open _snd_pcm_route_open
    }
 
    pcmtype.rate {
            open _snd_pcm_rate_open
    }
 
    pcmtype.plug {
            open _snd_pcm_plug_open
    }
 
    pcmtype.file {
            open _snd_pcm_file_open
    }
 
    ctltype.hw {
            open _snd_ctl_hw_open
    }
 
    pcm.SBLIVE {
            type hw
            card SBLIVE
            device 0
    }
 
    ctl.SBLIVE {
            type hw
            card 0
    }


good luck.

-- 
Jörn Nettingsmeier     
home://Kurfürstenstr.49.45138.Essen.Germany      
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

Reply via email to