[Alsa-devel] Re: [Alsa-devel] lockup ice1712 cs8427

2001-11-08 Thread [EMAIL PROTECTED]

Lockup with cs8427 and Abit VP6 still remains with alsa0.9beta9;
I made tries - keeping only audio device on - working on irq resources, 
but still no chance. I do have more informations though. Launching 
amixer contents on all the numIDs, I found that system locks up on the 
first one, that is 'IEC958 CS8427 Input Status'. I ask if there is a 
problem on snd_i2c_lock (btw is it possible a debug-patch on the 
function?), or on the address of CS8427 which is fixed. 
All the other contents return easily the values. 
Are there any little program which scans and probes CS8427 address?

Thank you for help
Paolo






> > > ABit VP6 Via Chipset  two Pentium III kernel 2.4.13-
2mdksmp (apm off),
> > > Terratec EWX24/96.
> Hmm... my problems are on a VP6 with two Pentium III's and the lock up
> problem is very similar. I have a PCI64, though (ens1370).
> 
> > The card works fine on my machine.  IIRC there was a lock-up problem
> > sometime ago but already resolved.
> What hardware do you have it working with?
> 
> > Can you try the latest release, 0.9.0 beta9?
> I'm up to beta 8a myself but have had the problem all the way through
> since the early betas. I will upgrade and check.
> 
> Ben
–Ɲz÷¥™¨¥Šx%ŠË@–Ɲz÷¥–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèý©liׯz


[Alsa-devel] Re: [Alsa-devel] Freeze on SMP with Alsa-0.9.0 CVS

2001-11-29 Thread [EMAIL PROTECTED]

Freeze on SMP with Alsa-0.9.0 CVS

So that the problem has ran out as an non-hardware specific, - few weeks 
ago we were searching for incompatibility between Abit VP6 and 
alsa-0.9beta > than beta7, which is working - I ask if anyone had an 
idea for re-reading lowlevel code (i2c and cs8427.h for my card 
EWX24/96) since it is responsible for system calls in kernel space. 
Maybe a broken reference to some address? I think hacking lowlevel 
drivers would be easier than patching kernel-smp. Anyway a "syscall" to 
Kernel developers would be fine for everyone. 

GreatALSA!

