Changeset 772 for GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.h
- Timestamp:
- Apr 19, 2025, 8:08:37 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-6.6-LTS (added) merged: 765,768-769 /GPL/branches/uniaud32-exp (added) merged: 735-741,743-744,748-751,753-760,762-764 /GPL/branches/uniaud32-next merged: 718-734
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.h
r717 r772 269 269 }; 270 270 271 static 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 300 static 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 313 static_assert(DSXG_PCI_NUM_SAVED_LEGACY_REGS <= DSXG_PCI_NUM_SAVED_REGS); 314 #endif 315 271 316 struct snd_ymfpci { 272 317 int irq; … … 277 322 void __iomem *reg_area_virt; 278 323 279 u nsigned shortold_legacy_ctrl;324 u16 old_legacy_ctrl; 280 325 #ifdef SUPPORT_JOYSTICK 281 326 struct gameport *gameport; … … 346 391 const struct firmware *controller_microcode; 347 392 348 #ifdef CONFIG_PM_SLEEP 349 u32 *saved_regs; 393 u32 saved_regs[YDSXGR_NUM_SAVED_REGS]; 350 394 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]; 354 396 }; 355 397 356 398 int snd_ymfpci_create(struct snd_card *card, 357 399 struct pci_dev *pci, 358 u nsigned shortold_legacy_ctrl);400 u16 old_legacy_ctrl); 359 401 void snd_ymfpci_free_gameport(struct snd_ymfpci *chip); 360 402
Note:
See TracChangeset
for help on using the changeset viewer.