Re: [Alsa-devel] ALSA driver 1.0.2c: divide by zero oops

2004-03-22 Thread Jonathan Woithe
Hi all > > I did this last night. The following is my analysis of the problem. > > With full debug selected, the only message reported by the ALSA system is > > ALSA ../alsa-kernel/core/pcm_timer.c:70: BUG? (rate != 0) > > (called from d8c33a79) > > That is, the assertion "rate!=0" fails. T

Re: [Alsa-devel] a lot of different cards and controls

2004-03-22 Thread Apostolos Dimitromanolakis
I believe better structure should be the way to go. And since you're the one writing the drivers it is better if you follow the way you find it more reasonable and better for other people to understand. Giuliano Pochini wrote: My driver is almost complete and I'm working to make it acceptable f

[Alsa-devel] Getting an ES1869 to work in a Compaq Laptop

2004-03-22 Thread Tom Watson
It looks like I have it working about 1/2 way. I compiled 1.0.3 and along with its libs and utils got it installed on a RH9 system (2.4.20). The drivers seem to load correctly, but attempts at getting the mixer to work (alsamixer) seem to die in flames. Files: >>>/etc/modules.conf: # ALSA portion

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

2004-03-22 Thread Jaroslav Kysela
On Mon, 22 Mar 2004, James Courtier-Dutton wrote: > Jaroslav Kysela wrote: > >> > >>So, when is a PCM ready? > >>If a PCM is already in SND_PCM_STATE_RUNNING, when is snd_pcm_wait() > >>supposed to return ? > > > > > > When avail >= avail_min. > > 1) Does this depend on period size in any way?

[Alsa-devel] module is not unloaded when probe fails

2004-03-22 Thread Giuliano Pochini
When I try to load a module and it fails (snd-darla20 in this case) the module is not unloaded. IIRC it didn't happen some months ago, but I have no idea what is the cause because I changed a lot of stuff in the meantime (kernel, compiler, modutils...). Is this the expected behaviour ? [EMAIL PR

Re: [Alsa-devel] module is not unloaded when probe fails

2004-03-22 Thread Carl-Daniel Hailfinger
Giuliano Pochini wrote: > > When I try to load a module and it fails (snd-darla20 in this case) the > module is not unloaded. IIRC it didn't happen some months ago, but I have no > idea what is the cause because I changed a lot of stuff in the meantime > (kernel, compiler, modutils...). Is this th

[Alsa-devel] a lot of different cards and controls

2004-03-22 Thread Giuliano Pochini
My driver is almost complete and I'm working to make it acceptable for inclusion in alsa-driver. It drives 8 different cards and it raises some problems. The main file is echoaudio.c and is contains all the control interfaces of all cards. It registers only the controls a card has at runtime, so

Re: [Alsa-devel] List of control parameters needed

2004-03-22 Thread Paul Davis
>> Where can I get the complete list of controls which an audio codec has to >> support. there is no such list. and lets get the terminology straightened out here before this goes any further. "codec" comes (in this context) from "coder/decoder". that maps roughly to what is more properly referr

[Alsa-devel] [PATCH] fixes Re: problem compiling alsa-lib CVS.

2004-03-22 Thread James Courtier-Dutton
James Courtier-Dutton wrote: I attach the output I see on the screen when running ./cvscompile. Cheers James I attach a patch to fix the problem for me. --- cvscompile 2002-10-24 13:09:30.0 +0100 +++ cvscompile.new 2004-03-22 16:58:07.072241360 + @@ -1,4 +1,9 @@ #!/bin/bash +# Minimum

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

2004-03-22 Thread James Courtier-Dutton
Jaroslav Kysela wrote: So, when is a PCM ready? If a PCM is already in SND_PCM_STATE_RUNNING, when is snd_pcm_wait() supposed to return ? When avail >= avail_min. 1) Does this depend on period size in any way? For example, if period size is 6000 frames, and I set avail_min to 2000 frames, will

[Alsa-devel] problem compiling alsa-lib CVS.

2004-03-22 Thread James Courtier-Dutton
I attach the output I see on the screen when running ./cvscompile. Cheers James Script started on Mon Mar 22 16:50:52 2004 sh-2.05b# ./cvscompile automake-1.5: configure.in: installing `./install-sh' automake-1.5: configure.in: installing `./mkinstalldirs' automake-1.5: configure.in: installing `.

Re: [Alsa-devel] List of control parameters needed

2004-03-22 Thread James Courtier-Dutton
Pavana Sharma wrote: Hello, I am trying to export the controls to user space. I want to know the complete list of controls which ALSA expects the codec to support. For example, few are as below, Master Playback Volume Master Playback Switch Tone Control - Bass Tone Control - Treble Line Capture V

Re: [Alsa-devel] List of control parameters needed

2004-03-22 Thread Giuliano Pochini
On Mon, 22 Mar 2004, Pavana Sharma wrote: > Hello, > > I am trying to export the controls to user space. I want to know the > complete list of controls > [...] > Where can I get the complete list of controls which an audio codec has > to support. There is not such a list because they depend on

Re: [Alsa-devel] List of control parameters needed

2004-03-22 Thread p z oooo
Hi, Try to look at alsa-driver/alsa-kernel/Documentation/ControlNames.txt But warning, this is not complete list, rather recomendation. Most control names folows this recomendation, but there are some controls for some soundcards, that have diffrent names. Peter Zubaj ==

[Alsa-devel] List of control parameters needed

2004-03-22 Thread Pavana Sharma
Hello, I am trying to export the controls to user space. I want to know the complete list of controls which ALSA expects the codec to support. For example, few are as below, Master Playback Volume Master Playback Switch Tone Control - Bass Tone Control - Treble Line Capture Volume Mic Capture Vo

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

2004-03-22 Thread Jaroslav Kysela
On Mon, 22 Mar 2004, Clemens Ladisch wrote: > > I have discovered a problem with xine when using it. I have done a work > > around in xine so that dmix now works in xine. I think that my > > assumptions regarding snd_pcm_wait() might have been wrong, so I want to > > get accurate details from your

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

2004-03-22 Thread Clemens Ladisch
James Courtier-Dutton wrote: > I need more details on exactly what snd_pcm_wait() is supposed to do. > The documentation on the www.alsa-project.org gives: - > Wait for a PCM to become ready. > ... > So, when is a PCM ready? When you can read/write some data without blocking, i.e., avail >= avail_

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

2004-03-22 Thread Jaroslav Kysela
yOn Sun, 21 Mar 2004, James Courtier-Dutton wrote: > I need more details on exactly what snd_pcm_wait() is supposed to do. > The documentation on the www.alsa-project.org gives: - > Wait for a PCM to become ready. > > Parameters: > pcm PCM handle > timeout maximum time in

Re: [Alsa-devel] OSS API redirector

2004-03-22 Thread Jaroslav Kysela
On Sun, 21 Mar 2004, James Courtier-Dutton wrote: > I thought of that, but with that you just get different problems. > E.g. dmix only works is all application wishing to play sound are run by > the same user. You would probably need some daemon to run the /dev/dsp, Nope. See the ipc_perm optio