diff options
author | Jaroslav Kysela <perex@suse.cz> | 2004-11-29 11:23:22 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2004-11-29 11:23:22 +0100 |
commit | 3290df1dcef0c75bb44fd736489b511cb3428789 (patch) | |
tree | ed1ff9fb147f3ebb3686bde4986937a35a22640a /sound | |
parent | 137c67de19fc6a2f69f08b8ea7c0895b12f7c6ed (diff) | |
download | history-3290df1dcef0c75bb44fd736489b511cb3428789.tar.gz |
[ALSA] Fixed problem with changing size of etram
EMU10K1/EMU10K2 driver
It doesn't work to double the etram size, because of a bad comparison
statement.
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/emufx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c index de255101d75f67..06d27926602ffc 100644 --- a/sound/pci/emu10k1/emufx.c +++ b/sound/pci/emu10k1/emufx.c @@ -2014,7 +2014,7 @@ int snd_emu10k1_fx8010_tram_setup(emu10k1_t *emu, u32 size) } size = 0x2000 << size_reg; } - if (emu->fx8010.etram_pages.bytes == size) + if ((emu->fx8010.etram_pages.bytes / 2) == size) return 0; spin_lock_irq(&emu->emu_lock); outl(HCFG_LOCKTANKCACHE_MASK | inl(emu->port + HCFG), emu->port + HCFG); |