diff options
author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2024-04-28 11:37:16 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-04-28 11:58:12 +0200 |
commit | 15c7e87aa88f0ab2d51c2e2123b127a6d693ca21 (patch) | |
tree | ca295c5d865f35766620fd1292bf2031f0f0b12f /sound | |
parent | e8289fd3fa65d60cf04dab6f7845eda352c04ea6 (diff) | |
download | linux-stable-15c7e87aa88f0ab2d51c2e2123b127a6d693ca21.tar.gz linux-stable-15c7e87aa88f0ab2d51c2e2123b127a6d693ca21.tar.bz2 linux-stable-15c7e87aa88f0ab2d51c2e2123b127a6d693ca21.zip |
ALSA: emu10k1: make E-MU FPGA writes potentially more reliable
We did not delay after the second strobe signal, so another immediately
following access could potentially corrupt the written value.
This is a purely speculative fix with no supporting evidence, but after
taking out the spinlocks around the writes, it seems plausible that a
modern processor could be actually too fast. Also, it's just cleaner to
be consistent.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20240428093716.3198666-7-oswald.buddenhagen@gmx.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/io.c b/sound/pci/emu10k1/io.c index f3260a81e47b..f4a1c2d4b078 100644 --- a/sound/pci/emu10k1/io.c +++ b/sound/pci/emu10k1/io.c @@ -285,6 +285,7 @@ static void snd_emu1010_fpga_write_locked(struct snd_emu10k1 *emu, u32 reg, u32 outw(value, emu->port + A_GPIO); udelay(10); outw(value | 0x80 , emu->port + A_GPIO); /* High bit clocks the value into the fpga. */ + udelay(10); } void snd_emu1010_fpga_write(struct snd_emu10k1 *emu, u32 reg, u32 value) |