aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cmipci.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2007-09-17 03:36:16 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 10:50:29 -0400
commit54d030cc400ef5565a90e71288c23c0a18299dba (patch)
tree38b7d4e5bd4c73d6d0cff15a62c0bc7522dd044b /sound/pci/cmipci.c
parenta839a33d85184b88735ca3d88c4f7123c5ebb6a1 (diff)
[ALSA] cmipci: show more registers in proc file
Show a dump of all registers in the 0x00-0x27 and 0x90-0x93 ranges in the 'cmipci' proc file. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r--sound/pci/cmipci.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index 2d8d3331bb96..12f33718e6d1 100644
--- a/sound/pci/cmipci.c
+++ b/sound/pci/cmipci.c
@@ -2652,19 +2652,18 @@ static void snd_cmipci_proc_read(struct snd_info_entry *entry,
2652 struct snd_info_buffer *buffer) 2652 struct snd_info_buffer *buffer)
2653{ 2653{
2654 struct cmipci *cm = entry->private_data; 2654 struct cmipci *cm = entry->private_data;
2655 int i; 2655 int i, v;
2656 2656
2657 snd_iprintf(buffer, "%s\n\n", cm->card->longname); 2657 snd_iprintf(buffer, "%s\n", cm->card->longname);
2658 for (i = 0; i < 0x40; i++) { 2658 for (i = 0; i < 0x94; i++) {
2659 int v = inb(cm->iobase + i); 2659 if (i == 0x28)
2660 i = 0x90;
2661 v = inb(cm->iobase + i);
2660 if (i % 4 == 0) 2662 if (i % 4 == 0)
2661 snd_iprintf(buffer, "%02x: ", i); 2663 snd_iprintf(buffer, "\n%02x:", i);
2662 snd_iprintf(buffer, "%02x", v); 2664 snd_iprintf(buffer, " %02x", v);
2663 if (i % 4 == 3)
2664 snd_iprintf(buffer, "\n");
2665 else
2666 snd_iprintf(buffer, " ");
2667 } 2665 }
2666 snd_iprintf(buffer, "\n");
2668} 2667}
2669 2668
2670static void __devinit snd_cmipci_proc_init(struct cmipci *cm) 2669static void __devinit snd_cmipci_proc_init(struct cmipci *cm)