- Paolo
[uëޖf¢–)à–+-[uëޖX¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ߣö¥±§^½é


[Alsa-devel] Re: [Alsa-devel] Freeze on SMP with Alsa-0.9.0 CVS

2001-11-29 Thread [EMAIL PROTECTED]

Freeze on SMP with Alsa-0.9.0 CVS

So that the problem has ran out as an non-hardware specific, - few weeks 
ago we were searching for incompatibility between Abit VP6 and 
alsa-0.9beta > than beta7, which is working - I ask if anyone had an 
idea for re-reading lowlevel code (i2c and cs8427.h for my card 
EWX24/96) since it is responsible for system calls in kernel space. 
Maybe a broken reference to some address? I think hacking lowlevel 
drivers would be easier than patching kernel-smp. Anyway a "syscall" to 
Kernel developers would be fine for everyone. 

GreatALSA!

- Paolo
[uëޖf¢–)à–+-[uëޖX¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ߣö¥±§^½é


[Alsa-devel] Re: [Alsa-devel] Freeze on SMP with Alsa-0.9.0 CVS

2001-12-01 Thread [EMAIL PROTECTED]

HELP !!! Still freeze on smp-machine with card Terratec ewx24/96 
ice1712. Any patch for this card. I suspect here too there is a 
problem of spin_unlock.

Thank you.

Paolo


> Fixed.
> 
> 
> Jaroslav Kysela produced a patch that fixed this problem perfectly. It
> seems to be a spinlock problem.
> 
> The patch is now available from the CVS archive.
> 
> 
> Thanks a lot to Jaroslav 
> -- 
> Emmanuel
> 
> Either
> 
> (a) Solaris has solved the faster-than-
light problem, and Sun engineers
> should get a Nobel prize in physics or something.
> 
> (b) Solaris "scales" by being optimized for 1 entries, and not
> speeding up sufficiently for a small number of entries.
> 
> You make the call.
>-- Linus Torvalds
> 
> 
> ___
> Alsa-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
> [uëޖf¢–)à–+-[uëޖX¬¶Ë(º·~Šàzw­†Ûi³ÿåŠËl²‹«qç讧zßåŠËlþX¬¶)ߣö¥±§^½é


[Alsa-devel] Re: Re: [Alsa-devel] Freeze on SMP with Alsa-0.9.0 CVS

2001-12-02 Thread [EMAIL PROTECTED]

Emmanuel wrote:
 
> Did you tried to get the last CVS archive ?

Yes, following your advice, I downloaded the brand new tree and 
compiled it. SMP Abit VP6 with 2 PIII locks up whenever I launch the 
first numID of amixer contents (it makes search for configuration of 
cs8427 chip -Cirrus Logic-), or whenever launching any sound 
application: mpg123, kmid, kmidi, alsaplayer, aplay, xmms, everything. 
I have Kernel 2.4.7 RedHat 7.2 

> What sort of freeze are you getting ? (what software are running, is i
t
> reproducible easily

It freezes completely, I can not use mouse or keyboard. How did you do 
to get consolle over net? (lp0 or eth0?) Do I have to set up a network 
to get system calls? 

Card works with nosmp-option however, so it seems much like problem you 
had. Please HELP !

- Paolo –Ɲz÷¥™¨¥Šx%ŠË@–Ɲz÷¥–+-²Ê.­ÇŸ¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèý©liׯz


Re: [Alsa-devel] EWS64XL: cs4232 alsa driver is no more workingwith Alsa 0.9.0beta12 and Sam9407 driver , Alsa0.5.x worked fine

2002-03-08 Thread [EMAIL PROTECTED]

Hello


Ok, now i tried the CS4236 driver,
but i get still the same errors.


I think its a bug, something is really messed up.
I also tried the old ALSA 0.5.x drivers again but i get the same errors now.
It must have something to do with the upgrade from Kernel  2.4.9 to 2.4.18, 
because now, no version from ALSA works anymore, no ALSA 0.9.x and no ALSA 
0.5.x

As i said in the mail before ALSA 0.5.x worked with Kernel 2.4.9.


These are the messages i get when trying to load the modules when using the 
newest ALSA 0.9.x version.


---
$ modprobe snd-cs4236
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: init_module: No 
such device
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: Hint: insmod errors 
can be caused by incorrect module parameters, including invalid IO or IRQ 
parameters
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: insmod 
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o failed
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: insmod snd-cs4236 
failed




$ insmod snd-cs4236
Using /lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_cs4236_create_R8f80cf2a
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_cs4236_mixer_R1da3cb4a
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_cs4231_timer_Rd7b3a479
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_opl3_create_R7cfd1ec5
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_opl3_hwdep_new_R0cd48230
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_cs4236_pcm_Rf5217338
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4236.o: unresolved symbol 
snd_mpu401_uart_new_R606a10b8
---
 $ modprobe snd-cs4232
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: init_module: No 
such device
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: Hint: insmod errors 
can be caused by incorrect module parameters, including invalid IO or IRQ 
parameters
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: insmod 
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o failed
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: insmod snd-cs4232 
failed


--
$  insmod snd-cs4232
Using /lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_cs4231_timer_Rd7b3a479
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_opl3_create_R7cfd1ec5
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_opl3_hwdep_new_R0cd48230
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_cs4231_mixer_Rb6145477
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_cs4231_pcm_R6e831eea
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_mpu401_uart_new_R606a10b8
/lib/modules/2.4.18/kernel/sound/isa/cs423x/snd-cs4232.o: unresolved symbol 
snd_cs4231_create_R1b369888



Can someone help me with this problem?

Best Regards,
 Oliver C.



___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] yeni portaliniz: www.interfinal.com - sohbet,eglence,arkadas ara,oyunlar ve daha neler...

2002-04-13 Thread [EMAIL PROTECTED]


yeni portaliniz: www.interfinal.com - türkçe, almanca, ingilizce

Hizmetlerimiz:

interfinal-Chat
Genç ve genç kalanlar için sempatik chat. Konu, bölge ve yas gruplarina göre 
hazirlanan chat odalarinda sohbet için yüzlerce chatçi bulusuyor.

Seri ilanlar
Ucuz müzik seti mi ariyorsunuz? Sevmediginiz dogum günü hediyenizi elden çikarmak mi 
istiyorsunuz? En sevdiginiz lektürün özel yayinini mi ariyorsunuz? O zaman mutlaka 
seri ilan bölümünü gözden geçiriniz. Burada kalbinizin arzuladigi herseyi alabilir ve 
satabilirsiniz.

Interfinal sari sayfalar,
tüm dünyadaki firma ve sirketler için merkezi ticaret portali sunar.
Rehberimiz firmalar ve sirketler hakkinda adresler, telefon numaralari, web siteleri, 
logolar, reklamlar gibi bir çok degerli enformasyon ve daha bir çok sey içerir.

Rüyalarinizdaki arabayi mi ariyorsunuz?
O zaman belki burada yeni otomobilinizi bulacaksiniz.
Biz size, özel ve ticari otomobilleri sunabileceginiz ve arayabiliceginiz veri 
bankamizi ücretsiz sunuyoruz.

Rüyalarnizdaki partneri mi ariyorsunuz?
Yalniz kalpleri de unutmadik. Rüyalarindaki partneri arayan herkese single borsamizi 
sunuyoruz. Belki Mr. Right ya da Mrs. Right'i tam burada bulacaksiniz.
Sadece serbest vakit aktiviteleri için partner ariyorsaniz da singellerimizi ziyaret 
etmenizi tavsiye ederiz.

Tavla - Bilardo - Batak - Okey Degisiklik mi ariyorsunuz? Yoksa oyun mu oynamak 
istiyorsunuz? Interfinal'in oyunlariyla hiçbir zaman sIkIlmazsiniz. Internet'ten 
dünyanin diger ucunda bulunan arkadaslarla oynayabilirsiniz! Ilk 10'a kadar ulasiniz. 
Oynarken oyunda bulunanlarla sohbet bile etmek mümkün.
 interfinal'de daha çok hizmetler bulacaksiniz...

Resmi açilisimiz 29. Mart 2002 idi (daha çok yeniyiz ama çok iddialiyiz..., gelin 
kendiniz görün)

http://www.interfinal.kunde.sserv.de/index.php?set_lang=tr (türkce)

http://www.interfinal.de (almanca)





___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] yeni portaliniz: www.interfinal.com - sohbet,eglence,arkadas ara,oyunlar ve daha neler...

2002-04-13 Thread [EMAIL PROTECTED]


yeni portaliniz: www.interfinal.com - türkçe, almanca, ingilizce

Hizmetlerimiz:

interfinal-Chat
Genç ve genç kalanlar için sempatik chat. Konu, bölge ve yas gruplarina göre 
hazirlanan chat odalarinda sohbet için yüzlerce chatçi bulusuyor.

Seri ilanlar
Ucuz müzik seti mi ariyorsunuz? Sevmediginiz dogum günü hediyenizi elden çikarmak mi 
istiyorsunuz? En sevdiginiz lektürün özel yayinini mi ariyorsunuz? O zaman mutlaka 
seri ilan bölümünü gözden geçiriniz. Burada kalbinizin arzuladigi herseyi alabilir ve 
satabilirsiniz.

Interfinal sari sayfalar,
tüm dünyadaki firma ve sirketler için merkezi ticaret portali sunar.
Rehberimiz firmalar ve sirketler hakkinda adresler, telefon numaralari, web siteleri, 
logolar, reklamlar gibi bir çok degerli enformasyon ve daha bir çok sey içerir.

Rüyalarinizdaki arabayi mi ariyorsunuz?
O zaman belki burada yeni otomobilinizi bulacaksiniz.
Biz size, özel ve ticari otomobilleri sunabileceginiz ve arayabiliceginiz veri 
bankamizi ücretsiz sunuyoruz.

Rüyalarnizdaki partneri mi ariyorsunuz?
Yalniz kalpleri de unutmadik. Rüyalarindaki partneri arayan herkese single borsamizi 
sunuyoruz. Belki Mr. Right ya da Mrs. Right'i tam burada bulacaksiniz.
Sadece serbest vakit aktiviteleri için partner ariyorsaniz da singellerimizi ziyaret 
etmenizi tavsiye ederiz.

Tavla - Bilardo - Batak - Okey Degisiklik mi ariyorsunuz? Yoksa oyun mu oynamak 
istiyorsunuz? Interfinal'in oyunlariyla hiçbir zaman sIkIlmazsiniz. Internet'ten 
dünyanin diger ucunda bulunan arkadaslarla oynayabilirsiniz! Ilk 10'a kadar ulasiniz. 
Oynarken oyunda bulunanlarla sohbet bile etmek mümkün.
 interfinal'de daha çok hizmetler bulacaksiniz...

Resmi açilisimiz 29. Mart 2002 idi (daha çok yeniyiz ama çok iddialiyiz..., gelin 
kendiniz görün)

http://www.interfinal.kunde.sserv.de/index.php?set_lang=tr (türkce)

http://www.interfinal.de (almanca)





___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] Nforce SPDIF

2002-11-24 Thread [EMAIL PROTECTED]

Hi,

I have an Nforce equipped Motherboard that has an SPDIF output.  The
intel8x0 driver works great for the analog out, but no SPDIF.  Is the
SPDIF supported?





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



[Alsa-devel] capture with non-interleaved mode

2003-10-14 Thread [EMAIL PROTECTED]
Hi. I'm developping a signal processing program which needs to compute data 
from each channel of soundcards separately. 
After searches I found that I must open the soundcard with the 
SND_PCM_ACCESS_RW_NONINTERLEAVED flag but it doesn't works well : for each 
readn operation i get the -32 error code . Meanwhile, I tested capture in 
interleaved mode and it works well.
I had to use hw:x,y for the interleaved capture and plughw:x,y for the non-
interleaved capture, I don't know if non-interleaved capture works with hw:x,y.

Any advice (or piece of source code) ?

Thanks,

Cyril Coquilleau


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] capture with non-interleaved mode

