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/pci/emu10k1/emu10k1.c

    r464 r598  
    5959static int enable_ir[SNDRV_CARDS];
    6060static uint subsystem[SNDRV_CARDS]; /* Force card subsystem model */
     61#ifndef TARGET_OS2
     62static uint delay_pcm_irq[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
     63#else
     64static uint delay_pcm_irq[SNDRV_CARDS] = {2,2,2,2,2,2,2,2};
     65#endif
    6166
    6267module_param_array(index, int, NULL, 0444);
     
    8085module_param_array(subsystem, uint, NULL, 0444);
    8186MODULE_PARM_DESC(subsystem, "Force card subsystem model.");
     87module_param_array(delay_pcm_irq, uint, NULL, 0444);
     88MODULE_PARM_DESC(delay_pcm_irq, "Delay PCM interrupt by specified number of samples (default 0).");
    8289/*
    8390 * Class 0401: 1102:0008 (rev 00) Subsystem: 1102:1001 -> Audigy2 Value  Model:SB0400
    8491 */
    85 static struct pci_device_id snd_emu10k1_ids[] = {
     92static DEFINE_PCI_DEVICE_TABLE(snd_emu10k1_ids) = {
    8693        { PCI_VDEVICE(CREATIVE, 0x0002), 0 },   /* EMU10K1 */
    8794        { PCI_VDEVICE(CREATIVE, 0x0004), 1 },   /* Audigy */
     
    134141                goto error;
    135142        card->private_data = emu;
     143        emu->delay_pcm_irq = delay_pcm_irq[dev] & 0x1f;
    136144        if ((err = snd_emu10k1_pcm(emu, 0, NULL)) < 0)
    137145                goto error;
Note: See TracChangeset for help on using the changeset viewer.