diff options
author | Jaroslav Kysela <perex@suse.cz> | 2005-11-14 02:48:59 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:16:10 -0500 |
commit | b4a621f547ce78d6a415b3be2febd29b55e3235c (patch) | |
tree | 76b3531b79c644c669b8a6fcc50cc1fbc64d5e2b | |
parent | 6ef7e8614c03f90ecb924938f5cc074af2723d35 (diff) |
[ALSA] ac97 - procfs - print PCI subsystem vendor/device values
Modules: AC97 Codec
For debugging and problem finding purposes, show also the PCI subsystem
vendor/device values in the ac97#X proc file.
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r-- | sound/pci/ac97/ac97_proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c index a040b2666ed7..f4333b867bd5 100644 --- a/sound/pci/ac97/ac97_proc.c +++ b/sound/pci/ac97/ac97_proc.c | |||
@@ -79,9 +79,16 @@ static void snd_ac97_proc_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, in | |||
79 | 79 | ||
80 | snd_ac97_get_name(NULL, ac97->id, name, 0); | 80 | snd_ac97_get_name(NULL, ac97->id, name, 0); |
81 | snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); | 81 | snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); |
82 | |||
83 | |||
82 | if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) | 84 | if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) |
83 | goto __modem; | 85 | goto __modem; |
84 | 86 | ||
87 | snd_iprintf(buffer, "PCI Subsys Vendor: 0x%04x\n", | ||
88 | ac97->subsystem_vendor); | ||
89 | snd_iprintf(buffer, "PCI Subsys Device: 0x%04x\n\n", | ||
90 | ac97->subsystem_device); | ||
91 | |||
85 | if ((ac97->ext_id & AC97_EI_REV_MASK) >= AC97_EI_REV_23) { | 92 | if ((ac97->ext_id & AC97_EI_REV_MASK) >= AC97_EI_REV_23) { |
86 | val = snd_ac97_read(ac97, AC97_INT_PAGING); | 93 | val = snd_ac97_read(ac97, AC97_INT_PAGING); |
87 | snd_ac97_update_bits(ac97, AC97_INT_PAGING, | 94 | snd_ac97_update_bits(ac97, AC97_INT_PAGING, |