2003-10-14 Thread [EMAIL PROTECTED]
> >Hi. I'm developping a signal processing program which needs to compute data
> 
> >from each channel of soundcards separately. 
> >After searches I found that I must open the soundcard with the 
> >SND_PCM_ACCESS_RW_NONINTERLEAVED flag but it doesn't works well : for each
> 
> >readn operation i get the -32 error code . Meanwhile, I tested capture in 
> >interleaved mode and it works well.
> >I had to use hw:x,y for the interleaved capture and plughw:x,y for the
> non-
> >interleaved capture, I don't know if non-interleaved capture works with
> hw:x,y.
> 
> [ We need a FAQ ... ]
> 
> ALSA's "hw" devices can only be used with parameters that match
> capabilities offered by the underlying hardware. There's not much
> hardware out there that supports non-interleaved I/O, so as a result,
> most "hw" devices can't do this. The Hammerfall and ice1712 series are
> notable exceptions. But there is a corollary: if you were using a
> hammerfall, the "hw" device cannot do interleaved I/O either.
> 
> as to your error, its probably a bug in your code. JACK uses
> non-interleaved mode by default, and it works with both plughw and hw
> models of many different kinds. if you posted the relevant parts of it
> here, somebody can probably help you.
> 
> 

I join the relevant parts of the source (without error handlers) :

