Skip to contentSkip to conversation

: Compilation problem in pcm/pcm.c

ALSA - lib 0001981 [email protected] 1 participant 1 message Apr 10, 2006

lore
Share & tools
lore
#0 lore raw

The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1981>
======================================================================

Reported By:                croiset
Assigned To:                tiwai
======================================================================
Project:                    ALSA - lib
Issue ID:                   1981
Category:                   0_general
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             03-31-2006 13:49 CEST
Last Modified:              04-10-2006 18:32 CEST

======================================================================
Summary: Compilation problem in pcm/pcm.c
Description:
In the function snd_pcm_get_params, you must declare everything before making any code. If it's not the case, it will create a compilation error on C.

Before in line 7266 :
int snd_pcm_get_params(snd_pcm_t *pcm,
snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size)
{
assert(pcm);
snd_pcm_hw_params_t *hw;
int err;

   snd_pcm_hw_params_alloca(&hw);

After correction :
int snd_pcm_get_params(snd_pcm_t *pcm,
snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size)
{
snd_pcm_hw_params_t *hw;
int err;

   assert(pcm);

snd_pcm_hw_params_alloca(&hw);
======================================================================

----------------------------------------------------------------------
tiwai - 04-10-06 18:32
----------------------------------------------------------------------
Fixed on CVS.

Issue History
Date Modified Username Field Change
======================================================================

03-31-06 13:49 croiset        New Issue                                    
04-10-06 18:32 tiwai          Status                   new => resolved     
04-10-06 18:32 tiwai          Resolution               open => fixed       
04-10-06 18:32 tiwai          Assigned To               => tiwai           
04-10-06 18:32 tiwai          Note Added: 0009212                          

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642