From: Peter Zubaj <pzad@pobox.sk>
To: alsa-devel@alsa-project.org
Subject: [PATCH] - emu10k1 external tram size
Date: Sun, 20 Mar 2005 20:41:24 +0100 [thread overview]
Message-ID: <423DD1E4.5020400@pobox.sk> (raw)
[-- 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++) {
next reply other threads:[~2005-03-20 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-20 19:41 Peter Zubaj [this message]
2005-03-21 19:45 ` [PATCH] - emu10k1 external tram size Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=423DD1E4.5020400@pobox.sk \
--to=pzad@pobox.sk \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox