Ignore:
Timestamp:
Mar 24, 2008, 4:45:54 AM (17 years ago)
Author:
Paul Smedley
Message:

Reinstate building of cmipci for C-Media audio cards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud-2.0/alsa-kernel/pci/cmipci.c

    r305 r310  
    5757static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;      /* Enable switches */
    5858static long mpu_port[SNDRV_CARDS];
     59#ifndef TARGET_OS2
    5960static long fm_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1};
    6061static int soft_ac3[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)]=1};
     62#else
     63static long fm_port[SNDRV_CARDS] = {0x388, -1,-1,-1,-1,-1,-1,-1};
     64static int soft_ac3[SNDRV_CARDS] = {0,1,1,1,1,1,1,1};
     65#endif
    6166#ifdef SUPPORT_JOYSTICK
    6267static int joystick_port[SNDRV_CARDS];
     
    24062411}
    24072412
     2413#ifndef TARGET_OS2
    24082414#define DEFINE_SWITCH_ARG(sname, xreg, xmask, xmask_on, xis_byte, xac3) \
    24092415static struct cmipci_switch_args cmipci_switch_arg_##sname = { \
     
    24142420  .ac3_sensitive = xac3, \
    24152421}
     2422#else
     2423#define DEFINE_SWITCH_ARG(sname, xreg, xmask, xmask_on, xis_byte, xac3) \
     2424    static struct cmipci_switch_args cmipci_switch_arg_##sname = { \
     2425    xreg, \
     2426    xmask, \
     2427    xmask_on, \
     2428    xis_byte, \
     2429    xac3, \
     2430    }
     2431#endif
    24162432       
    24172433#define DEFINE_BIT_SWITCH_ARG(sname, xreg, xmask, xis_byte, xac3) \
Note: See TracChangeset for help on using the changeset viewer.