#define BUF_SIZE 128

struct snd_card
{
  snd_pcm_t *handle;
  snd_pcm_hw_params_t *params;

  short inputBuffer[BUF_SIZE*2];  
  void *buffer[2];
};
typedef struct snd_card snd_card_t;

int 
main ()
{
  char card_id[32];
  int err;
  itn card = 0;
  snd_card_t *card1;
  
  card1 = calloc(1,sizeof(snd_card_t));
  card1->buffer[0] = card1->inputBuffer;
  card1->buffer[1] = &card1->inputBuffer[BUF_SIZE];
  snprintf (card_id, 32, "plughw:%d", card);
  
  snd_pcm_open (&card1->handle, card_id, SND_PCM_STREAM_CAPTURE, 0);
  snd_pcm_hw_params_malloc (&card1->params);
  snd_pcm_hw_params_any (card1->handle, card1->params);
  snd_pcm_hw_params_set_channels (card1->handle, card1->params, 2);
  snd_pcm_hw_params_set_access (card1->handle, card1->params,
SND_PCM_ACCESS_RW_NONINTERLEAVED);
  snd_pcm_hw_params_set_format (card1->handle, card1->params,
SND_PCM_FORMAT_S16_LE);
  snd_pcm_hw_params_set_rate_near (card1->handle, card1->params, ECHANT, 0);
  snd_pcm_hw_params (card1->handle, card1->params);
  snd_pcm_hw_params_free (card1->params);
  snd_pcm_prepare (card1->handle);

  while (...)
  {
err = snd_pcm_readn (card1->handle, card1->buffer, BUF_SIZE);
printf("err=%d, buff=%d\n", err, card1->buffer[0]);
...
  }
 ...
}



