diff options
author | Tasos Sahanidis <tasos@tasossah.com> | 2023-03-29 07:14:39 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-03-29 09:28:27 +0300 |
commit | 39fef76ce533dd1fe3b55e929cdceb3269a91c99 (patch) | |
tree | 535c78078fbe965151fb1dcaff91f07f2e17d868 /sound/pci/ymfpci/ymfpci.h | |
parent | 69a6c1ba4238ef5ce01afb6f9e1b9be79b765d5f (diff) | |
download | linux-39fef76ce533dd1fe3b55e929cdceb3269a91c99.tar.xz |
ALSA: ymfpci: Store saved legacy registers in an array
In preparation for storing more than two legacy PCI registers, the
existing ones are moved into a new array.
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Link: https://lore.kernel.org/r/20230329041440.177363-4-tasos@tasossah.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ymfpci/ymfpci.h')
-rw-r--r-- | sound/pci/ymfpci/ymfpci.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/pci/ymfpci/ymfpci.h b/sound/pci/ymfpci/ymfpci.h index 04e2800049cd..192f6ce9b9fa 100644 --- a/sound/pci/ymfpci/ymfpci.h +++ b/sound/pci/ymfpci/ymfpci.h @@ -297,6 +297,12 @@ static const int saved_regs_index[] = { }; #define YDSXGR_NUM_SAVED_REGS ARRAY_SIZE(saved_regs_index) +static const int pci_saved_regs_index[] = { + PCIR_DSXG_LEGACY, + PCIR_DSXG_ELEGACY, +}; +#define DSXG_PCI_NUM_SAVED_REGS ARRAY_SIZE(pci_saved_regs_index) + struct snd_ymfpci { int irq; @@ -376,8 +382,7 @@ struct snd_ymfpci { u32 saved_regs[YDSXGR_NUM_SAVED_REGS]; u32 saved_ydsxgr_mode; - u16 saved_dsxg_legacy; - u16 saved_dsxg_elegacy; + u16 saved_dsxg_pci_regs[DSXG_PCI_NUM_SAVED_REGS]; }; int snd_ymfpci_create(struct snd_card *card, |