You are not logged in.

#1 2010-08-30 14:53:08

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

problem with alsa after instaling snd-aloop

I installed this package: http://aur.archlinux.org/packages.php?ID=40180 for my linux26rt kernel.
I changed this line in PCKGBUILD: "rm -fr $pkgdir/lib/modules/2.6.35-ARCH/kernel/sound/acore" to "rm -fr $pkgdir/lib/modules/2.6.35-rt/kernel/sound/acore" - so that's not the cause
It worked with the normal kernel but now with the RT-Kernel alsa doesn't work (same .asoundrc):

 [studio@myhost música clássica]$ mplayer -ao alsa Ravel\ -\ Bolero\ \&\ other\ Orchestral\ Works\ \ 02\ -\ La\ Valse.mp3 
MPlayer SVN-r32025-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 347 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Ravel - Bolero & other Orchestral Works  02 - La Valse.mp3.
Audio only file format detected.
Clip info:
 Title: La Valse                      
 Artist: Ravel                         
 Album: Bolero & other Orchestral Work
 Year:     
 Comment:                             
 Track: 2
 Genre: Unknown
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-22): Invalid argument
[AO_ALSA] alsa-lib: pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Invalid argument
Failed to initialize audio driver 'alsa'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Exiting... (End of file)
[studio@myhost música clássica]$ cat ~/.asoundrc
# playback PCM device: using loopback subdevice 0,0
pcm.amix {
  type dmix
  ipc_key 219345
  slave.pcm "hw:Loopback,0,0"
}

# capture PCM device: using loopback subdevice 0,1
pcm.asnoop {
  type dsnoop
  ipc_key 219346
  slave.pcm "hw:Loopback,0,1"
}

# duplex device combining our PCM devices defined above
pcm.aduplex {
  type asym
  playback.pcm "amix"
  capture.pcm "asnoop"
}

# ------------------------------------------------------
# for jack alsa_in and alsa_out: looped-back signal at other ends
pcm.ploop {
  type plug
  slave.pcm "hw:Loopback,1,1"
}

pcm.cloop {
  type dsnoop
  ipc_key 219348
  slave.pcm "hw:Loopback,1,0"
}

# ------------------------------------------------------
# default device

pcm.!default {
  type plug
  slave.pcm "aduplex"
}[studio@myhost música clássica]$ 

.acoundrc disabled:

 [studio@myhost música clássica]$ mplayer -ao alsa Ravel\ -\ Bolero\ \&\ other\ Orchestral\ Works\ \ 02\ -\ La\ Valse.mp3 
MPlayer SVN-r32025-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 347 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Ravel - Bolero & other Orchestral Works  02 - La Valse.mp3.
Audio only file format detected.
Clip info:
 Title: La Valse                      
 Artist: Ravel                         
 Album: Bolero & other Orchestral Work
 Year:     
 Comment:                             
 Track: 2
 Genre: Unknown
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.4 (02.3) of 745.0 (12:25.0)  0.7% 


MPlayer interrupted by signal 2 in module: play_audio
A:   2.4 (02.4) of 745.0 (12:25.0)  0.8% 

Exiting... (Quit)
[studio@myhost música clássica]$ cat ~/.asoundrc
cat: /home/studio/.asoundrc: Arquivo ou diretório não encontrado
[studio@myhost música clássica]$ 

another question wich comes to me seeing the last output: why is the output resampled to 48000Hz? this will effect sound wont it?

Offline

#2 2010-09-02 00:37:55

capoeira
Member
From: Vila Velha - Brasil
Registered: 2010-05-25
Posts: 470

Re: problem with alsa after instaling snd-aloop

installed it with this guide: http://alsa.opensrc.org/index.php/Jack_ … ack_bridge

I'm just trying to understand why it works with one kernel and not with the other

Offline

Board footer

Powered by FluxBB