And here is the result of printf 
err=-32, buff=-1
err=-32, buff=-1
err=-32, buff=-1
err=-32, buff=-1
err=-32, buff=-1


If you see the problem...


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] capture with non-interleaved mode

2003-10-15 Thread [EMAIL PROTECTED]
> > > >Hi. I'm developping a signal processing program which needs to compute
> data
> > > 
> > > >from each channel of soundcards separately. 
> > > >After searches I found that I must open the soundcard with the 
> > > >SND_PCM_ACCESS_RW_NONINTERLEAVED flag but it doesn't works well : for
> each
> > > 
> > > >readn operation i get the -32 error code . Meanwhile, I tested capture
> in 
> > > >interleaved mode and it works well.
> > > >I had to use hw:x,y for the interleaved capture and plughw:x,y for the
> > > non-
> > > >interleaved capture, I don't know if non-interleaved capture works
> with
> > > hw:x,y.
> > > 
> > > [ We need a FAQ ... ]
> > > 
> > > ALSA's "hw" devices can only be used with parameters that match
> > > capabilities offered by the underlying hardware. There's not much
> > > hardware out there that supports non-interleaved I/O, so as a result,
> > > most "hw" devices can't do this. The Hammerfall and ice1712 series are
> > > notable exceptions. But there is a corollary: if you were using a
> > > hammerfall, the "hw" device cannot do interleaved I/O either.
> > > 
> > > as to your error, its probably a bug in your code. JACK uses
> > > non-interleaved mode by default, and it works with both plughw and hw
> > > models of many different kinds. if you posted the relevant parts of it
> > > here, somebody can probably help you.
> > > 
> > > 
> > 
> > I join the relevant parts of the source (without error handlers) :
> > 
> > #define BUF_SIZE 128
> > #define ECHANT 44100
> > 
> > struct snd_card
> > {
> >   snd_pcm_t *handle;
> >   snd_pcm_hw_params_t *params;
> > 
> >   short inputBuffer[BUF_SIZE*2];  
> >   void *buffer[2];
> > };
> > typedef struct snd_card snd_card_t;
> > 
> > int 
> > main ()
> > {
> >   char card_id[32];
> >   int err;
> >   itn card = 0;
> >   snd_card_t *card1;
> >   
> >   card1 = calloc(1,sizeof(snd_card_t));
> >   card1->buffer[0] = card1->inputBuffer;
> >   card1->buffer[1] = &card1->inputBuffer[BUF_SIZE];
> >   snprintf (card_id, 32, "plughw:%d", card);
> >   
> >   snd_pcm_open (&card1->handle, card_id, SND_PCM_STREAM_CAPTURE, 0);
> >   snd_pcm_hw_params_malloc (&card1->params);
> >   snd_pcm_hw_params_any (card1->handle, card1->params);
> >   snd_pcm_hw_params_set_channels (card1->handle, card1->params, 2);
> >   snd_pcm_hw_params_set_access (card1->handle, card1->params,
> > SND_PCM_ACCESS_RW_NONINTERLEAVED);
> >   snd_pcm_hw_params_set_format (card1->handle, card1->params,
> > SND_PCM_FORMAT_S16_LE);
> >   snd_pcm_hw_params_set_rate_near (card1->handle, card1->params, ECHANT,
> 0);
> >   snd_pcm_hw_params (card1->handle, card1->params);
> >   snd_pcm_hw_params_free (card1->params);
> >   snd_pcm_prepare (card1->handle);
> > 
> >   while (...)
> >   {
> > err = snd_pcm_readn (card1->handle, card1->buffer, BUF_SIZE);
> > printf("err=%d, buff=%d\n", err, card1->buffer[0]);
> > ...
> >   }
> >  ...
> > }
> > 
> > 
> > 
> > And here is the result of printf 
> > err=-32, buff=-1
> 
> -32 is EPIPE.  it's likely buffer under/overrun.
> 
> 

