diff options
author | Jaroslav Kysela <perex@suse.cz> | 2005-05-30 08:48:16 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-06-22 06:27:34 -0400 |
commit | 69ad07cf98d0ef65cac67bac2ea4381bb499bea8 (patch) | |
tree | 692fc1d61dd23ef6a7dcf3cb1d28d57c7b336d2d /sound/pci/ac97 | |
parent | 745cac56ba6b0222d97a4bf0e347149f20518bf1 (diff) |
[ALSA] AC97 - renamed vendor/device to subvendor/subdevice where appropriate
AC97 Codec,ATIIXP driver,VIA82xx driver
To avoid confusion, the structure members vendor/device were renamed
to subvendor/subdevice, because we compare them with PCI subsystem vendor
and subsystem device.
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 996fcfb09532..a4b72cd2eea0 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -2542,11 +2542,11 @@ int snd_ac97_tune_hardware(ac97_t *ac97, struct ac97_quirk *quirk, const char *o | |||
2542 | return result; | 2542 | return result; |
2543 | } | 2543 | } |
2544 | 2544 | ||
2545 | for (; quirk->vendor; quirk++) { | 2545 | for (; quirk->subvendor; quirk++) { |
2546 | if (quirk->vendor != ac97->subsystem_vendor) | 2546 | if (quirk->subvendor != ac97->subsystem_vendor) |
2547 | continue; | 2547 | continue; |
2548 | if ((! quirk->mask && quirk->device == ac97->subsystem_device) || | 2548 | if ((! quirk->mask && quirk->subdevice == ac97->subsystem_device) || |
2549 | quirk->device == (quirk->mask & ac97->subsystem_device)) { | 2549 | quirk->subdevice == (quirk->mask & ac97->subsystem_device)) { |
2550 | if (quirk->codec_id && quirk->codec_id != ac97->id) | 2550 | if (quirk->codec_id && quirk->codec_id != ac97->id) |
2551 | continue; | 2551 | continue; |
2552 | snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device); | 2552 | snd_printdd("ac97 quirk for %s (%04x:%04x)\n", quirk->name, ac97->subsystem_vendor, ac97->subsystem_device); |