Ignore:
Timestamp:
Jun 9, 2016, 10:38:13 PM (9 years ago)
Author:
David Azarewicz
Message:

Rearrange directory structure
rework makefiles
cleanup files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/pcm.h

    r464 r587  
    7474                    snd_pcm_uframes_t pos,
    7575                    void __user *buf, snd_pcm_uframes_t count);
    76         int (*silence)(struct snd_pcm_substream *substream, int channel, 
     76        int (*silence)(struct snd_pcm_substream *substream, int channel,
    7777                       snd_pcm_uframes_t pos, snd_pcm_uframes_t count);
    7878        struct page *(*page)(struct snd_pcm_substream *substream,
     
    216216
    217217struct snd_pcm_hw_constraints {
    218         struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 
     218        struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
    219219                         SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
    220220        struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL -
     
    330330        int tstamp_type;                /* timestamp type */
    331331
    332         /* -- DMA -- */           
     332        /* -- DMA -- */
    333333        unsigned char *dma_area;        /* DMA area */
    334334        dma_addr_t dma_addr;            /* physical bus address (not accessible from main CPU) */
     
    538538} while (0)
    539539
     540#ifdef TARGET_OS2
    540541#define snd_pcm_group_for_each_entry(s, substream) \
    541542        list_for_each_entry(s, &substream->group->substreams, link_list, struct snd_pcm_substream)
     543#else   
     544#define snd_pcm_group_for_each_entry(s, substream) \
     545        list_for_each_entry(s, &substream->group->substreams, link_list)
     546#endif
    542547
    543548static inline int snd_pcm_running(struct snd_pcm_substream *substream)
     
    592597        snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr;
    593598#if defined TARGET_OS2
    594        if ( runtime->buffer_size > runtime->control->appl_ptr) 
    595           avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; 
    596        else 
    597        { 
    598  
    599           avail = runtime->control->appl_ptr - runtime->status->hw_ptr; 
    600           if ( avail > runtime->buffer_size ) 
    601              avail = 0; 
    602           else 
    603              avail = runtime->buffer_size - avail; 
    604        } 
    605 #endif /* TARGET_OS2  */ 
     599       if ( runtime->buffer_size > runtime->control->appl_ptr)
     600          avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr;
     601       else
     602       {
     603
     604          avail = runtime->control->appl_ptr - runtime->status->hw_ptr;
     605          if ( avail > runtime->buffer_size )
     606             avail = 0;
     607          else
     608             avail = runtime->buffer_size - avail;
     609       }
     610#endif /* TARGET_OS2  */
    606611        if (avail < 0)
    607612                avail += runtime->boundary;
     
    706711}
    707712
    708 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, 
     713static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream,
    709714                                        struct snd_pcm_substream *master)
    710715{
     
    763768void snd_interval_mul(const struct snd_interval *a, const struct snd_interval *b, struct snd_interval *c);
    764769void snd_interval_div(const struct snd_interval *a, const struct snd_interval *b, struct snd_interval *c);
    765 void snd_interval_muldivk(const struct snd_interval *a, const struct snd_interval *b, 
     770void snd_interval_muldivk(const struct snd_interval *a, const struct snd_interval *b,
    766771                          unsigned int k, struct snd_interval *c);
    767772void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k,
     
    788793                                 unsigned int min, unsigned int max);
    789794int snd_pcm_hw_constraint_integer(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var);
    790 int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime, 
     795int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime,
    791796                               unsigned int cond,
    792797                               snd_pcm_hw_param_t var,
    793798                               struct snd_pcm_hw_constraint_list *l);
    794 int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime, 
     799int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime,
    795800                                  unsigned int cond,
    796801                                  snd_pcm_hw_param_t var,
    797802                                  struct snd_pcm_hw_constraint_ratnums *r);
    798 int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime, 
     803int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime,
    799804                                  unsigned int cond,
    800805                                  snd_pcm_hw_param_t var,
    801806                                  struct snd_pcm_hw_constraint_ratdens *r);
    802 int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime, 
     807int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime,
    803808                                 unsigned int cond,
    804809                                 unsigned int width,
     
    848853int snd_pcm_lib_interleave_len(struct snd_pcm_substream *substream);
    849854int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
    850                       unsigned int cmd, void *arg);                     
     855                      unsigned int cmd, void *arg);
    851856int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
    852857int snd_pcm_playback_xrun_check(struct snd_pcm_substream *substream);
Note: See TracChangeset for help on using the changeset viewer.