Skip to contentSkip to conversation

more proc lines for miro

PATCH Applied Martin Langer 2 participants 2 messages Mar 26, 2005 – Mar 29, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 more proc lines for miro

Hi,

Summary: the patch adds more helpful proc lines to the miro driver

bye,
martin

opti9xx/miro.c renamed from opti9xx/miro.c.ORIGINAL +25 -10
@@ -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)
Applied
#1 lore raw

At Sat, 26 Mar 2005 21:58:32 +0100,

Quoted 5 lines · Martin Langer

Hi,

Summary: the patch adds more helpful proc lines to the miro driver

Applied. Thanks.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click