[ALSA] sound/isa/: cleanups
GUS Library This patch contains the following possible cleanups: - make needlesly global code static - #if 0 the following unused global functions: - gus/gus_volume.c: snd_gf1_gvol_to_lvol_raw - gus/gus_volume.c: snd_gf1_calc_ramp_rate - gus/gus_volume.c: snd_gf1_compute_vibrato - gus/gus_volume.c: snd_gf1_compute_pitchbend - gus/gus_volume.c: snd_gf1_compute_freq - gus/gus_io.c: snd_gf1_i_adlib_write - gus/gus_io.c: snd_gf1_i_write_addr - gus/gus_io.c: snd_gf1_pokew - gus/gus_io.c: snd_gf1_peekw - gus/gus_io.c: snd_gf1_dram_setmem - gus/gus_io.c: snd_gf1_print_global_registers - gus/gus_io.c: snd_gf1_print_setup_registers - gus/gus_io.c: snd_gf1_peek_print_block - gus/gus_io.c: snd_gf1_print_setup_registers - gus/gus_io.c: snd_gf1_peek_print_block - #if 0 the following unused global variable: - gus/gus_tables.h: snd_gf1_scale_table - remove the following unneeded EXPORT_SYMBOL's: - gus/gus_main.c: snd_gf1_i_write16 - gus/gus_main.c: snd_gf1_start - gus/gus_main.c: snd_gf1_stop Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
1baa705b75
commit
209ac85d76
@@ -55,6 +55,8 @@ unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol)
|
||||
return (e << 8) | m;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
unsigned int snd_gf1_gvol_to_lvol_raw(unsigned short gf1_vol)
|
||||
{
|
||||
unsigned int rvol;
|
||||
@@ -108,6 +110,8 @@ unsigned int snd_gf1_calc_ramp_rate(snd_gus_card_t * gus,
|
||||
return (range << 6) | (increment & 0x3f);
|
||||
}
|
||||
|
||||
#endif /* 0 */
|
||||
|
||||
unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq16)
|
||||
{
|
||||
freq16 >>= 3;
|
||||
@@ -120,6 +124,8 @@ unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq16)
|
||||
return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
short snd_gf1_compute_vibrato(short cents, unsigned short fc_register)
|
||||
{
|
||||
static short vibrato_table[] =
|
||||
@@ -208,3 +214,5 @@ unsigned short snd_gf1_compute_freq(unsigned int freq,
|
||||
}
|
||||
return (unsigned short) fc;
|
||||
}
|
||||
|
||||
#endif /* 0 */
|
||||
|
Reference in New Issue
Block a user