All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - emu10k1 external tram size
@ 2005-03-20 19:41 Peter Zubaj
  2005-03-21 19:45 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Zubaj @ 2005-03-20 19:41 UTC (permalink / raw)
  To: alsa-devel

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

Hi,

This patch fixes wrong size reported by driver for external tram. It 
reports size in bytes and should report it in samples as for internal tram.

Signed off: Peter Zubaj <pzad@pobox.sk>

[-- Attachment #2: etram_size.diff --]
[-- Type: text/x-patch, Size: 1383 bytes --]

diff -r -u o/alsa-kernel/pci/emu10k1/emufx.c n/alsa-kernel/pci/emu10k1/emufx.c
--- o/alsa-kernel/pci/emu10k1/emufx.c	2004-11-23 16:11:54.000000000 +0100
+++ n/alsa-kernel/pci/emu10k1/emufx.c	2005-03-20 20:31:29.000000000 +0100
@@ -2064,7 +2064,7 @@
 	memset(info, 0, sizeof(info));
 	info->card = emu->card_type;
 	info->internal_tram_size = emu->fx8010.itram_size;
-	info->external_tram_size = emu->fx8010.etram_pages.bytes;
+	info->external_tram_size = emu->fx8010.etram_pages.bytes / 2;
 	fxbus = fxbuses;
 	extin = emu->audigy ? audigy_ins : creative_ins;
 	extout = emu->audigy ? audigy_outs : creative_outs;
diff -r -u o/alsa-kernel/pci/emu10k1/emuproc.c n/alsa-kernel/pci/emu10k1/emuproc.c
--- o/alsa-kernel/pci/emu10k1/emuproc.c	2004-11-23 16:06:17.000000000 +0100
+++ n/alsa-kernel/pci/emu10k1/emuproc.c	2005-03-20 20:29:40.000000000 +0100
@@ -184,7 +184,7 @@
 	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);
-	snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes);
+	snd_iprintf(buffer, "External TRAM (words) : 0x%x\n", (int)emu->fx8010.etram_pages.bytes / 2);
 	snd_iprintf(buffer, "\n");
 	snd_iprintf(buffer, "Effect Send Routing   :\n");
 	for (idx = 0; idx < NUM_G; idx++) {

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

* Re: [PATCH] - emu10k1 external tram size
  2005-03-20 19:41 [PATCH] - emu10k1 external tram size Peter Zubaj
@ 2005-03-21 19:45 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2005-03-21 19:45 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: alsa-devel

At Sun, 20 Mar 2005 20:41:24 +0100,
Peter Zubaj wrote:
> 
> Hi,
> 
> This patch fixes wrong size reported by driver for external tram. It 
> reports size in bytes and should report it in samples as for internal tram.
> 
> Signed off: Peter Zubaj <pzad@pobox.sk>

Applied to CVS.  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

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

end of thread, other threads:[~2005-03-21 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20 19:41 [PATCH] - emu10k1 external tram size Peter Zubaj
2005-03-21 19:45 ` 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.