Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=54d030cc400ef5565a90e71288c23c0a18299dba
Commit:     54d030cc400ef5565a90e71288c23c0a18299dba
Parent:     a839a33d85184b88735ca3d88c4f7123c5ebb6a1
Author:     Clemens Ladisch <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 17 09:36:16 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 16:50:29 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/cmipci.c |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index 2d8d333..12f3371 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,
                                 struct snd_info_buffer *buffer)
 {
        struct cmipci *cm = entry->private_data;
-       int i;
+       int i, v;
        
-       snd_iprintf(buffer, "%s\n\n", cm->card->longname);
-       for (i = 0; i < 0x40; i++) {
-               int v = inb(cm->iobase + i);
+       snd_iprintf(buffer, "%s\n", cm->card->longname);
+       for (i = 0; i < 0x94; i++) {
+               if (i == 0x28)
+                       i = 0x90;
+               v = inb(cm->iobase + i);
                if (i % 4 == 0)
-                       snd_iprintf(buffer, "%02x: ", i);
-               snd_iprintf(buffer, "%02x", v);
-               if (i % 4 == 3)
-                       snd_iprintf(buffer, "\n");
-               else
-                       snd_iprintf(buffer, " ");
+                       snd_iprintf(buffer, "\n%02x:", i);
+               snd_iprintf(buffer, " %02x", v);
        }
+       snd_iprintf(buffer, "\n");
 }
 
 static void __devinit snd_cmipci_proc_init(struct cmipci *cm)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to