Ignore:
Timestamp:
Apr 21, 2025, 7:17:25 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge from uniaud32-exp branch

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/es1968.c

    r772 r777  
    489489        struct list_head list;
    490490
    491 #ifdef CONFIG_PM_SLEEP
    492491        u16 wc_map[4];
    493 #endif
    494492};
    495493
     
    542540        spinlock_t substream_lock;
    543541
    544 #ifdef CONFIG_PM_SLEEP
    545542        u16 apu_map[NR_APUS][NR_APU_REGS];
    546 #endif
    547543
    548544#ifdef SUPPORT_JOYSTICK
     
    705701        if (snd_BUG_ON(channel >= NR_APUS))
    706702                return;
    707 #ifdef CONFIG_PM_SLEEP
    708703        chip->apu_map[channel][reg] = data;
    709 #endif
    710704        reg |= (channel << 4);
    711705        apu_index_set(chip, reg);
     
    992986        wave_set_register(chip, es->apu[channel] << 3, tmpval);
    993987
    994 #ifdef CONFIG_PM_SLEEP
    995988        es->wc_map[channel] = tmpval;
    996 #endif
    997989}
    998990
     
    23932385}
    23942386
    2395 #ifdef CONFIG_PM_SLEEP
    23962387/*
    23972388 * PM support
     
    24552446}
    24562447
    2457 static SIMPLE_DEV_PM_OPS(es1968_pm, es1968_suspend, es1968_resume);
    2458 #define ES1968_PM_OPS   &es1968_pm
    2459 #else
    2460 #define ES1968_PM_OPS   NULL
    2461 #endif /* CONFIG_PM_SLEEP */
     2448static DEFINE_SIMPLE_DEV_PM_OPS(es1968_pm, es1968_suspend, es1968_resume);
    24622449
    24632450#ifdef SUPPORT_JOYSTICK
     
    28892876        .probe = snd_es1968_probe,
    28902877        .driver = {
    2891                 .pm = ES1968_PM_OPS,
     2878                .pm = &es1968_pm,
    28922879        },
    28932880};
Note: See TracChangeset for help on using the changeset viewer.