ALSA: emu10k1: fix synthesizer pitch for E-MU cards at 44.1 kHz
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Mon, 12 Jun 2023 19:13:21 +0000 (21:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Jun 2023 05:42:08 +0000 (07:42 +0200)
commite68235c8aae9af08a868e4a4337daf2bcb4f6a92
tree8bcbf376db8a1f0ad30e8418798f5c24b2c79198
parent19b89d15fa978c7e6327287f90d1dde15aff01c4
ALSA: emu10k1: fix synthesizer pitch for E-MU cards at 44.1 kHz

This is only a very partial fix - the frequency-dependent envelope & LFO
register values aren't adjusted.

But I'm not sure they were even correct at 48 kHz to start with, as most
of them are precalculated by common code which assumes an EMU8K-specific
44.1 kHz word clock, and it seems somewhat unlikely that the hardware's
register interpretation was adjusted to compensate for the different
word clock.

In any case I'm not going to spend time on fixing that, as this code is
unlikely to be actually used by anyone today.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230612191325.1315854-6-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emux_synth.h
sound/pci/emu10k1/emu10k1_callback.c
sound/pci/emu10k1/emu10k1_synth.c
sound/synth/emux/emux_synth.c