[Alsa-devel] Broken links in alsa docs page

2004-06-05 Thread Giuliano Pochini
I found these broken links in the page http://www.alsa-project.org/documentation.php3 : http://www.alsa-project.org/~iwai/* http://www.alsa-project.org/~frank/alsa-sequencer/ http://www.alsa-project.org/~valentyn/* http://www.alsa-project.org/~jfulmer/alsa-faq.html -- Giuliano. -

Re: [Alsa-devel] weird xrun problem

2004-05-31 Thread Giuliano Pochini
On Wed, 26 May 2004 09:52:06 +0200 (CEST) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > > > ALSA does not know about this. All period sizes must be equal. > > > > I thought about this again. Are you sure all periods must be aqual ? > > When I record or play something using unequal periods, sound

Re: [Alsa-devel] weird xrun problem

2004-05-25 Thread Giuliano Pochini
On Sun, 23 May 2004 11:21:41 +0200 (CEST) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > On Sat, 22 May 2004, Giuliano Pochini wrote: > > > Period 0 is 6624 frames and Period 1 is 6592 frames long (32 frames > > shorter). I put some debug code and this is the output for

Re: [Alsa-devel] weird xrun problem

2004-05-23 Thread Giuliano Pochini
On Sun, 23 May 2004 11:21:41 +0200 (CEST) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > On Sat, 22 May 2004, Giuliano Pochini wrote: > > > Period 0 is 6624 frames and Period 1 is 6592 frames long (32 frames > > shorter). I put some debug code and this is the output for

[Alsa-devel] weird xrun problem

2004-05-22 Thread Giuliano Pochini
I'm getting a lot of xruns with some buffer/period sizes and it's perfectly reproducible. It happens when the buffer is divided in two periods and the second period is a bit smaller of the first one. For example: [EMAIL PROTECTED] Giu]$ aplay -v -B30 -F15 something.wav Playing WAVE 'som

Re: [Alsa-devel] preallocate_pages_for_all

2004-05-19 Thread Giuliano Pochini
On Sun, 16 May 2004 15:55:29 +0200 (CEST) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > > snd_pcm_lib_preallocate_pages_for_all() preallocates the buffers for the > > first 4 substreams by default. Can I change that number from the driver ? I > > would like to preallocate a buffer only for the firs

RE: ALSA lib application compatibility [was] Re: [Alsa-devel] mi

2004-05-18 Thread Giuliano Pochini
On 18-May-2004 Manuel Jander wrote: > Unfortunately i have to agree with Clemens. In my opinion the ALSA API > is giving the applications too much freedom in choosing parameters and > does not enforce any restrictions on hardware that can't support them. I don't thing that freedom is a bad thing

[Alsa-devel] sample rate rule problems

