ALSA: emu10k1: fix sample signedness issues in wavetable loader
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Sat, 6 Apr 2024 06:48:22 +0000 (08:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 7 Apr 2024 06:35:49 +0000 (08:35 +0200)
commit38fc804a776ea66ca8ac8113022e445c587f5e01
treee8e9adcc43e9a645bfa32a7ffb0ed948fb3c6246
parent6e36d4c2744e143625cd2fcbf9d38ff76cda5e2a
ALSA: emu10k1: fix sample signedness issues in wavetable loader

The hardware supports S16LE and U8 samples, while U16LE and S8 (which
the driver implicitly claims to support) require sign flipping.

Note that this matters only for the GUS patch loader, as the implemented
SoundFont v2.01 spec is limited to S16LE.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Message-ID: <20240406064830.1029573-10-oswald.buddenhagen@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h
sound/pci/emu10k1/emu10k1_patch.c
sound/pci/emu10k1/memory.c