ChangeSet 1.2181.25.32, 2005/03/22 09:16:05+01:00, [EMAIL PROTECTED]

        [ALSA] emu10k1 external tram size
        
        EMU10K1/EMU10K2 driver
        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-by: Peter Zubaj <[EMAIL PROTECTED]>
        Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>



 emufx.c   |    2 +-
 emuproc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c
--- a/sound/pci/emu10k1/emufx.c 2005-03-30 16:16:01 -08:00
+++ b/sound/pci/emu10k1/emufx.c 2005-03-30 16:16:01 -08:00
@@ -2092,7 +2092,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 -Nru a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c
--- a/sound/pci/emu10k1/emuproc.c       2005-03-30 16:16:01 -08:00
+++ b/sound/pci/emu10k1/emuproc.c       2005-03-30 16:16:01 -08:00
@@ -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++) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to