Skip to content

Commit f67c90d

Browse files
morimototiwai
authored andcommitted
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>
1 parent 2a6794a commit f67c90d

2 files changed

Lines changed: 2 additions & 30 deletions

File tree

include/sound/gus.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -513,22 +513,6 @@ struct _SND_IW_LFO_PROGRAM {
513513
unsigned short depth;
514514
};
515515

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-
532516
/* gus_mem.c */
533517

534518
void snd_gf1_mem_lock(struct snd_gf1_mem * alloc, int xup);

sound/isa/gus/gus_reset.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice)
141141
if (gus->gf1.enh_mode)
142142
snd_gf1_write8(gus, SNDRV_GF1_VB_ACCUMULATOR, 0);
143143
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
148144
}
149145

150146
static void snd_gf1_clear_voices(struct snd_gus_card * gus, unsigned short v_min,
@@ -182,10 +178,6 @@ static void snd_gf1_clear_voices(struct snd_gus_card * gus, unsigned short v_min
182178
snd_gf1_write16(gus, SNDRV_GF1_VW_EFFECT_VOLUME_FINAL, 0);
183179
}
184180
spin_unlock_irqrestore(&gus->reg_lock, flags);
185-
#if 0
186-
snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_VIBRATO);
187-
snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_TREMOLO);
188-
#endif
189181
}
190182
}
191183

@@ -335,9 +327,7 @@ int snd_gf1_start(struct snd_gus_card * gus)
335327
} else {
336328
gus->gf1.sw_lfo = 1;
337329
}
338-
#if 0
339-
snd_gf1_lfo_init(gus);
340-
#endif
330+
341331
if (gus->gf1.memory > 0)
342332
for (i = 0; i < 4; i++)
343333
snd_gf1_poke(gus, gus->gf1.default_voice_address + i, 0);
@@ -391,8 +381,6 @@ int snd_gf1_stop(struct snd_gus_card * gus)
391381
snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* disable IRQ & DAC */
392382
snd_gf1_timers_done(gus);
393383
snd_gf1_mem_done(gus);
394-
#if 0
395-
snd_gf1_lfo_done(gus);
396-
#endif
384+
397385
return 0;
398386
}

0 commit comments

Comments
 (0)