aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2005-11-14 08:48:59 +0100
committerJaroslav Kysela <perex@suse.cz>2006-01-03 12:16:10 +0100
commitb4a621f547ce78d6a415b3be2febd29b55e3235c (patch)
tree76b3531b79c644c669b8a6fcc50cc1fbc64d5e2b /sound
parent6ef7e8614c03f90ecb924938f5cc074af2723d35 (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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/ac97/ac97_proc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c
index a040b2666ed..f4333b867bd 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
snd_ac97_get_name(NULL, ac97->id, name, 0);
snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name);
+
+
if ((ac97->scaps & AC97_SCAP_AUDIO) == 0)
goto __modem;
+ snd_iprintf(buffer, "PCI Subsys Vendor: 0x%04x\n",
+ ac97->subsystem_vendor);
+ snd_iprintf(buffer, "PCI Subsys Device: 0x%04x\n\n",
+ ac97->subsystem_device);
+
if ((ac97->ext_id & AC97_EI_REV_MASK) >= AC97_EI_REV_23) {
val = snd_ac97_read(ac97, AC97_INT_PAGING);
snd_ac97_update_bits(ac97, AC97_INT_PAGING,