It looks like this might be your issue:

> La periferica di riproduzione รจ hw:0
> I parametri dello stream sono 48000Hz, S16_LE, 2 canali
> Using 16 octaves of pink noise
> ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 
> 'defaults.namehint.extended'
> ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned 
> error: Nessun file o directory
> ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: Nessun file o 
> directory
> ALSA lib pcm.c:2184:(snd_pcm_open_noupdate) Unknown PCM hw:0
> Playback open error: -2,Nessun file o directory [...],

Not that I've had that issue.  But you might only have some of your modules 
loaded.  Or a mixmatch of versions loaded.  Or some sort of udev or /dev/audio/ 
issues.  Do you get sound on the main/default soundcard?  Because it seems you 
got the same error on both cards.  You might try hw:0,0 instead of just hw:0.  
Generally speaking hw:0,0 for playback and hw:0,1 for recording.  I've seen 
issues like this (snd_ctl_open) when the /dev/ devices were not present.

------

For reference here's my Mobile Pre setup.  From memory and cut and paste for 
the most part so grain of salt.  And I used to have 2 mobile pre's.  You might 
try using a liveCD like knoppix and see if it auto detects/configures your 
primary soundcard.  Just to verify that at least that works under linux.

-----

There's many parts to an alsa setup / configuration.  Listed below are some of 
mine.  Most of these are taken care of by your distro.  Or at least should be.

-----

speaker-test -c 2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 5.650262
 0 - Front Left
 1 - Front Right

-----

cd alsa-driver-???
./configure --prefix=/usr --with-cards=atiixp,atiixp-modem,usb-audio 
--with-sequencer=yes
make 
make install

-----

# FROM /etc/modprobe.d/alsa_custom
# implies moving or disabling distro default entries.

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

options snd                 major=116       cards_limit=3
options snd-atiixp          index=0
options snd-atiixp-modem    index=1
options snd-usb-audio       index=2
options snd-usb-audio       index=3

alias   snd-card-0          snd-atiixp
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
alias   sound-service-0-8   snd-seqr-oss
alias   sound-service-0-12  snd-pcm-oss

alias   snd-card-1          snd-atiixp-modem
alias   sound-slot-1        snd-card-1
alias   sound-service-1-0   snd-mixer-oss
alias   sound-service-1-1   snd-seq-oss
alias   sound-service-1-3   snd-pcm-oss
alias   sound-service-1-8   snd-seqr-oss
alias   sound-service-1-12  snd-pcm-oss

alias   snd-card-2          snd-usb-audio
alias   sound-slot-2        snd-card-2
alias   sound-service-2-0   snd-mixer-oss
alias   sound-service-2-1   snd-seq-oss
alias   sound-service-2-3   snd-pcm-oss
alias   sound-service-2-8   snd-seqr-oss
alias   sound-service-2-12  snd-pcm-oss

alias   snd-card-3          snd-usb-audio
alias   sound-slot-3        snd-card-3
alias   sound-service-3-0   snd-mixer-oss
alias   sound-service-3-1   snd-seq-oss
alias   sound-service-3-3   snd-pcm-oss
alias   sound-service-3-8   snd-seqr-oss
alias   sound-service-3-12  snd-pcm-oss

#alias   usb-controller      ohci-hcd
#alias   usb-controller1     ehci-hcd

-----

# FROM /etc/modules

snd-usb-audio
snd-atiixp
snd-seq-oss

-----

# FROM /home/user/.asoundrc

pcm.atiixp {
   type hw
   card 0
}
ctl.atiixp {
   type hw
   card 0
}

pcm.atiixp_modem {
   type hw
   card 1
}
ctl.atiixp_modem {
   type hw
   card 1
}

pcm.usb_audio2 {
   type hw
   card 2
}
ctl.usb_audio2 {
   type hw
   card 2
}

pcm.usb_audio3 {
   type hw
   card 3
}
ctl.usb_audio3 {
   type hw
   card 3
}

defaults.pcm.card 0

pcm.copy {
  type plug
  slave {
    pcm hw
  }
  route_policy copy
}

-----

I used udev to create the modules in /dev.  I wasn't really given a choice with 
my current distros incarnation.  I used to just run the ./snddevices script to 
mknod the audio devices.

-----

find /lib/modules/`uname -r`/kernel/sound/ -iname '*'