2004-05-16 Thread Giuliano Pochini
I'm trying to write a rule for the Layla24. That card supports all standard sample rates 8KHz-96KHz and continuous rates only in the range 25KHz-100KHz. I wrote this rule, but ALSA gets confused and it sometimes chooses a wrong value, sometimes fails. I can't figure out why. This is the rule: {

[Alsa-devel] preallocate_pages_for_all

2004-05-15 Thread Giuliano Pochini
snd_pcm_lib_preallocate_pages_for_all() preallocates the buffers for the first 4 substreams by default. Can I change that number from the driver ? I would like to preallocate a buffer only for the first subdev, or maybe for the first, the 3rd, the 5th... -- Giuliano. ---

Re: [Alsa-devel] spin_lock_irqwhat ?

2004-05-15 Thread Giuliano Pochini
On Fri, 14 May 2004 12:37:46 +0200 Takashi Iwai <[EMAIL PROTECTED]> wrote: > > > prepare and trigger callbacks are already in irq-disabled. > > > i.e. you need only spin_lock() in them. > > > > Does it mean that ALSA acquires the lock only when it calls PCM callbacks, > > that is trigger(), etc.,

[Alsa-devel] request_mem_region size

2004-05-14 Thread Giuliano Pochini
I get the size to be passed to request_mem_region() with pci_resource_len(). But that size sometimes (depends on the card) is several MBs, while the hw registers are just a few bytes above the base address. Is it ok using a fixed length ? -- Giuliano. --

Re: [Alsa-devel] spin_lock_irqwhat ?

2004-05-13 Thread Giuliano Pochini
On Mon, 10 May 2004 17:08:49 +0200 Takashi Iwai <[EMAIL PROTECTED]> wrote: > prepare and trigger callbacks are already in irq-disabled. > i.e. you need only spin_lock() in them. Does it mean that ALSA acquires the lock only when it calls PCM callbacks, that is trigger(), etc., are atomic only wr

[Alsa-devel] [PATCH] `return' with no value in pmac.c and tumbler.c

2004-05-13 Thread Giuliano Pochini
Fix for: /home/Giu/soft/alsa-driver-1.0.4/ppc/pmac.c: In function `snd_pmac_tx_intr': /home/Giu/soft/alsa-driver-1.0.4/ppc/pmac.c:702: warning: `return' with no value, in function returning non-void [...] --- ppc/pmac.c_old Thu May 13 19:49:12 2004 +++ ppc/pmac.c Thu May 13 19:49:57 200

Re: [Alsa-devel] mixer device

2004-05-13 Thread Giuliano Pochini
On 13-May-2004 Adam Tla/lka wrote: >> What do you want to do with the mixer? > Hmm - typically people just want to control PCM volume. > When using OSS you can just do mixer ioctl's on the opened PCM fd. > Simple and clear. No, it's not simple, unless the driver makes it simple removing some cap

Re: [Alsa-devel] spin_lock_irqwhat ?

2004-05-13 Thread Giuliano Pochini
On 10-May-2004 Takashi Iwai wrote: > prepare and trigger callbacks are already in irq-disabled. > i.e. you need only spin_lock() in them. [...] Fine. I moved SetSampleRate() from prepare() to the hw_params() callback because it may need to reload the firmware. -- Giuliano. -

Re: [Alsa-devel] Firmware uploader

2004-05-13 Thread Giuliano Pochini
On 10-May-2004 Takashi Iwai wrote: > At Sun, 9 May 2004 18:21:21 +0200, > Giuliano Pochini wrote: >> >> I read /linux/Documentation/firmware_class/README infos about the firmware >> loader. That loader is not used by any of the alsa drivers. Is there a >> reason

Re: [Alsa-devel] General Info. PCI Audio devices that are handled by the OpenSound OSS drivers, but not handled by ALSA.

2004-05-12 Thread Giuliano Pochini
On Wed, 12 May 2004, James Courtier-Dutton wrote: > Are you saying that Opensound OSS linux drivers support the LynxTWO, > Lynx L22 and Lynx AES16 ? I don't think so. >From www.opensound.com homepage: * OSS v3.99.1c [...] Beta drivers for LynxTWO professional soundcards announced. -- Giuli

Re: [Alsa-devel] General Info. PCI Audio devices that are handled by the OpenSound OSS drivers, but not handled by ALSA.

2004-05-12 Thread Giuliano Pochini
On Wed, 12 May 2004, James Courtier-Dutton wrote: > Just for general info. > pci10b5,1142 NOT-HANDLED "lynxone" Add the LynxTWO, Lynx L22 and Lynx AES16. LynxStudio provides programming info only under a NDA that doesn't allow the licencee to release anything in source form. -- Giuliano. -

RE: [Alsa-devel] status of powermac sound?

2004-05-12 Thread Giuliano Pochini
On 11-May-2004 Niklas Werner wrote: > Hi *, > > is there any progress on the status of full support for the newer devices > as snapper, etc (in the AlBooks,..). I'm running the 2.6.5 benh-kernel > from bitkeeper and basically the sound only works reliably when using the > oss emulation. I have a

Re: [Alsa-devel] spin_lock_irqwhat ?

2004-05-10 Thread Giuliano Pochini
On 10-May-2004 Takashi Iwai wrote: >> > Some drivers use spin_lock_irq() a lot, while others always use >> > spin_lock_irqsave(). I can't see the difference. When it's safe >> > using the _irq() version ? >> >> Only when you know that you are not in interrupt context. > > also, not in the context

Re: [Alsa-devel] How to lock the sample rate ?

2004-05-09 Thread Giuliano Pochini
On Sat, 6 Mar 2004, Jaroslav Kysela wrote: >> On the Echoaudio cards the sample rate is a global setting, so I need a way >> to prevent an app to change the rate if someone else already set it (the >> card han several devices/subdevices). I was thinking to put a simple >> "if (IsAudioOpen()) rate

[Alsa-devel] Firmware uploader

2004-05-09 Thread Giuliano Pochini
I read /linux/Documentation/firmware_class/README infos about the firmware loader. That loader is not used by any of the alsa drivers. Is there a reason ? Should I write my own custom loader or is it better using the firmware-class one ? -- Giuliano.

[Alsa-devel] spin_lock_irqwhat ?

2004-05-08 Thread Giuliano Pochini
Some drivers use spin_lock_irq() a lot, while others always use spin_lock_irqsave(). I can't see the difference. When it's safe using the _irq() version ? -- Giuliano. --- This SF.Net email is sponsored by Sleepycat Software Learn develope

Re: [Alsa-devel] busy-wait questions

2004-05-07 Thread Giuliano Pochini
On 04-May-2004 Takashi Iwai wrote: >> After a lot of cleanups and coding style changes, my driver still has some >> things that must be fixed properly. Busy-waits are one of those. >> >> The most used busy-waits have a timeout of 10ms and 100ms and they are >> called with a spinlock_irq held or fr

[Alsa-devel] busy-wait questions

2004-04-28 Thread Giuliano Pochini
After a lot of cleanups and coding style changes, my driver still has some things that must be fixed properly. Busy-waits are one of those. The most used busy-waits have a timeout of 10ms and 100ms and they are called with a spinlock_irq held or from the irq handler. With my card the longest wai

Re: [Alsa-devel] lib version?

2004-04-28 Thread Giuliano Pochini
On 28-Apr-2004 Clemens Ladisch wrote: > Steve deRosier wrote: >> Is there any way for a program to query the alsa-lib to determine >> the version number? > > The function snd_asoundlib_version() won't be available before 1.0.5. > For earlier versions, you can try to test if the symbols listed in >

Re: [Alsa-devel] What does underrun mean with aplay ?

2004-04-09 Thread Giuliano Pochini
> I have some problems with 6 channel sis 7012 device - I'm using it as 3 > stereo channels. I trigger 3 different instances of aplay at once and I get > underrun messages from aplay. > > What does this mean ? It happens because aplay can't send audio data as fast as the card needs it. > How to

Re: [Alsa-devel] Badness in remove_proc_entry

2004-04-02 Thread Giuliano Pochini
On Sun, 28 Mar 2004 09:54:46 +0200 (CEST) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > On Sat, 27 Mar 2004, Giuliano Pochini wrote: > > > I'm not sure if this is alsa's fault. It happens when I unload the module. > > Yup, snd_gina24 is the driver I'm devel

[Alsa-devel] Badness in remove_proc_entry

2004-03-27 Thread Giuliano Pochini
I'm not sure if this is alsa's fault. It happens when I unload the module. Yup, snd_gina24 is the driver I'm developing, but it also happens with snd-powermac and when I try to load a module for a card I don't have. Linux Jay 2.6.5-rc2-ben0 #1 SMP Sat Mar 27 09:10:55 CET 2004 ppc unknown Badnes

[Alsa-devel] non standard sample rate

2004-03-27 Thread Giuliano Pochini
The hw supports all standard sample rates from 8KHz to 96KHz and continuous mode, but the latter only in the range 25KHz-100KHz. What kind of constraint I have to set ? -- Giuliano. --- This SF.Net email is sponsored by: IBM Linux Tutorials

RE: [Alsa-devel] Current Hardware Parameter Settings

2004-03-26 Thread Giuliano Pochini
On 25-Mar-2004 Brian Furey wrote: > Thanks Giuliano, > > How can I get a dump of the current hardware configuration space? Hmm, lspci ? :) If you mean how to get the capabilities of the card, it's a bit tricky. The caps are not a static thing. Each setting may rure others. For example, a card ha

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

