ALSA: emu10k1: fix+optimize E-MU stereo capture DSP code
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Wed, 10 May 2023 17:39:06 +0000 (19:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2023 07:16:54 +0000 (09:16 +0200)
commit4102ac29759586e86cf129d66fc5ad5406a431a8
tree8eb8295ff0498d599e883c18ed85b9539c807dbf
parent8cabf83c7aa54530e699be56249fb44f9505c4f3
ALSA: emu10k1: fix+optimize E-MU stereo capture DSP code

Presumably, JDC added the seemingly superfluous indirection over the
temporary register because without it he'd get only zero readings.
However, switching the X and Y operands (or using EMU32 as the A
operand in the temporary load) works just fine. Presumably a DSP bug?

The original code was also actually buggy, though: both channels used
the left volume control.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230510173917.3073107-4-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emufx.c