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

Rearrange directory structure
rework makefiles
cleanup files

Location:
GPL/trunk/alsa-kernel/include/sound
Files:
14 added
31 deleted
8 edited

Legend:

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

    r305 r587  
    6868#define SNDRV_SEQ_EVENT_TIMESIGN        23      /* SMF Time Signature event */
    6969#define SNDRV_SEQ_EVENT_KEYSIGN         24      /* SMF Key Signature event */
    70                
     70       
    7171/** timer messages
    7272 * event data type = snd_seq_ev_queue_control
     
    222222
    223223        /* external stored data */
    224 #ifndef TARGET_OS2
     224#ifndef TARGET_OS2     
    225225struct snd_seq_ev_ext {
    226226        unsigned int len;       /* length of data */
     
    235235#pragma pack()
    236236#endif
     237
    237238struct snd_seq_result {
    238239        int event;              /* processed event type */
     
    273274
    274275        /* quoted event - inside the kernel only */
    275 #ifndef TARGET_OS2
     276#ifndef TARGET_OS2     
    276277struct snd_seq_ev_quote {
    277278        struct snd_seq_addr origin;             /* original sender */
     
    422423#define USER_CLIENT     ((__force snd_seq_client_type_t) 1)
    423424#define KERNEL_CLIENT   ((__force snd_seq_client_type_t) 2)
    424                        
     425
    425426        /* event filter flags */
    426427#define SNDRV_SEQ_FILTER_BROADCAST      (1<<0)  /* accept broadcast messages */
  • GPL/trunk/alsa-kernel/include/sound/asound.h

    r542 r587  
    4242#endif /* __KERNEL__ **/
    4343
     44#ifdef TARGET_OS2
    4445#ifndef __force
    4546#define __force
     
    5051#endif
    5152
    52 #ifdef TARGET_OS2
    5353#define SNDRV_PCM_VOL_FRONT_LEFT        0
    5454#define SNDRV_PCM_VOL_FRONT_RIGHT       1
     
    323323typedef int snd_pcm_hw_param_t;
    324324#define SNDRV_PCM_HW_PARAM_ACCESS       0       /* Access type */
    325 #ifdef TARGET_OS2
     325#ifndef TARGET_OS2
     326#define SNDRV_PCM_HW_PARAM_FORMAT       1       /* Format */
     327#define SNDRV_PCM_HW_PARAM_SUBFORMAT    2       /* Subformat */
     328#else
    326329#define SNDRV_PCM_HW_PARAM_RATE_MASK    1 /* Format */
    327 #endif
    328330#define SNDRV_PCM_HW_PARAM_FORMAT       2       /* Format */
    329331#define SNDRV_PCM_HW_PARAM_SUBFORMAT    3       /* Subformat */
     332#endif
    330333#define SNDRV_PCM_HW_PARAM_FIRST_MASK   SNDRV_PCM_HW_PARAM_ACCESS
    331334#define SNDRV_PCM_HW_PARAM_LAST_MASK    SNDRV_PCM_HW_PARAM_SUBFORMAT
     
    356359#define SNDRV_PCM_HW_PARAM_LAST_INTERVAL        SNDRV_PCM_HW_PARAM_TICK_TIME
    357360
    358 #define SNDRV_PCM_HW_PARAMS_NORESAMPLE          (1<<0)  /* avoid rate resampling */
     361#define SNDRV_PCM_HW_PARAMS_NORESAMPLE  (1<<0)  /* avoid rate resampling */
    359362
    360363struct snd_interval {
     
    789792        unsigned int device;            /* device/client number */
    790793        unsigned int subdevice;         /* subdevice (substream) number */
    791     unsigned char name[44];             /* ASCII name of item */
     794        unsigned char name[44];         /* ASCII name of item */
    792795        unsigned int index;             /* index of item */
    793796};
     
    836839        struct snd_ctl_elem_id id;      /* W: element ID */
    837840        unsigned int indirect: 1;       /* W: indirect access - obsoleted */
    838     union {
     841        union {
    839842                union {
    840843                        long value[128];
     
    854857                } bytes;
    855858                struct snd_aes_iec958 iec958;
    856     } value;                /* RO */
     859        } value;                /* RO */
    857860        struct timespec tstamp;
    858     unsigned char reserved[128-sizeof(struct timespec)];
     861        unsigned char reserved[128-sizeof(struct timespec)];
    859862};
    860863
  • GPL/trunk/alsa-kernel/include/sound/core.h

    r464 r587  
    2323 */
    2424#ifdef TARGET_OS2
    25 #include <sound\config.h>
     25#include <config.h>
    2626#endif
    2727
     
    101101struct snd_monitor_file {
    102102        struct file *file;
    103 #ifndef TARGET_OS2
     103#ifndef TARGET_OS2     
    104104        const struct file_operations *disconnected_f_op;
    105105#else
    106106        struct file_operations *disconnected_f_op;
    107 #endif
     107#endif 
    108108        struct list_head shutdown_list; /* still need to shutdown */
    109109        struct list_head list;  /* link of monitor files */
     
    205205        int card;                       /* card number */
    206206        int device;                     /* device number */
    207 #ifndef TARGET_OS2
     207#ifndef TARGET_OS2     
    208208        const struct file_operations *f_ops;    /* file operations */
    209209#else
    210210        struct file_operations *f_ops;  /* file operations */
    211 #endif
     211#endif 
    212212        void *private_data;             /* private data for f_ops->open */
    213213        struct device *dev;             /* device for sysfs */
     
    234234int snd_register_device_for_dev(int type, struct snd_card *card,
    235235                                int dev,
    236 #ifndef TARGET_OS2
     236#ifndef TARGET_OS2                             
    237237                                const struct file_operations *f_ops,
    238238#else
    239239                                struct file_operations *f_ops,
    240 #endif
     240#endif                         
    241241                                void *private_data,
    242242                                const char *name,
     
    263263#ifndef TARGET_OS2
    264264                                      const struct file_operations *f_ops,
    265 #else
     265#else                           
    266266                                      struct file_operations *f_ops,
    267 #endif
     267#endif                         
    268268                                      void *private_data,
    269269                                      const char *name)
     
    285285#else
    286286                            struct file_operations *f_ops, void *private_data,
    287 #endif
     287#endif                 
    288288                            const char *name);
    289289int snd_unregister_oss_device(int type, struct snd_card *card, int dev);
     
    376376#else
    377377#define __snd_printk printk
    378 #endif /* nothing */
     378#endif 
    379379#endif
    380380
     
    418418 * When CONFIG_SND_DEBUG is set, this macro evaluates the given condition,
    419419 * and call WARN() and returns the value if it's non-zero.
    420  * 
     420 *
    421421 * When CONFIG_SND_DEBUG is not set, this just returns zero, and the given
    422422 * condition is ignored.
     
    427427 * If you want to evaluate and give a warning, use standard WARN_ON().
    428428 */
    429 
    430429#define snd_BUG_ON(cond)        WARN((cond), "BUG? (%s)\n", __stringify(cond))
    431430
     
    449448#define snd_BUG_ON(cond)        __snd_bug_on(0 && (cond))  /* always false */
    450449#endif
    451 
    452450
    453451#endif /* CONFIG_SND_DEBUG */
  • GPL/trunk/alsa-kernel/include/sound/info.h

    r410 r587  
    111111#endif
    112112
    113 #ifndef TARGET_OS2
    114113int snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) \
    115114                                __attribute__ ((format (printf, 2, 3)));
    116 #else
    117 int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...);
    118 #endif
    119115int snd_info_init(void);
    120116int snd_info_done(void);
  • GPL/trunk/alsa-kernel/include/sound/initval.h

    r398 r587  
    2222 */
    2323
     24#ifdef TARGET_OS2
    2425#ifndef MODULE_GENERIC_STRING
    2526#ifdef MODULE
     
    3233#endif
    3334
    34 #ifdef TARGET_OS2
    35 #define MODULE_CLASSES(val)
    36 #define MODULE_DEVICES(val)
    37 #define MODULE_PARM_SYNTAX(id, val)
     35#define MODULE_CLASSES(val)
     36#define MODULE_DEVICES(val)
     37#define MODULE_PARM_SYNTAX(id, val)
    3838#define module_param_array(name, type, nump, perm)
    3939#define module_param(name, type, perm)
     
    5252#define module_param(name, type, perm) \
    5353        MODULE_PARM(name, SNDRV_MODULE_TYPE_##type)
    54 
    5554#endif
    5655
     56#ifndef TARGET_OS2
     57#define SNDRV_AUTO_PORT         1
     58#else
    5759#define SNDRV_AUTO_PORT         0xffff
     60#endif
    5861#define SNDRV_AUTO_IRQ          0xffff
    5962#define SNDRV_AUTO_DMA          0xffff
     
    7578#define SNDRV_DEFAULT_ENABLE    { 1,1,1,1,1,1,1,1 }
    7679#define SNDRV_DEFAULT_ENABLE_PNP        SNDRV_DEFAULT_ENABLE
     80#ifdef CONFIG_PNP
     81#define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP
     82#else
     83#define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE
     84#endif
    7785#define SNDRV_DEFAULT_PORT      { REPEAT_SNDRV(-1) }
    7886#define SNDRV_DEFAULT_IRQ       { REPEAT_SNDRV(SNDRV_AUTO_IRQ) }
     
    8391#define SNDDRV_DEFAULT_PCM_SUBSTREAMS {REPEAT_SNDRV(8)};
    8492#define SNDDRV_DEFAULT_MIDI_DEVS      {REPEAT_SNDRV(4)};
    85 #else
    86 #define SNDRV_DEFAULT_IDX       { [0 ... (SNDRV_CARDS-1)] = -1 }
    87 #define SNDRV_DEFAULT_STR       { [0 ... (SNDRV_CARDS-1)] = NULL }
    88 #define SNDRV_DEFAULT_ENABLE    { 1, [1 ... (SNDRV_CARDS-1)] = 0 }
    89 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 }
    90 #define SNDRV_DEFAULT_PORT      { SNDRV_AUTO_PORT, [1 ... (SNDRV_CARDS-1)] = -1 }
    91 #define SNDRV_DEFAULT_IRQ       { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ }
    92 #define SNDRV_DEFAULT_DMA       { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA }
    93 #define SNDRV_DEFAULT_DMA_SIZE  { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE }
    94 #define SNDRV_DEFAULT_PTR       SNDRV_DEFAULT_STR
    95 #endif
    96 
    97 #ifdef CONFIG_PNP
    98 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP
    99 #else
    100 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE
    101 #endif
    10293
    10394#define SNDRV_BOOLEAN_TRUE_DESC "allows:{{0,Disabled},{1,Enabled}},default:1,dialog:check"
     
    119110#define SNDRV_PORT12_DESC       SNDRV_ENABLED ",allows:{{0,0x3fff}},base:16"
    120111#define SNDRV_PORT_DESC         SNDRV_ENABLED ",allows:{{0,0xffff}},base:16"
     112#else
     113#define SNDRV_DEFAULT_IDX       { [0 ... (SNDRV_CARDS-1)] = -1 }
     114#define SNDRV_DEFAULT_STR       { [0 ... (SNDRV_CARDS-1)] = NULL }
     115#define SNDRV_DEFAULT_ENABLE    { 1, [1 ... (SNDRV_CARDS-1)] = 0 }
     116#define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 }
     117#ifdef CONFIG_PNP
     118#define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP
     119#else
     120#define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE
     121#endif
     122#define SNDRV_DEFAULT_PORT      { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_PORT }
     123#define SNDRV_DEFAULT_IRQ       { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ }
     124#define SNDRV_DEFAULT_DMA       { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA }
     125#define SNDRV_DEFAULT_DMA_SIZE  { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE }
     126#define SNDRV_DEFAULT_PTR       SNDRV_DEFAULT_STR
     127#endif
    121128
    122129#ifdef SNDRV_LEGACY_FIND_FREE_IRQ
     
    157164#endif
    158165
     166#ifdef TARGET_OS2
    159167#if defined(SNDRV_GET_ID) && !defined(MODULE)
    160168#include <linux/ctype.h>
     
    182190}
    183191#endif
     192#endif
    184193
    185 #endif                          /* __INITVAL_H */
     194#endif /* __SOUND_INITVAL_H */
     195
  • GPL/trunk/alsa-kernel/include/sound/opl3.h

    r399 r587  
    1818 *
    1919 *      With the above exceptions the both sides can be operated independently.
    20  *     
     20 *
    2121 *      A 4 OP voice can be created by setting the corresponding
    2222 *      bit at offset 4 of the right side.
     
    2727 *
    2828 *      If a voice is set to the 2 OP mode, it works like 2 OP modes
    29  *      of the original YM3812 (AdLib). In addition the voice can 
     29 *      of the original YM3812 (AdLib). In addition the voice can
    3030 *      be connected the left, right or both stereo channels. It can
    3131 *      even be left unconnected. This works with 4 OP voices also.
     
    189189 *
    190190 *
    191  *                                     
     191 *
    192192 *                                       +---+
    193193 *                                       |   |
     
    195195 *                                                |->
    196196 *                                      >--3----4-+
    197  *                                     
     197 *
    198198 *                                       +---+
    199199 *                                       |   |
     
    251251        unsigned char sustain_release;
    252252        unsigned char wave_select;
    253 #ifndef TARGET_OS2
    254253} __attribute__((packed));
    255 #else
    256 };
     254#ifdef TARGET_OS2
    257255#pragma pack()
    258256#endif
     
    343341        struct snd_midi_channel_set * oss_chset;
    344342#endif
    345  
     343
    346344#define OPL3_PATCH_HASH_SIZE    32
    347345        struct fm_patch *patch_table[OPL3_PATCH_HASH_SIZE];
  • 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);
  • GPL/trunk/alsa-kernel/include/sound/seq_kernel.h

    r358 r587  
    7676
    7777/* interface for kernel client */
    78 #ifndef TARGET_OS2
    7978int snd_seq_create_kernel_client(struct snd_card *card, int client_index,
    8079                                 const char *name_fmt, ...)
    8180        __attribute__ ((format (printf, 3, 4)));
    82 #else
    83 int snd_seq_create_kernel_client(struct snd_card *card, int client_index,
    84                                  const char *name_fmt, ...);
    85 #endif
    8681int snd_seq_delete_kernel_client(int client);
    8782int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
Note: See TracChangeset for help on using the changeset viewer.