2004-03-25 Thread Giuliano Pochini
On 24-Mar-2004 Brian Furey wrote: > 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 driver can take from the soundcard and place in the > sending/receiving buffer. Does it depend on the

[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

[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 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] PCM hw mixing with volume

2004-03-11 Thread Giuliano Pochini
On 10-Mar-2004 Ove Kaaven wrote: >> Uhm... I think first of all we need a way to know how many >> virtual channels are available (hw and sw) > > For the EMU10K1, snd_pcm_info_get_subdevices_count() and > snd_pcm_info_get_subdevices_avail() works for me. But I suppose you're > right that this isn'

Re: [Alsa-devel] PCM hw mixing with volume

2004-03-10 Thread Giuliano Pochini
On 10-Mar-2004 Ove Kaaven wrote: > Well, the requirements that raised this thread should be fairly clear. > For example, > > ALTERNATIVE 1 > > snd_pcm_set_volume(snd_pcm_t* pcm, int volume) > > and > > snd_pcm_set_pan(snd_pcm_t* pcm, int pan) > > using whatever value range makes the most sense, a

Re: [Alsa-devel] PCM hw mixing with volume

2004-03-10 Thread Giuliano Pochini
On 09-Mar-2004 Ove Kaaven wrote: > Independently? No, our software mixing code resamples, adjusts volume, > and mixes the stream into the buffer in one step. It should be more efficient than separate passes. It minimizes memory i/o and some operation (multiply-add == volume-mix) can be done nati

Re: [Alsa-devel] How to lock the sample rate ?

2004-03-08 Thread Giuliano Pochini
On 06-Mar-2004 Adam Tla/lka wrote: >> > On the Echoaudio cards the sample rate is a global setting, so I need a way >> > to prevent an app to change the rate if someone else already set it (the >> > card han several devices/subdevices). I was thinking to put a simple >> > "if (IsAudioOpen()) rate

[Alsa-devel] How to lock the sample rate ?

2004-03-06 Thread Giuliano Pochini
On the Echoaudio cards the sample rate is a global setting, so I need a way to prevent an app to change the rate if someone else already set it (the card han several devices/subdevices). I was thinking to put a simple "if (IsAudioOpen()) rate_min=rate_max=current_rate;" in pcm_open callback, but

Re: [Alsa-devel] PCM questions

2004-03-05 Thread Giuliano Pochini
On 04-Mar-2004 Takashi Iwai wrote: >> > > It is wavetable synthesizer API not PCM API. This part of ALSA is still >> > > in the development phase. >> > >> > But when that gets fully developed, would I have to use the rawmidi API >> > to do this then? >> >> I think that sequencer API is more appro

Re: [Alsa-devel] Scatter Gather

2004-03-02 Thread Giuliano Pochini
On 02-Mar-2004 Manuel Jander wrote: >> Yes. Every driver using SG must do this. Look into bt87x.c or >> via82xx.c for examples. > > Well, i guess in that case the period size loses any relevance in > terms of efficiency. Efficiency about what ? If the hardware can be programmed to use any pe

Re: [Alsa-devel] Re: The obsolence of OSS, Was: big smile

2004-02-25 Thread Giuliano Pochini
On 25-Feb-2004 Adam Tla/lka wrote: > On Tue, Feb 24, 2004 at 10:54:58PM +0100, Benno Senoner wrote: >> for those that are too lazy to browse the forums: >> >> http://www.4front-tech.com/forum/viewtopic.php?t=25 >> - >> >> far more advanced ??? >> Ok I'd like see Ardour runnnig with multip

Re: [Alsa-devel] Dma query

2004-02-25 Thread Giuliano Pochini
On Wed, 25 Feb 2004, Gupta, Kshitij wrote: > hi, > I have a very trivial question about the dma transfers with respect > to ALSA framework. > > Let me first explain a scenario > We have a Circularly linked Buffer pool > > buf1buf2buf3 buf4 bufn > > In very simple terms pl

Re: [Alsa-devel] big smile

2004-02-24 Thread Giuliano Pochini
> > Is there a list anywhere listing the differences between OSS and ALSA > > with regard to sound card hardware. > > It would be nice to have a nice small list of all the sound hardware OSS > > supports, but ALSA does not. > > Then the intention would be to reduce that list to no entries by > >

[Alsa-devel] [PATCH] hdsp snd_assert

2004-02-22 Thread Giuliano Pochini
--- pci/rme9652/hdsp.c_old Sun Feb 22 15:52:59 2004 +++ pci/rme9652/hdsp.c Sun Feb 22 15:57:43 2004 @@ -3810,8 +3810,8 @@ { int mapped_channel; -snd_assert(channel >= 0 || channel < hdsp->max_channels, return NULL); - + snd_assert(channel >= 0 && channel <

[Alsa-devel] CARDBUS problems

2004-02-10 Thread Giuliano Pochini
I have problems running my driver with a Layla24-CARDBUS card. The same driver works fine with the PCI version of the card and the manufacturer says they're identical. Is there something I have to take care of in case the card is connected to the CARDBUS port ? -- Giuliano. ---

Re: [Alsa-devel] Problem compiling for linux 2.6

2004-01-30 Thread Giuliano Pochini
On Thu, 29 Jan 2004 14:38:14 +0100 Takashi Iwai <[EMAIL PROTECTED]> wrote: > note that --with-isapnp is ignored on 2.6 kernel. > the isapnp support depends only on the kernel itself. Ok, I used that option only to avoid compiling useless stuff. > does the attached patch work? Yes it works. I co

[Alsa-devel] Problem compiling for linux 2.6

2004-01-29 Thread Giuliano Pochini
It fails at line #113 of /Makefile : @for d in $(SUBDIRS); do if ! $(MAKE) -C $$d prepare; then exit 1; fi; done I have no idea why $(SUBDIRS) is an empty string: [EMAIL PROTECTED] alsa-driver-1.0.2]$ ./cvscompile --with-cards=powermac --with-isapnp=no --with-sequencer=no --with-oss=n

[Alsa-devel] Soundcard Matrix guidelines ?

2004-01-26 Thread Giuliano Pochini
Who is the maintainer of the soundcard matrix ? What is the preferred format for sending him updates ? -- Giuliano. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the brea

RE: [Alsa-devel] Lynx AES16 driver

2004-01-20 Thread Giuliano Pochini
On 19-Jan-2004 Michal Kostrzewa wrote: > Hello, > > Please help me in that license related case: > I want to write a Lynx AES16 (http://www.lynxstudio.com/aes16.html) ALSA > driver (I'm from Warsaw University of Technology and we want to use this > card in our investigations). I wrote to Lynxstudi

[Alsa-devel] Soundcard matrix update

2004-01-17 Thread Giuliano Pochini
Attached is an update to the current status of the driver for Echoaudio cards. That page is now generated dynamically and I don't know what format do you prefer. I just grabbed the page and edited it. -- Giuliano. Title: Advanced Linux Sound Architecture - Soundcard Matrix

[Alsa-devel] Unique card identifier ?

2004-01-04 Thread Giuliano Pochini
I have to save the settings of the mixer and I need a unique name for each card. Does snd_ctl_card_info_get_id() return different ids if there are two identical cards ? -- Giuliano. --- This SF.net email is sponsored by: IBM Linux Tutorials. B

Re: [Alsa-devel] Query devices in a non-blocking fashion

2003-12-10 Thread Giuliano Pochini
On 08-Dec-2003 Arve Knudsen wrote: > Wether its done via the control or pcm interface, it'd be good to have a > loose coupling between configuration and streams, so one could could access > configuration space without locking a stream don't you think? Yes, of course. Perhaps it can be done alread

Re: [Alsa-devel] Query devices in a non-blocking fashion

2003-12-08 Thread Giuliano Pochini
On Sun, 07 Dec 2003 14:19:28 -0500 Paul Davis <[EMAIL PROTECTED]> wrote: > i personally am heading towards believing that we made a design > decision that was wrong here. i now tend to think that the PCM > interface should not be involved with configuring the hardware at all, > and that this shoul

Re: [Alsa-devel] hint needed

2003-12-06 Thread Giuliano Pochini
On Sat, 6 Dec 2003, Jaroslav Kysela wrote: > See alsa-kernel/pci/ens1370.c and alsa-kernel/pci/ens1371.c for an elegant solution. Tnx. -- Giuliano. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help yo

[Alsa-devel] hint needed

2003-12-06 Thread Giuliano Pochini
Echoaudio cards are grouped into two families: EchoGals (the old discontinued serie) and the Echo24. The driver is almost identical for both families, but some constants define at compile time. I currently select the family by a hack in the makefile: ifneq ($(CONFIG_SND_GINA24),) EXTRA_CFLAGS +=

Re: [Alsa-devel] Can't set 88.2/96kHz samplerate with Hammerfall

2003-12-05 Thread Giuliano Pochini
> Actually, I'm not completely opposed to the idea. But I am totally > clueless when it comes to writing device drivers, and would have no > idea where to start. Start here: http://www.alsa-project.org/documentation.php3#Driver You don't have to start writing the driver from scratch. You only ha

[Alsa-devel] utils/mod-deps

2003-11-26 Thread Giuliano Pochini
The executable utils/mod-deps shouldn't be shipped with the alsa-driver tarball. It's an x86 binary and it makes cvscompile to fail on other platforms. -- Giuliano. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceF

Re: [Alsa-devel] config problem

2003-11-26 Thread Giuliano Pochini
On Tue, 25 Nov 2003 20:09:57 +0100 Takashi Iwai <[EMAIL PROTECTED]> wrote: > for building multiple drivers with a common core/library module, you > can find an example in isa/sb directory. there snd-sb-common is > shared among several different top-level modules. (usually, the > common module is

Re: [Alsa-devel] .dimen order ?

2003-11-26 Thread Giuliano Pochini
On Mon, 24 Nov 2003 21:25:00 +0100 (CET) Jaroslav Kysela <[EMAIL PROTECTED]> wrote: > On Mon, 24 Nov 2003, Giuliano Pochini wrote: > > > snd_ctl_elem_info_t.dimen contains the dimensions of the array of > > controls. AFAIK there are no drivers which use that feature (b

[Alsa-devel] config problem

2003-11-25 Thread Giuliano Pochini
My driver supports several different cards of the same series. Most of the code is common for all cards, so I put the code which is not common into separate .c files. Well, now I need a way to tell make what is the card I want the driver for. -- Giuliano. ---

[Alsa-devel] .dimen order ?

2003-11-24 Thread Giuliano Pochini
snd_ctl_elem_info_t.dimen contains the dimensions of the array of controls. AFAIK there are no drivers which use that feature (but mine) to look for examples. We have to agree about the order of them: Array[d0][d1][d2][d3] or Array[d3][d2][d1][d0] I used the first one. Is it ok ? -- Giulian

[Alsa-devel] Small controls bug

2003-11-23 Thread Giuliano Pochini
If I try to register two different controls which have the same name, it does not fails very nicely. It does not call the .dev_free callback and it doesn't free a lot of stuff: Nov 22 23:55:53 localhost kernel: ALSA ../alsa-kernel/core/memory.c:81: kmalloc(5) from e501bc78 not freed Nov 22 23:55

Re: [Alsa-devel] Syncronous start and stop

2003-11-18 Thread Giuliano Pochini
On 15-Nov-2003 Jaroslav Kysela wrote: > On Sat, 15 Nov 2003, Giuliano Pochini wrote: > >> My hardware can start/stop multiple indipendent substreams at the same time. >> Does the ALSA driver API support that feature ? > > Yes, use snd_pcm_set_sync() function in open() ca

[Alsa-devel] Syncronous start and stop

2003-11-15 Thread Giuliano Pochini
My hardware can start/stop multiple indipendent substreams at the same time. Does the ALSA driver API support that feature ? -- Giuliano. --- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access you

Re: [Alsa-devel] Unexpected hw_pointer value

2003-10-05 Thread Giuliano Pochini
On Sat, 4 Oct 2003 16:58:12 -0500 Ryan Underwood <[EMAIL PROTECTED]> wrote: > > i have an ES1983S Maestro-3i on a c600 dell laptop > > i got this message in syslog : > > > > ALSA sound/core/pcm_lib.c:214: Unexpected hw_pointer value (stream = 0, > > delta: -944, max jitter = 1024): wrong interrupt

RE: [Alsa-devel] recording issues

2003-10-02 Thread Giuliano Pochini
On 01-Oct-2003 Nathaniel Gray wrote: > My sound card uses different devices for capture (device 0) and playback > (device 1). I have two issues with capture right now: > > 1. If I do something like: > arecord -f dat -D hw:0,1 -d 5 foo.wav > it seems to record for much longer than 5 secon

Re: [Alsa-devel] The best-supported Pro Audio device?

2003-08-28 Thread Giuliano Pochini
On 28-Aug-2003 Jaroslav Kysela wrote: >> >>--*-- What is the best-supported *Pro Audio* device in terms of solid ALSA dri >> >>ver support? Not interested in Sound Blasters and chips on the motherboard -- >> >> something along the lines of the Echo, M-Audio, or RME products. But the ALS >> >>A d

Re: [Alsa-devel] The best-supported Pro Audio device?

2003-08-28 Thread Giuliano Pochini
On 28-Aug-2003 Paul Davis wrote: >>--*-- What is the best-supported *Pro Audio* device in terms of solid ALSA dri >>ver support? Not interested in Sound Blasters and chips on the motherboard -- >> something along the lines of the Echo, M-Audio, or RME products. But the ALS >>A drivers need to be

[Alsa-devel] Unexpected hw_pointer value

2003-08-14 Thread Giuliano Pochini
When I play something, depending on the buffer length and the period length, sometimes ALSA complaints about a wrong hw_pointer value. pcm_hw_pointer() returns the right value and the irq handler (not shown below) calls snd_pcm_period_elapsed() only when the period is done. I can't understand what

[Alsa-devel] To the ALSA-stable maintainer

2003-08-14 Thread Giuliano Pochini
Please do not include the utils/mod-deps x86 binary executable in the stable alsa-driver tarballs. cvscompile silently fails on non-x86 platforms. -- Bye. Giuliano. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites includin

Re: [Alsa-devel] anybody else OK with current CVS *and* SMP?

2003-08-14 Thread Giuliano Pochini
On 05-Aug-2003 Antti Boman wrote: > This seems like the problem I've always had with my single processor > with JACK and SCHED_FIFO, with 2.4.20 kernel. I haven't tried the > realtime setting for a while, though. > > Maybe there's some other thing causing these? Should we gather a bit > more in-de

Re: [Alsa-devel] ring buffer pointer accuracy.

2003-07-14 Thread Giuliano Pochini
On 14-Jul-2003 James Courtier-Dutton wrote: >>>Worst case accuracy is about one period AFAIK. It depends on the sound chip >>>because the low level driver reads the DMA pointer (or something) from some >>>hardware register or it can know the DMA pointer when it receives an interrupt >>>at the end

[Alsa-devel] [PATCH] snd_ctl_elem_info_get_dimension? fixes

2003-07-13 Thread Giuliano Pochini
It's against alsa-lib 0.9.5. It also applies to the CVS version because the files are identical. --- ./src/control/control.c_old Sun Jul 13 14:01:10 2003 +++ ./src/control/control.c Sun Jul 13 14:09:31 2003 @@ -1699,10 +1699,10 @@ assert(obj); if (obj->access & SNDRV_CTL_ELE

Re: [Alsa-devel] ring buffer pointer accuracy.

2003-07-11 Thread Giuliano Pochini
On Thu, 10 Jul 2003 16:31:28 +0100 James Courtier-Dutton <[EMAIL PROTECTED]> wrote: > Hi, > > When an application reads the "avail" or "delay" pcm values: - > 1) how accurate are they? > 2) does the accuracy depend on the sound card driver being used. Worst case accuracy is about one period AFAIK

RE: [Alsa-devel] [App development] - Need list of hardware devic

2003-07-11 Thread Giuliano Pochini
On 09-Jul-2003 Garrett Kajmowicz wrote: > I'm just begining my first ALSA application. As a part of the GUI I need to > prompt the user to select from a list the soundcard and input device for both > recording and playback. How would you suggest doing this? Examples welcome. Try this: int er

[Alsa-devel] midi test program

2003-07-01 Thread Giuliano Pochini
I'm looking for a small program that reads and writes a few bytes through the midi port. -- Bye. Giuliano. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are availab

[Alsa-devel] wrong irq ?!?

2003-06-30 Thread Giuliano Pochini
A fellow testing my driver has a strange problem. lspci shows the card is attached to IRQ10, but the driver reads IRQ5 instead. He has another soundchip (CMI-something) which uses IRQ5. My driver follows the tutorial by tiwai closely and it's nearly identical to a lot of other drivers. Any ideas,

RE: [Alsa-devel] Test Report: snd-asihpi with an ASI6114

2003-06-26 Thread Giuliano Pochini
On 26-Jun-2003 Fred Gleason wrote: > I've got things working with my ASI6114. Playback works well. > > Alsamixer shows me a bewildering array of controls, few of which seem to > do anything. How do I control stream levels? I don't know that chip, but the names of the controls should be self-exp

Re: [Alsa-devel] future ALSA development

2003-06-24 Thread Giuliano Pochini
On 23-Jun-2003 Takashi Iwai wrote: > At Sun, 22 Jun 2003 21:10:31 +0200 (CEST), > Jaroslav wrote: >> >> Hello all, >> >> here are my next goals for the ALSA library development (short >> term). I invite all developers to comment these directions. >> >> * create ordinary pcm & mixer interfa

Re: [Alsa-devel] Lynx Studio LynxTwo/L22 Driver

2003-06-23 Thread Giuliano Pochini
On 23-Jun-2003 D. Sen wrote: > Here's a question > > Does Alsa drivers *have* to be in source code form? Can someone not > release an object file for linking ALSA is GPL. If you use any part of it (e.g. header files) then the driver must be GPL too. You can workaround this, but it's extr

Re: [Alsa-devel] Lynx Studio LynxTwo/L22 Driver

2003-06-23 Thread Giuliano Pochini
Docs/drivers for the LynxTwo are released only under NDA, and the agreement doesn't allow the subscriber to release a driver in source code form. I don't thing you'll see an ALSA driver for that card anytime soon. -- Bye. Giuliano. On Sun, 22 Jun 2003 10:07:11 +1000 "D. Sen" <[EMAIL PROTEC

Re: [Alsa-devel] Fwd: RE: To ESS Tech Support

2003-06-19 Thread Giuliano Pochini
On 18-Jun-2003 Warren Turkal wrote: > Any suggestions on how? Ask him the address of his boss. Bye. --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Server

Re: [Alsa-devel] MIDI and PCMCIA

2003-06-17 Thread Giuliano Pochini
On sab, 2003-06-14 at 22:06, Paul Davis wrote: > > > >Some of the cards by Echoaudio have a midi port, but it's not MPC401 > >compatible. The card has two tiny buffers to send and receive bytes. Where > >can I get infos, sample code, etc. to add midi support to my driver ? > >The Layla24 also exist

[Alsa-devel] MIDI and PCMCIA

2003-06-14 Thread Giuliano Pochini
Some of the cards by Echoaudio have a midi port, but it's not MPC401 compatible. The card has two tiny buffers to send and receive bytes. Where can I get infos, sample code, etc. to add midi support to my driver ? The Layla24 also exists in PCMCIA edition. Just like above, I need docs... Tnx. --

Re: [Alsa-devel] problems with rme digi96/8

2003-06-12 Thread Giuliano Pochini
On 12-Jun-2003 Jaroslav Kysela wrote: > On 12 Jun 2003, Gorm David Lai wrote: > >> I tried your example. Aplay is rather stupid, so it is seems it needs a > > Not too stupid, but you should use right device (plughw vs. hw) and > probably right alsa-lib configuration (~/.asoundrc). The format writ

[Alsa-devel] Power saving mode

2003-06-11 Thread Giuliano Pochini
My card which can enter a low power state. It turns off some components but it leaves the PCI bus interface active. To bring the card back to life it has to be reinitialized from scratch. What "D" state is it ? PCI power management papers say that already in D1 state i/o space is disabled. I'm a

RE: [Alsa-devel] Regarding ALSA-LIBRARY

2003-06-11 Thread Giuliano Pochini
On 11-Jun-2003 Sundaranathan S wrote: > Hi All, > > Can anyone tell me how to test alsa-lib APIs. If there is any > documentation available please let me know. Yes, the official documentation is here: http://www.alsa-project.org/documentation.php3 Bye. --

Re: [Alsa-devel] make dep

2003-06-09 Thread Giuliano Pochini
On 09-Jun-2003 Jaroslav Kysela wrote: > >> How can I tell "make dep" to ignore some of the files listed in >> "snd-mychip-objs" ? > > It is not possible. Could you send me your code? I will try to look what > is wrong. There's nothing wrong. The driver is based on the C++ code written by the manu

[Alsa-devel] make dep

2003-06-08 Thread Giuliano Pochini
How can I tell "make dep" to ignore some of the files listed in "snd-mychip-objs" ? Bye. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you

Re: [Alsa-devel] build changes

2003-06-06 Thread Giuliano Pochini
On mer, 2003-06-04 at 17:17, Takashi Iwai wrote: > At Wed, 04 Jun 2003 17:57:32 +0200 (CEST), > > wouldn't it better to put another Makefile in sub directories? Sure. I followed the instrutions you wrote here a couple of months ago. When I do cvscompile --with-cards=powermac,echoaudio[...] it stop

Re: [Alsa-devel] build changes

2003-06-05 Thread Giuliano Pochini
On 04-Jun-2003 Jaroslav Kysela wrote: >> I tried to replace Rules.make with an older version and it works >> fine. How do I compile the driver for 0.9.4+ ? I also would like >> to group all files in a subdir. > > Do you have a file alsa-driver/pci/echoaudio.patch? Yes... I removed it and now it

[Alsa-devel] build changes

2003-06-04 Thread Giuliano Pochini
In v0.9.4 Rules.make changed. I used to put the files of my driver in the alsa-driver-xxx/pci directory, but they don't compile anymore: bash-2.05$ make Coping file alsa-kernel/core/pci/echoaudio.c cp: cannot stat `/home/pochini/soft/alsa-driver-0.9.4/alsa-kernel/pci/echoaudio.c': No such file o

Re: [Alsa-devel] How to debug ?

2003-04-03 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: >> Yes, otherwise snd_pcm_lib_malloc_pages() fails and hw_params >> callback exits with an error. > > ok, then something overwrites the entry. > how about to check runtime->dma_area at each callback? Bug found. Alsaplayer calls hw_params two times with different

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: >> > anyway, runtime->dma_area and runtime->dma_bytes MUST be filled >> > manually IFF you don't use snd_pcm_lib_malloc_pages(). >> > (dma_area won't be needed if the mmap is not supported and copy >> > callback is defined, though.) >> >> I use snd_pcm_lib_malloc

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: > sorry, which fields do you mean exactly? > runtime->private_data and runtime->hw ? Yes. > anyway, runtime->dma_area and runtime->dma_bytes MUST be filled > manually IFF you don't use snd_pcm_lib_malloc_pages(). > (dma_area won't be needed if the mmap is not s

Re: [Alsa-devel] How to debug ?

2003-04-02 Thread Giuliano Pochini
On 02-Apr-2003 Takashi Iwai wrote: >> I don't set .copy callback and ->dma_area should be 0 because the card >> uses a sg-list. #:( > > no, dma_area should not be zero. you shouldn't change the value, if > you use snd_pcm_lib_malloc_pages(). in the case of sg-buffer, > dma_area will hold the vir

Re: [Alsa-devel] How to debug ?

2003-04-01 Thread Giuliano Pochini
> My driver do not work anymore with xmms (alsa-xmms plugin) and > alsaplayer. [...] I tried to force the alsaplayer plugin to set S16_LE format (data is BE on powerpc) and it do not spit that errors anymore, but it do not play anything and in the logs alsa prints: ALSA ../alsa-kernel/core/pcm_l

[Alsa-devel] How to debug ?

2003-04-01 Thread Giuliano Pochini
My driver do not work anymore with xmms (alsa-xmms plugin) and alsaplayer. I have no idea when that happened because I always use alsa-utils to make tests and I made a lot of changes since the last time I tested xmms and ap. Alsaplayer writes this: [EMAIL PROTECTED] Giu]$ alsaplayer ALSA lib pcm

  1   2   >