[PATCH] ALSA: ac97: copy subsys values from the PCI device
Rene Herman
rene.herman at gmail.com
Thu Jul 17 14:18:10 CEST 2008
copy the subsys values from the PCI device instead of rereading them.
Signed-off-by: Rene Herman <rene.herman at gmail.com>
---
sound/pci/ac97/ac97_codec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index 45fd290..4f4343d 100644
--- a/sound/pci/ac97/ac97_codec.c
+++ b/sound/pci/ac97/ac97_codec.c
@@ -2015,8 +2015,8 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template,
#ifdef CONFIG_PCI
if (ac97->pci) {
- pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_VENDOR_ID, &ac97->subsystem_vendor);
- pci_read_config_word(ac97->pci, PCI_SUBSYSTEM_ID, &ac97->subsystem_device);
+ ac97->subsystem_vendor = ac97->pci->subsystem_vendor;
+ ac97->subsystem_device = ac97->pci->subsystem_device;
}
#endif
if (bus->ops->reset) {
--
1.5.5
--------------000002040805080104050207--
More information about the Alsa-devel
mailing list