Ignore:
Timestamp:
Apr 3, 2017, 4:51:56 PM (8 years ago)
Author:
David Azarewicz
Message:

Merged/reintegrated v2 branch into trunk. Trunk is now v2

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/initval.h

    r587 r598  
    2222 */
    2323
    24 #ifdef TARGET_OS2
    2524#ifndef MODULE_GENERIC_STRING
    2625#ifdef MODULE
     
    3332#endif
    3433
    35 #define MODULE_CLASSES(val)
    36 #define MODULE_DEVICES(val)
    37 #define MODULE_PARM_SYNTAX(id, val)
     34#ifdef TARGET_OS2
     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
    5455#endif
    5556
    56 #ifndef TARGET_OS2
    57 #define SNDRV_AUTO_PORT         1
    58 #else
    5957#define SNDRV_AUTO_PORT         0xffff
    60 #endif
    6158#define SNDRV_AUTO_IRQ          0xffff
    6259#define SNDRV_AUTO_DMA          0xffff
     
    7875#define SNDRV_DEFAULT_ENABLE    { 1,1,1,1,1,1,1,1 }
    7976#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
    8577#define SNDRV_DEFAULT_PORT      { REPEAT_SNDRV(-1) }
    8678#define SNDRV_DEFAULT_IRQ       { REPEAT_SNDRV(SNDRV_AUTO_IRQ) }
     
    9183#define SNDDRV_DEFAULT_PCM_SUBSTREAMS {REPEAT_SNDRV(8)};
    9284#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
    93102
    94103#define SNDRV_BOOLEAN_TRUE_DESC "allows:{{0,Disabled},{1,Enabled}},default:1,dialog:check"
     
    110119#define SNDRV_PORT12_DESC       SNDRV_ENABLED ",allows:{{0,0x3fff}},base:16"
    111120#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
    128121
    129122#ifdef SNDRV_LEGACY_FIND_FREE_IRQ
     
    164157#endif
    165158
    166 #ifdef TARGET_OS2
    167159#if defined(SNDRV_GET_ID) && !defined(MODULE)
    168160#include <linux/ctype.h>
     
    190182}
    191183#endif
    192 #endif
    193184
    194 #endif /* __SOUND_INITVAL_H */
    195 
     185#endif                          /* __INITVAL_H */
Note: See TracChangeset for help on using the changeset viewer.