All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with M5455 card
@ 2006-11-05  9:23 Volker Schroer
  2006-11-06 14:05 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Volker Schroer @ 2006-11-05  9:23 UTC (permalink / raw)
  To: alsa-devel

Hi,
I hope, this is the right list to post this question.
I'm porting an Ham- Radio application  from oss to alsa.
I'm using an ASROCK motherboard with on board sound and an AMD64 dual 
core. OS is gentoo linux , kernel 2.6.18, alsa-driver 1.0.13, alsa- lib 
1.0.13.

I set the card to FLOAT_LE format.
If I read the samples with snd_pcm_readi, I get invalid values ( 10*e34 
) from time to time, although  the result code of readi does not signal 
any errors.

Is there a way to check if the read values  are valid inside the driver 
? I think, there is a problem inside the driver. Using a delta 44 
soundcard, the problem is gone.

Thanks

Volker

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with M5455 card
  2006-11-05  9:23 Problem with M5455 card Volker Schroer
@ 2006-11-06 14:05 ` Takashi Iwai
  2006-11-06 20:35   ` Volker Schroer
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2006-11-06 14:05 UTC (permalink / raw)
  To: Volker Schroer; +Cc: alsa-devel

At Sun, 05 Nov 2006 10:23:58 +0100,
Volker Schroer wrote:
> 
> Hi,
> I hope, this is the right list to post this question.
> I'm porting an Ham- Radio application  from oss to alsa.
> I'm using an ASROCK motherboard with on board sound and an AMD64 dual 
> core. OS is gentoo linux , kernel 2.6.18, alsa-driver 1.0.13, alsa- lib 
> 1.0.13.
> 
> I set the card to FLOAT_LE format.

What did you set exactly?  Set hw_params calls with format = FLOAT_LE
from application? 


> If I read the samples with snd_pcm_readi, I get invalid values ( 10*e34 
> ) from time to time, although  the result code of readi does not signal 
> any errors.
> 
> Is there a way to check if the read values  are valid inside the driver 
> ? I think, there is a problem inside the driver. Using a delta 44 
> soundcard, the problem is gone.

I guess it's rather a conincidence that it worked with another card.
Or, possibly, conversion between S16 and float in alsa-lib plugin
might be broken.


Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with M5455 card
  2006-11-06 14:05 ` Takashi Iwai
@ 2006-11-06 20:35   ` Volker Schroer
  2006-11-07 10:35     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Volker Schroer @ 2006-11-06 20:35 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


>> .
>>
>> I set the card to FLOAT_LE format.
>>     
>
> What did you set exactly?  Set hw_params calls with format = FLOAT_LE
> from application? 
>   
Yes, this is my .asoundrc
pcm.LinPSK_card {
        type hw
        card M5455
        }
pcm.LinPSK {
        type plug
        slave.pcm LinPSK_card
}
 and I open LinPSK.
>> If I read the samples with snd_pcm_readi, I get invalid values ( 10*e34 
>> ) from time to time, although  the result code of readi does not signal 
>> any errors.
>>
>> Is there a way to check if the read values  are valid inside the driver 
>> ? I think, there is a problem inside the driver. Using a delta 44 
>> soundcard, the problem is gone.
>>     
>
> I guess it's rather a conincidence that it worked with another card.
> Or, possibly, conversion between S16 and float in alsa-lib plugin
> might be broken.
>
>   
 Well, but not all samples contain bad values. Only after some times 
some bad values appear.


Volker


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with M5455 card
  2006-11-06 20:35   ` Volker Schroer
@ 2006-11-07 10:35     ` Takashi Iwai
  2006-11-07 20:25       ` Volker Schroer
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2006-11-07 10:35 UTC (permalink / raw)
  To: Volker Schroer; +Cc: alsa-devel

At Mon, 06 Nov 2006 21:35:41 +0100,
Volker Schroer wrote:
> 
> 
> >> .
> >>
> >> I set the card to FLOAT_LE format.
> >>     
> >
> > What did you set exactly?  Set hw_params calls with format = FLOAT_LE
> > from application? 
> >   
> Yes, this is my .asoundrc
> pcm.LinPSK_card {
>         type hw
>         card M5455
>         }
> pcm.LinPSK {
>         type plug
>         slave.pcm LinPSK_card
> }
>  and I open LinPSK.
> >> If I read the samples with snd_pcm_readi, I get invalid values ( 10*e34 
> >> ) from time to time, although  the result code of readi does not signal 
> >> any errors.
> >>
> >> Is there a way to check if the read values  are valid inside the driver 
> >> ? I think, there is a problem inside the driver. Using a delta 44 
> >> soundcard, the problem is gone.
> >>     
> >
> > I guess it's rather a conincidence that it worked with another card.
> > Or, possibly, conversion between S16 and float in alsa-lib plugin
> > might be broken.
> >
> >   
>  Well, but not all samples contain bad values. Only after some times 
> some bad values appear.

Hm, then the problem could be in the rate conversion.
M5455 uses only 48kHz (by some reason).  Try to run with 48kHz.


Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with M5455 card
  2006-11-07 10:35     ` Takashi Iwai
@ 2006-11-07 20:25       ` Volker Schroer
  0 siblings, 0 replies; 5+ messages in thread
From: Volker Schroer @ 2006-11-07 20:25 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Takashi Iwai schrieb:
>>>>     
>>>>         
>>> I guess it's rather a conincidence that it worked with another card.
>>> Or, possibly, conversion between S16 and float in alsa-lib plugin
>>> might be broken.
>>>
>>>   
>>>       
>>  Well, but not all samples contain bad values. Only after some times 
>> some bad values appear.
>>     
>
> Hm, then the problem could be in the rate conversion.
> M5455 uses only 48kHz (by some reason).  Try to run with 48kHz.
>
>
>   

I did that, but no change. Only the size of the bad valus gets smaller  
(about 10e*16).

Volker
>
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-07 20:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-05  9:23 Problem with M5455 card Volker Schroer
2006-11-06 14:05 ` Takashi Iwai
2006-11-06 20:35   ` Volker Schroer
2006-11-07 10:35     ` Takashi Iwai
2006-11-07 20:25       ` Volker Schroer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.