protux-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Protux-devel] Good news about 0.17.1


From: Luciano Giordana
Subject: Re: [Protux-devel] Good news about 0.17.1
Date: Mon, 10 Feb 2003 02:27:14 -0200
User-agent: KMail/1.4.3

> the funny thing is that protux-bus 0 tries to open hw:0,2, and protux-bus 1
> tries to open hw:0,1... and there is no way to select hw:0.0...
>

I am "detecting" the cards/devices/buses by inspecting /proc/asound/cardX 
directories. This is not the good way to do this, but I couldnt find a 
correct way to detect the buses/devices using the ALSA API. if there is no 
hw:0,0, then it is because there is no /proc/asound/card0/pcm0p (or if you 
mean capture buses, so there is no /proc/asound/card0/pcm0c)

Note that I DONT KNOW if there is a relation between hw:X,Y and these 
directories.. I am workin in the dark with ALSA stuff..


the alsa questions are still the same 


1) is hw:X,Y linked to /proc/asound/cardX/pcmZY ? (Z is c or p)

2) what exactly is a PCM for alsa ? Why a SB Live has 2 PCM devices ?? 
SO I have 4 output channes is a SB LIVE ? or one is for the right channel and 
the other is for left channel ? Or PCM is not what it seems to be, and it is 
just a EXTERNAL OUTPUT , such headphone, line out, or something like that ?
I this case PCM is a bad name , because I understand PCM as a place to send 
audio samples... (called "bus out", in protux...), as OSS called as /dev/dspX

3) what is a subdevice for alsa ?

4) why I cant set period size to X when the API says that the minimum is A and 
maximum is B and A < X < B ?

5) Why I get a segfault when I try snd_pcm_hw_params_free() ?

6) why numPeriods have to be 2 always ?

7) which is the best way (and code example)  to inspect all cards and ONLY its 
AUDIO (WAVE/PCM/DSP, whatever ) devices ?  



Regards





reply via email to

[Prev in Thread] Current Thread [Next in Thread]