All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] display EFGH sends in proc file for audigy
@ 2004-11-17 19:17 Lee Revell
  2004-11-17 23:48 ` Lee Revell
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Revell @ 2004-11-17 19:17 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, James Courtier-Dutton

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

Currently we only display the first four sends even on the Audigy which
has 8 sends.  This obscures the fact that we set sends EFGH all to zero
by default which is technically illegal.  (Though it seems to work, the
kX Windows driver sets these last 4 sends to high channels (62-24) and
never sets two sends to the same address as the header file instructs).

This patch adds display of sends EFGH in the /proc file.

Signed-Off-By: Lee Revell <rlrevell@joe-job.com>



[-- Attachment #2: Type: text/x-patch, Size: 1389 bytes --]

Index: alsa/alsa-kernel/pci/emu10k1/emuproc.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emuproc.c,v
retrieving revision 1.21
diff -u -r1.21 emuproc.c
--- alsa/alsa-kernel/pci/emu10k1/emuproc.c	6 Sep 2004 15:05:19 -0000	1.21
+++ alsa/alsa-kernel/pci/emu10k1/emuproc.c	17 Nov 2004 19:11:50 -0000
@@ -175,7 +175,7 @@
 	};
 
 	emu10k1_t *emu = entry->private_data;
-	unsigned int val;
+	unsigned int val, val1;
 	int nefx = emu->audigy ? 64 : 32;
 	char **outputs = emu->audigy ? audigy_outs : creative_outs;
 	int idx;
@@ -184,6 +184,8 @@
 	val = emu->audigy ?
 		snd_emu10k1_ptr_read(emu, A_FXRT1, 0) :
 		snd_emu10k1_ptr_read(emu, FXRT, 0);
+	if (emu->audigy)
+		val2 = snd_emu10k1_ptr_read(emu, A_FXRT2, 0);
 	snd_iprintf(buffer, "Card                  : %s\n",
 		    emu->audigy ? "Audigy" : (emu->APS ? "EMU APS" : "Creative"));
 	snd_iprintf(buffer, "Internal TRAM (words) : 0x%x\n", emu->fx8010.itram_size);
@@ -195,6 +197,11 @@
 			    (val >> 8) & 0x3f,
 			    (val >> 16) & 0x3f,
 			    (val >> 24) & 0x3f);
+		snd_iprintf(buffer, "Effect Send Routing   : E=%i, F=%i, G=%i, H=%i\n",
+			    val1 & 0x3f,
+			    (val1 >> 8) & 0x3f,
+			    (val1 >> 16) & 0x3f,
+			    (val1 >> 24) & 0x3f);
 	} else {
 		snd_iprintf(buffer, "Effect Send Routing   : A=%i, B=%i, C=%i, D=%i\n",
 			    (val >> 16) & 0x0f,

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

* Re: [PATCH] display EFGH sends in proc file for audigy
  2004-11-17 19:17 [PATCH] display EFGH sends in proc file for audigy Lee Revell
@ 2004-11-17 23:48 ` Lee Revell
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Revell @ 2004-11-17 23:48 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, James Courtier-Dutton

On Wed, 2004-11-17 at 14:17 -0500, Lee Revell wrote:
> This patch adds display of sends EFGH in the /proc file.

Disregard this patch.  It has a stupid typo, and besides it turns out
the display of EFX send routing in the /proc file was bogus to begin
with.  This is a per channel register, but it is only ever displayed for
channel 0.  Not very useful.

I will incorporate a fix for this into the per channel register dump
patch.

Lee



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

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

end of thread, other threads:[~2004-11-17 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-17 19:17 [PATCH] display EFGH sends in proc file for audigy Lee Revell
2004-11-17 23:48 ` Lee Revell

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.