All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] more proc lines for miro
@ 2005-03-26 20:58 Martin Langer
  2005-03-29 13:55 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Langer @ 2005-03-26 20:58 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Hi,

Summary: the patch adds more helpful proc lines to the miro driver
Signed-off-by: Martin Langer <martin-langer@gmx.de>


bye,
martin

[-- Attachment #2: miroproc.patch --]
[-- Type: text/plain, Size: 2608 bytes --]

--- isa/opti9xx/miro.c.ORIGINAL	Sat Mar 26 19:01:09 2005
+++ isa/opti9xx/miro.c	Sat Mar 26 21:28:32 2005
@@ -796,8 +796,7 @@
 			       snd_info_buffer_t * buffer)
 {
 	miro_t *miro = (miro_t *) entry->private_data;
-
-	snd_iprintf(buffer, "\n");
+	char* model = "unknown";
 
 	/* miroSOUND PCM1 pro, early PCM12 */
 
@@ -806,10 +805,10 @@
 	    (miro->aci_product == 'A')) {
 		switch(miro->aci_version) {
 		case 3:
-			snd_iprintf(buffer, "miroSOUND PCM1 pro\n\n");
+			model = "miroSOUND PCM1 pro";
 			break;
 		default:
-			snd_iprintf(buffer, "miroSOUND PCM1 pro / (early) PCM12\n\n");
+			model = "miroSOUND PCM1 pro / (early) PCM12";
 			break;
 		}
 	}
@@ -821,13 +820,13 @@
 	    (miro->aci_product == 'B')) {
 		switch(miro->aci_version) {
 		case 4:
-			snd_iprintf(buffer, "miroSOUND PCM12\n\n");
+			model = "miroSOUND PCM12";
 			break;
 		case 176:
-			snd_iprintf(buffer, "miroSOUND PCM12 (Rev. E)\n\n");
+			model = "miroSOUND PCM12 (Rev. E)";
 			break;
 		default:
-			snd_iprintf(buffer, "miroSOUND PCM12 / PCM12 pnp\n\n");
+			model = "miroSOUND PCM12 / PCM12 pnp";
 			break;
 		}
 	}
@@ -837,7 +836,19 @@
 	if ((miro->hardware == OPTi9XX_HW_82C924) &&
 	    (miro->aci_vendor == 'm') && 
 	    (miro->aci_product == 'C')) 
-		snd_iprintf(buffer, "miroSOUND PCM20 radio\n\n");
+		model = "miroSOUND PCM20 radio";
+
+	snd_iprintf(buffer, "\nGeneral information:\n");
+	snd_iprintf(buffer, "  model   : %s\n", model);
+	snd_iprintf(buffer, "  opti    : %s\n", miro->name);
+	snd_iprintf(buffer, "  codec   : %s\n", miro->pcm->name);
+	snd_iprintf(buffer, "  port    : 0x%lx\n", miro->wss_base);
+	snd_iprintf(buffer, "  irq     : %d\n", miro->irq);
+	snd_iprintf(buffer, "  dma     : %d,%d\n\n", miro->dma1, miro->dma2);
+
+	snd_iprintf(buffer, "MPU-401:\n");
+	snd_iprintf(buffer, "  port    : 0x%lx\n", miro->mpu_port);
+	snd_iprintf(buffer, "  irq     : %d\n\n", miro->mpu_irq);
 
 	snd_iprintf(buffer, "ACI information:\n");
 	snd_iprintf(buffer, "  vendor  : ");
@@ -868,9 +879,13 @@
 
 	snd_iprintf(buffer, "  firmware: %d (0x%x)\n",
 		    miro->aci_version, miro->aci_version);
-	snd_iprintf(buffer, "  port    : 0x%lx-0x%lx\n\n", 
+	snd_iprintf(buffer, "  port    : 0x%lx-0x%lx\n", 
 		    miro->aci_port, miro->aci_port+2);
-
+	snd_iprintf(buffer, "  wss     : 0x%x\n", wss);
+	snd_iprintf(buffer, "  ide     : 0x%x\n", ide);
+	snd_iprintf(buffer, "  solomode: 0x%x\n", miro->aci_solomode);
+	snd_iprintf(buffer, "  amp     : 0x%x\n", miro->aci_amp);
+	snd_iprintf(buffer, "  preamp  : 0x%x\n", miro->aci_preamp);
 }
 
 static void __devinit snd_miro_proc_init(miro_t * miro)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-29 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-26 20:58 [PATCH] more proc lines for miro Martin Langer
2005-03-29 13:55 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.