Ignore:
Timestamp:
Apr 19, 2025, 8:08:37 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.h

    r717 r772  
    269269};
    270270
     271static const int saved_regs_index[] = {
     272        /* spdif */
     273        YDSXGR_SPDIFOUTCTRL,
     274        YDSXGR_SPDIFOUTSTATUS,
     275        YDSXGR_SPDIFINCTRL,
     276        /* volumes */
     277        YDSXGR_PRIADCLOOPVOL,
     278        YDSXGR_NATIVEDACINVOL,
     279        YDSXGR_NATIVEDACOUTVOL,
     280        YDSXGR_BUF441OUTVOL,
     281        YDSXGR_NATIVEADCINVOL,
     282        YDSXGR_SPDIFLOOPVOL,
     283        YDSXGR_SPDIFOUTVOL,
     284        YDSXGR_ZVOUTVOL,
     285        YDSXGR_LEGACYOUTVOL,
     286        /* address bases */
     287        YDSXGR_PLAYCTRLBASE,
     288        YDSXGR_RECCTRLBASE,
     289        YDSXGR_EFFCTRLBASE,
     290        YDSXGR_WORKBASE,
     291        /* capture set up */
     292        YDSXGR_MAPOFREC,
     293        YDSXGR_RECFORMAT,
     294        YDSXGR_RECSLOTSR,
     295        YDSXGR_ADCFORMAT,
     296        YDSXGR_ADCSLOTSR,
     297};
     298#define YDSXGR_NUM_SAVED_REGS   ARRAY_SIZE(saved_regs_index)
     299
     300static const int pci_saved_regs_index[] = {
     301        /* All Chips */
     302        PCIR_DSXG_LEGACY,
     303        PCIR_DSXG_ELEGACY,
     304        /* YMF 744/754 */
     305        PCIR_DSXG_FMBASE,
     306        PCIR_DSXG_SBBASE,
     307        PCIR_DSXG_MPU401BASE,
     308        PCIR_DSXG_JOYBASE,
     309};
     310#define DSXG_PCI_NUM_SAVED_REGS ARRAY_SIZE(pci_saved_regs_index)
     311#define DSXG_PCI_NUM_SAVED_LEGACY_REGS  2
     312#ifndef TARGET_OS2
     313static_assert(DSXG_PCI_NUM_SAVED_LEGACY_REGS <= DSXG_PCI_NUM_SAVED_REGS);
     314#endif
     315
    271316struct snd_ymfpci {
    272317        int irq;
     
    277322        void __iomem *reg_area_virt;
    278323
    279         unsigned short old_legacy_ctrl;
     324        u16 old_legacy_ctrl;
    280325#ifdef SUPPORT_JOYSTICK
    281326        struct gameport *gameport;
     
    346391        const struct firmware *controller_microcode;
    347392
    348 #ifdef CONFIG_PM_SLEEP
    349         u32 *saved_regs;
     393        u32 saved_regs[YDSXGR_NUM_SAVED_REGS];
    350394        u32 saved_ydsxgr_mode;
    351         u16 saved_dsxg_legacy;
    352         u16 saved_dsxg_elegacy;
    353 #endif
     395        u16 saved_dsxg_pci_regs[DSXG_PCI_NUM_SAVED_REGS];
    354396};
    355397
    356398int snd_ymfpci_create(struct snd_card *card,
    357399                      struct pci_dev *pci,
    358                       unsigned short old_legacy_ctrl);
     400                      u16 old_legacy_ctrl);
    359401void snd_ymfpci_free_gameport(struct snd_ymfpci *chip);
    360402
Note: See TracChangeset for help on using the changeset viewer.