linux/sound/synth/emux
Oswald Buddenhagen 4c4cbe6682 ALSA: emux: simplify snd_sf_list.callback handling
Both drivers provide both sample_new and sample_free, and it makes no
sense to pretend that they could not. In fact, load_data() would already
crash if sample_new was null. So remove the remaining null checks.

Contrary to that, the emu10k1 driver actually has a null sample_reset,
though I'm not convinced that this inconsistency is justified.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Message-ID: <20240406064830.1029573-18-oswald.buddenhagen@gmx.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-04-07 08:35:53 +02:00
..
emux_effect.c ALSA: synth: Fix assignment in if condition 2021-06-09 17:30:35 +02:00
emux_hwdep.c ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch() 2024-04-07 08:35:45 +02:00
emux_nrpn.c ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() 2023-02-07 14:32:33 +01:00
emux_oss.c ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch() 2024-04-07 08:35:45 +02:00
emux_proc.c ALSA: emux: fix /proc teardown at module unload 2024-04-07 08:35:44 +02:00
emux_seq.c ALSA: emux: fix validation of snd_emux.num_ports 2024-04-07 08:35:46 +02:00
emux_synth.c ALSA: emu10k1: fix synthesizer pitch for E-MU cards at 44.1 kHz 2023-06-13 07:42:08 +02:00
emux_voice.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
emux.c ALSA: emux: simplify snd_sf_list.callback handling 2024-04-07 08:35:53 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
soundfont.c ALSA: emux: simplify snd_sf_list.callback handling 2024-04-07 08:35:53 +02:00