/lib/modules/2.6.25.9/kernel/sound/
/lib/modules/2.6.25.9/kernel/sound/ac97_bus.ko
/lib/modules/2.6.25.9/kernel/sound/soundcore.ko
/lib/modules/2.6.25.9/kernel/sound/pci
/lib/modules/2.6.25.9/kernel/sound/pci/snd-atiixp-modem.ko
/lib/modules/2.6.25.9/kernel/sound/pci/ac97
/lib/modules/2.6.25.9/kernel/sound/pci/ac97/snd-ac97-codec.ko
/lib/modules/2.6.25.9/kernel/sound/pci/snd-atiixp.ko
/lib/modules/2.6.25.9/kernel/sound/usb
/lib/modules/2.6.25.9/kernel/sound/usb/caiaq
/lib/modules/2.6.25.9/kernel/sound/usb/caiaq/snd-usb-caiaq.ko
/lib/modules/2.6.25.9/kernel/sound/usb/snd-usb-audio.ko
/lib/modules/2.6.25.9/kernel/sound/usb/snd-usb-lib.ko
/lib/modules/2.6.25.9/kernel/sound/usb/usx2y
/lib/modules/2.6.25.9/kernel/sound/usb/usx2y/snd-usb-usx2y.ko
/lib/modules/2.6.25.9/kernel/sound/core
/lib/modules/2.6.25.9/kernel/sound/core/snd.ko
/lib/modules/2.6.25.9/kernel/sound/core/seq
/lib/modules/2.6.25.9/kernel/sound/core/seq/snd-seq-midi.ko
/lib/modules/2.6.25.9/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.25.9/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.25.9/kernel/sound/core/seq/oss
/lib/modules/2.6.25.9/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.25.9/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-hwdep.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-rawmidi.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-rtctimer.ko
/lib/modules/2.6.25.9/kernel/sound/core/oss
/lib/modules/2.6.25.9/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.25.9/kernel/sound/core/oss/snd-mixer-oss.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.25.9/kernel/sound/core/snd-timer.ko

-----

lsmod | grep -i 'snd'

snd_usb_audio          80800  0 
snd_usb_lib            17024  1 snd_usb_audio
snd_seq_oss            31808  0 
snd_seq_midi            8416  0 
snd_seq_midi_event      7552  2 snd_seq_oss,snd_seq_midi
snd_seq                50768  5 snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_rawmidi            24736  2 snd_usb_lib,snd_seq_midi
snd_seq_device          8204  4 snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
snd_hwdep               9284  1 snd_usb_audio
snd_atiixp_modem       15560  0 
snd_atiixp             19532  0 
snd_ac97_codec         97568  2 snd_atiixp_modem,snd_atiixp
ac97_bus                1856  1 snd_ac97_codec
snd_pcm_oss            39200  0 
snd_mixer_oss          16576  1 snd_pcm_oss
snd_pcm                69960  5 
snd_usb_audio,snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss
snd_timer              23492  2 snd_seq,snd_pcm
snd                    53412  13 
snd_usb_audio,snd_seq_oss,snd_seq,snd_rawmidi,snd_seq_device,snd_hwdep,snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               7968  1 snd
snd_page_alloc         10312  3 snd_atiixp_modem,snd_atiixp,snd_pcm
usbcore               138544  8 
ub,usb_storage,snd_usb_audio,snd_usb_lib,ndiswrapper,ehci_hcd,ohci_hcd

-----

lsmod | grep -i usb

usb_storage            40320  0 
scsi_mod              148744  4 sg,sr_mod,sd_mod,usb_storage
snd_usb_audio          80800  0 
snd_usb_lib            17024  1 snd_usb_audio
snd_rawmidi            24736  2 snd_usb_lib,snd_seq_midi
snd_hwdep               9284  1 snd_usb_audio
snd_pcm                69960  5 
snd_usb_audio,snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss
snd                    53412  13 
snd_usb_audio,snd_seq_oss,snd_seq,snd_rawmidi,snd_seq_device,snd_hwdep,snd_atiixp_modem,snd_atiixp,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
usbcore               138544  8 
ub,usb_storage,snd_usb_audio,snd_usb_lib,ndiswrapper,ehci_hcd,ohci_hcd

-----

lsmod | grep -i hci

ehci_hcd               34956  0 
ohci_hcd               24068  0 
usbcore               138544  8 
ub,usb_storage,snd_usb_audio,snd_usb_lib,ndiswrapper,ehci_hcd,ohci_hcd

-----

HTH

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to