I've not managed to fix this bug into my program... Do you see the error on my 
code (bad soundcard initialization or other) or have you got another way to 
propose me to capture the two channels of my soundcard separately ?

Cyril


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] capture with non-interleaved mode

2003-10-19 Thread [EMAIL PROTECTED]

Hi !

I managed to capture sound but I have a problem due to the stereo. It is
impossible to capture data of channels separately.

I made a test for that : I have generated a sound with a square frequency of
2000 Hz in the left channel and a square frequency of 6000 Hz in the right
channel. And when I capture this sound I only have the sound of the right
channel : in the buffer I have the data of the right channel, but the data of
the left channel is replaced the right one.
I think that the stereo is taken only from the right channel (the signal is
exactly the same at the same time).

I join you the source of my program, if see the error...



#define BUF_SIZE 4096
#define ECHANT 44100
#define LASTING 1

struct snd_card
{
  snd_pcm_t *handle;
  snd_pcm_hw_params_t *params;

  char *name;
  char *card_id;  

  short inputBuffer[BUF_SIZE*2];  
  void *buffer[2];
};

typedef struct snd_card snd_card_t;


/
// Assigns a card to the program
snd_card_t*
assign_card (int card)
{
  char card_id[32];
  int err;
  snd_card_t *returned_card;
  returned_card = calloc(1,sizeof(snd_card_t));

  // Initialize the buffer
  returned_card->buffer[0] = returned_card->inputBuffer;
  returned_card->buffer[1] = &returned_card->inputBuffer[BUF_SIZE];
  
  snprintf (card_id, 32, "plughw:%d", card);
  returned_card->card_id = strdup(card_id);

  // I removed the error handlers
  snd_pcm_open (&returned_card->handle, returned_card->card_id,
SND_PCM_STREAM_CAPTURE, 0);
  snd_pcm_hw_params_malloc (&returned_card->params);
  snd_pcm_hw_params_any (returned_card->handle, returned_card->params);
  //2 for the two channels for stereo
  snd_pcm_hw_params_set_channels (returned_card->handle, returned_card->params, 2);
  snd_pcm_hw_params_set_access (returned_card->handle, returned_card->params,
SND_PCM_ACCESS_RW_NONINTERLEAVED);
  snd_pcm_hw_params_set_format (returned_card->handle, returned_card->params,
SND_PCM_FORMAT_S16_LE);
  snd_pcm_hw_params_set_rate_near (returned_card->handle, returned_card->params,
ECHANT, 0);
  snd_pcm_hw_params (returned_card->handle, returned_card->params);
  snd_pcm_hw_params_free (returned_card->params);
  snd_pcm_prepare (returned_card->handle);
  return returned_card;
}


