Hello!

On Wed, May 08, 2002 at 02:04:15PM +0900, [EMAIL PROTECTED] wrote:
> I have 2 soundcards and want to use them with ALSA.
> I've made sure that both of them are active now. 
> 
> $ ls /dev/snd
> controlC0  hwC0D0    midiC1D0  pcmC0D0p  pcmC0D2c  pcmC1D0c  pcmC1D1p
> controlC1  midiC0D0  pcmC0D0c  pcmC0D1c  pcmC0D3p  pcmC1D0p  timer

Both of your soundcards have been detected. The capital "C" is
"Card" number and D is "Device number" (subdevices of a card).

> % aplay -D hw:0,0 test.wav
> % aplay -D hw:1,0 test.wav
> 
> But I still can not use the 2nd card to play music with xmms,...
> because I dont have /dev/dps1 or /dev/sound/dsp1 for it.

So I guess your xmms doesn't have any ALSA support. No problem.

> $ ls /dev/sound/
> adsp  audio  dmmidi  dsp  midi00  mixer  unknown

I don't have a "/dev/sound/". Are you using DEVFS maybe?

> Also, I did try:
>   # cat /usr/share/tuxtype/sounds/winfinal.wav > /proc/asound/card0/pcm0p/oss 
> but it said:
>   cat: write error: Cannot allocate memory
> 
> So, I want to know 
>   1. How can I have /dev/dsp1, /dev/sound/dsp1 ...
>      I took a look at /usr/src/linux/Documentation/devices.txt
>      but it didn't help me.

hw,1,0 maps to /dev/adsp0:

crw-rw----    1 root     audio     14,  12 Nov 20 17:20 /dev/adsp0

You may have to create it with

mknod -m 600 /dev/adsp0 c 14 12
chown root.audio /dev/adsp0

The second subdevice of your second soundcard is /dev/adsp1, I
think. You have two subdevices on this soundcard (see "ls /dev/snd/"
output above.

To make xmms use this device, go to xmms preference menu
(Ctrl-P), locate "Output Plugin" and click "configure". Check the
box "Use alternate device" and enter /dev/adsp0 in the text
field.

>   2. How can I play music without snd-pcm-oss (and not using aplay)

You need ALSA software for this. There should be links on
http://www.alsa-project.org/. There is an xmms plugin available
which lets xmms use ALSA devices without emulation. I haven't
tried them yet.

        Raoul


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to