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/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
Note: See TracChangeset for help on using the changeset viewer.