Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-24 Thread Clemens Ladisch
Jaroslav Kysela wrote: On Tue, 23 Mar 2004, Clemens Ladisch wrote: The following test program shows strange behaviour: Thanks. It's fixed in CVS now. The second problem persists, i.e., snd_pcm_wait() returns although the pcm isn't actually ready: $ ./waittest dmix:hw:0 12000 frames written

Re: [Alsa-devel] Problems running latencytest: error setting freq 1024

2004-03-24 Thread Jaroslav Kysela
On Tue, 23 Mar 2004, Frank Barknecht wrote: Hallo, I'd like to test my system's 2.6.4 latency using Takashi's http://www.alsa-project.org/~iwai/latencytest-0.5.2.tar.gz suite. Building and installing so far went fine, I can run all the tests but no output is created. But I get a

Re: [Alsa-devel] Problems running latencytest: error setting freq 1024

2004-03-24 Thread Jaroslav Kysela
On Wed, 24 Mar 2004, Jaroslav Kysela wrote: $ measure -p ./out/x11.png -o ./out/x11.out -c 0 -f 1024 -n 2 -t 2 I get this error message: error setting freq 1024 Frequency should be equal or greater than 5000Hz. Sorry, it appears to be the rtc frequency, of course. I was referring to the

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-24 Thread Jaroslav Kysela
On Wed, 24 Mar 2004, Clemens Ladisch wrote: Jaroslav Kysela wrote: On Tue, 23 Mar 2004, Clemens Ladisch wrote: The following test program shows strange behaviour: Thanks. It's fixed in CVS now. The second problem persists, i.e., snd_pcm_wait() returns although the pcm isn't actually

[Alsa-devel] mixer docs or good examples?

2004-03-24 Thread Thomas Fjellstrom
I'm working on a little mixer app for KDE... I can't find any docs on how to use the mixer api.. I've sorta hacked together a bit of stuff, but half/most of the functions in the mixer.h header just don't seem to make sense... The *_joined() functions make no sense, what are they for? And the

Re: [Alsa-devel] Problems running latencytest: error setting freq 1024

2004-03-24 Thread Takashi Iwai
At Tue, 23 Mar 2004 22:42:05 +0100, Frank Barknecht wrote: Hallo, Paul Davis hat gesagt: // Paul Davis wrote: $ measure -p ./out/x11.png -o ./out/x11.out -c 0 -f 1024 -n 2 -t 2 I get this error message: error setting freq 1024 probably a permissions problem. try it as root. This

Re: [Alsa-devel] mixer docs or good examples?

2004-03-24 Thread Thomas Fjellstrom
On March 24, 2004 05:28 am, Thomas Fjellstrom wrote: I'm working on a little mixer app for KDE... I can't find any docs on how to use the mixer api.. I've sorta hacked together a bit of stuff, but half/most of the functions in the mixer.h header just don't seem to make sense... The *_joined()

[Alsa-devel] Minimum Period-(Fragment) Size

2004-03-24 Thread Brian Furey
Hi all, im using the ALSA driver 1.0.0 on two linux machines that connect a voice-over-ip session. I need to know the minimum fragment size that the alsa drivercan take from the soundcard and place in the sending/receiving buffer.Does it depend on the speed that the soundcard is operating at? Any

Re: [Alsa-devel] Problems running latencytest: error setting freq 1024

2004-03-24 Thread Frank Barknecht
Hallo, Takashi Iwai hat gesagt: // Takashi Iwai wrote: At Tue, 23 Mar 2004 22:42:05 +0100, Frank Barknecht wrote: mlockall(MCL_CURRENT|MCL_FUTURE)= 0 sched_get_priority_max(0x1) = 99 sched_setscheduler(0, 0x1, 0xbfffe254) = 0 open(/dev/midi0, O_RDWR) =

[Alsa-devel] problems using select() on alsa pcm.

2004-03-24 Thread James Courtier-Dutton
open pcm, and get a handle. snd_pcm_poll_descriptors(handle, pfd, err); Get a poll file scriptor in pfd. select(nfds, rfds, wfds, efds, tvp); Is it possible to use this call with alsa ? It seems that the select functions as expected with the descriptor so that we can do a snd_pcm_writei().

Re: [Alsa-devel] problems using select() on alsa pcm.

2004-03-24 Thread Paul Davis
open pcm, and get a handle. snd_pcm_poll_descriptors(handle, pfd, err); Get a poll file scriptor in pfd. select(nfds, rfds, wfds, efds, tvp); Is it possible to use this call with alsa ? select is generally deprecated in linux (linus says so!). but you can use the same pfds in select as in