/ 
// Main 
int 
main (int argc, char *argv[]) 
{
  int i=0;
  int err;
  int card_number = 0;
  snd_card_t *card1;
 
  card1 = assign_card(card_number);

  for (i=0; ihandle, card1->buffer, BUF_SIZE);
 
if (err >= BUF_SIZE) 
{
  // Write the content of the buffer into a file to examine the content
} // End of treatment of the two channels
else if (err == -EPIPE) 
{ 
  printf("Under-Run \n");
  // under-run 
  snd_pcm_prepare (card1->handle);
} 
else if (err == -ESTRPIPE) 
{
  
  while ((err = snd_pcm_resume (card1->handle)) == -EAGAIN)
sleep(1);   // wait until the suspend flag is released

  if (err < 0) 
snd_pcm_prepare (card1->handle);  // prepare again to read
}
  }
  
  snd_pcm_close (card1->handle);
  return 0;
}



And here is a very small part of the text file obtained, we see the data of left
channel is always the same as the right (altough the frequencies of each channel
are differents).

LEFT CHANNEL     RIGHT CHANNEL

buff=2553125448
buff=2906229024
buff=2899028953
buff=2564025564
buff=2776127714
buff=-31412-31364
buff=-29466-29392
buff=-32110-32067
buff=-32600-32571
buff=3032630317
buff=2857328537
buff=3021230202
buff=3104331031
buff=2811428063
buff=3244532458



Cyril Coquilleau


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] Emu10k1-sound corrupted

2004-03-16 Thread [EMAIL PROTECTED]
Hello to everyone.


I'm using Mandrake 9.2 with Kernel 2.4.22 and the alsa 0.9.6drivers.

The installation (compiled from source with gcc3.1.1-2) went fine but I could
hear sound only from one channel.
Raising all the volume controls up to the top, most of the times fixes the
problem, but the
sound is still no clean and sometimes goes back mute from one channel.

Tried also the latest drivers and with a new kernel (2.6.1 with the alsa modules
that come from it), but the problem's still there.

Also, I noticed thata the sound is affected by the movements of the mouse (PS2).

Can anyone help?


Thank you for your support.

mass


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] emu10k1x patch

2004-05-24 Thread [EMAIL PROTECTED]
A few minor fixes to the emu10k1x driver. Also, it would be nice to update the 
soundcards page to list it as supported (mention that only PCM playback is currently 
supported).

I will try to test a few more things before 1.0.5 gets final, I hope.

Francisco
Index: pci/emu10k1/emu10k1x.c
===
RCS file: /cvsroot/alsa/alsa-driver/pci/emu10k1/emu10k1x.c,v
retrieving revision 1.2
diff -r1.2 emu10k1x.c
185c185
<   .channels_min = 1,
---
>   .channels_min = 2,
188,189c188,189
<   .period_bytes_min = 64,
<   .period_bytes_max = (32*1024),
---
>   .period_bytes_min = (16*1024),
>   .period_bytes_max = (16*1024),
732,733c732,733
<   //  snd_emu10k1x_intr_enable(chip, (INTE_CH_0_LOOP<<1);
<   //  snd_emu10k1x_intr_enable(chip, INTE_CH_0_LOOP<<2);
---
>   snd_emu10k1x_intr_enable(chip, (INTE_CH_0_LOOP|INTE_CH_0_HALF_LOOP)<<1);>   snd_emu10k1x_intr_enable(chip, (INTE_CH_0_LOOP|INTE_CH_0_HALF_LOOP)<<2);