~npalix/coccinelle/upstream

« back to all changes in this revision

Viewing changes to parsing_c/tests/ifdef_funheader.c

  • Committer: Yoann Padioleau
  • Date: 2007-02-19 17:01:07 UTC
  • Revision ID: git-v1:cf4f1c68a1290b96e7c4e156b488cf2358d88273
next gen parsing started, must use -ng

svn path=/coccinelle/; revision=2172

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifdef HH_VERSION
2
 
static void audio_dma_callback(void *data, int size)
3
 
#else
4
 
static void audio_dma_callback(void *data)
5
 
#endif
6
 
{
7
 
        audio_stream_t *s = data;
8
 
        
9
 
        /* 
10
 
         * If we are getting a callback for an active stream then we inform
11
 
         * the PCM middle layer we've finished a period
12
 
         */
13
 
        if (s->active)
14
 
                snd_pcm_period_elapsed(s->stream);
15
 
 
16
 
        spin_lock(&s->dma_lock);
17
 
        if (!s->tx_spin && s->periods > 0)
18
 
                s->periods--;
19
 
        audio_process_dma(s);
20
 
        spin_unlock(&s->dma_lock);
21
 
}