[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>
This commit is contained in:
parent
a839a33d85
commit
54d030cc40
|
@ -2652,19 +2652,18 @@ static void snd_cmipci_proc_read(struct snd_info_entry *entry,
|
||||||
struct snd_info_buffer *buffer)
|
struct snd_info_buffer *buffer)
|
||||||
{
|
{
|
||||||
struct cmipci *cm = entry->private_data;
|
struct cmipci *cm = entry->private_data;
|
||||||
int i;
|
int i, v;
|
||||||
|
|
||||||
snd_iprintf(buffer, "%s\n\n", cm->card->longname);
|
snd_iprintf(buffer, "%s\n", cm->card->longname);
|
||||||
for (i = 0; i < 0x40; i++) {
|
for (i = 0; i < 0x94; i++) {
|
||||||
int v = inb(cm->iobase + i);
|
if (i == 0x28)
|
||||||
|
i = 0x90;
|
||||||
|
v = inb(cm->iobase + i);
|
||||||
if (i % 4 == 0)
|
if (i % 4 == 0)
|
||||||
snd_iprintf(buffer, "%02x: ", i);
|
snd_iprintf(buffer, "\n%02x:", i);
|
||||||
snd_iprintf(buffer, "%02x", v);
|
snd_iprintf(buffer, " %02x", v);
|
||||||
if (i % 4 == 3)
|
|
||||||
snd_iprintf(buffer, "\n");
|
|
||||||
else
|
|
||||||
snd_iprintf(buffer, " ");
|
|
||||||
}
|
}
|
||||||
|
snd_iprintf(buffer, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __devinit snd_cmipci_proc_init(struct cmipci *cm)
|
static void __devinit snd_cmipci_proc_init(struct cmipci *cm)
|
||||||
|
|
Loading…
Reference in a new issue