Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: isa/gus: remove snd_gf1_lfo_xxx()

There is no snd_gf1_lfo_xxx() implementation, and no one is using it.
Let's remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87o6w2pqm8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Kuninori Morimoto and committed by
Takashi Iwai
f67c90d6 2a6794a9

+2 -30
-16
include/sound/gus.h
··· 513 513 unsigned short depth; 514 514 }; 515 515 516 - #if 0 517 - extern irqreturn_t snd_gf1_lfo_effect_interrupt(struct snd_gus_card * gus, snd_gf1_voice_t * voice); 518 - #endif 519 - extern void snd_gf1_lfo_init(struct snd_gus_card * gus); 520 - extern void snd_gf1_lfo_done(struct snd_gus_card * gus); 521 - extern void snd_gf1_lfo_program(struct snd_gus_card * gus, int voice, int lfo_type, struct _SND_IW_LFO_PROGRAM *program); 522 - extern void snd_gf1_lfo_enable(struct snd_gus_card * gus, int voice, int lfo_type); 523 - extern void snd_gf1_lfo_disable(struct snd_gus_card * gus, int voice, int lfo_type); 524 - extern void snd_gf1_lfo_change_freq(struct snd_gus_card * gus, int voice, int lfo_type, int freq); 525 - extern void snd_gf1_lfo_change_depth(struct snd_gus_card * gus, int voice, int lfo_type, int depth); 526 - extern void snd_gf1_lfo_setup(struct snd_gus_card * gus, int voice, int lfo_type, int freq, int current_depth, int depth, int sweep, int shape); 527 - extern void snd_gf1_lfo_shutdown(struct snd_gus_card * gus, int voice, int lfo_type); 528 - #if 0 529 - extern void snd_gf1_lfo_command(struct snd_gus_card * gus, int voice, unsigned char *command); 530 - #endif 531 - 532 516 /* gus_mem.c */ 533 517 534 518 void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup);
+2 -14
sound/isa/gus/gus_reset.c
··· 141 141 if (gus->gf1.enh_mode) 142 142 snd_gf1_write8(gus, SNDRV_GF1_VB_ACCUMULATOR, 0); 143 143 spin_unlock_irqrestore(&gus->reg_lock, flags); 144 - #if 0 145 - snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_VIBRATO); 146 - snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_TREMOLO); 147 - #endif 148 144 } 149 145 150 146 static void snd_gf1_clear_voices(struct snd_gus_card * gus, unsigned short v_min, ··· 178 182 snd_gf1_write16(gus, SNDRV_GF1_VW_EFFECT_VOLUME_FINAL, 0); 179 183 } 180 184 spin_unlock_irqrestore(&gus->reg_lock, flags); 181 - #if 0 182 - snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_VIBRATO); 183 - snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_TREMOLO); 184 - #endif 185 185 } 186 186 } 187 187 ··· 327 335 } else { 328 336 gus->gf1.sw_lfo = 1; 329 337 } 330 - #if 0 331 - snd_gf1_lfo_init(gus); 332 - #endif 338 + 333 339 if (gus->gf1.memory > 0) 334 340 for (i = 0; i < 4; i++) 335 341 snd_gf1_poke(gus, gus->gf1.default_voice_address + i, 0); ··· 381 391 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* disable IRQ & DAC */ 382 392 snd_gf1_timers_done(gus); 383 393 snd_gf1_mem_done(gus); 384 - #if 0 385 - snd_gf1_lfo_done(gus); 386 - #endif 394 + 387 395 return 0; 388 396 }