diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-23 04:29:53 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 04:11:38 -0400 |
commit | 209ac85d76e4edf05779b4bd5c2a92b059e9ab4d (patch) | |
tree | bbed71e0eed26c7cf39cc4729906528a249b3b1d /include/sound/gus.h | |
parent | 1baa705b75124df7cfe3d5d2706f794a14d26ad0 (diff) |
[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>
Diffstat (limited to 'include/sound/gus.h')
-rw-r--r-- | include/sound/gus.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/sound/gus.h b/include/sound/gus.h index 8b6287a6fff..b4b461ca173 100644 --- a/include/sound/gus.h +++ b/include/sound/gus.h | |||
@@ -526,9 +526,6 @@ extern void snd_gf1_adlib_write(snd_gus_card_t * gus, unsigned char reg, unsigne | |||
526 | extern void snd_gf1_dram_addr(snd_gus_card_t * gus, unsigned int addr); | 526 | extern void snd_gf1_dram_addr(snd_gus_card_t * gus, unsigned int addr); |
527 | extern void snd_gf1_poke(snd_gus_card_t * gus, unsigned int addr, unsigned char data); | 527 | extern void snd_gf1_poke(snd_gus_card_t * gus, unsigned int addr, unsigned char data); |
528 | extern unsigned char snd_gf1_peek(snd_gus_card_t * gus, unsigned int addr); | 528 | extern unsigned char snd_gf1_peek(snd_gus_card_t * gus, unsigned int addr); |
529 | extern void snd_gf1_pokew(snd_gus_card_t * gus, unsigned int addr, unsigned short data); | ||
530 | extern unsigned short snd_gf1_peekw(snd_gus_card_t * gus, unsigned int addr); | ||
531 | extern void snd_gf1_dram_setmem(snd_gus_card_t * gus, unsigned int addr, unsigned short value, unsigned int count); | ||
532 | extern void snd_gf1_write_addr(snd_gus_card_t * gus, unsigned char reg, unsigned int addr, short w_16bit); | 529 | extern void snd_gf1_write_addr(snd_gus_card_t * gus, unsigned char reg, unsigned int addr, short w_16bit); |
533 | extern unsigned int snd_gf1_read_addr(snd_gus_card_t * gus, unsigned char reg, short w_16bit); | 530 | extern unsigned int snd_gf1_read_addr(snd_gus_card_t * gus, unsigned char reg, short w_16bit); |
534 | extern void snd_gf1_i_ctrl_stop(snd_gus_card_t * gus, unsigned char reg); | 531 | extern void snd_gf1_i_ctrl_stop(snd_gus_card_t * gus, unsigned char reg); |
@@ -544,9 +541,6 @@ extern inline unsigned short snd_gf1_i_read16(snd_gus_card_t * gus, unsigned cha | |||
544 | { | 541 | { |
545 | return snd_gf1_i_look16(gus, reg | 0x80); | 542 | return snd_gf1_i_look16(gus, reg | 0x80); |
546 | } | 543 | } |
547 | extern void snd_gf1_i_adlib_write(snd_gus_card_t * gus, unsigned char reg, unsigned char data); | ||
548 | extern void snd_gf1_i_write_addr(snd_gus_card_t * gus, unsigned char reg, unsigned int addr, short w_16bit); | ||
549 | extern unsigned int snd_gf1_i_read_addr(snd_gus_card_t * gus, unsigned char reg, short w_16bit); | ||
550 | 544 | ||
551 | extern void snd_gf1_select_active_voices(snd_gus_card_t * gus); | 545 | extern void snd_gf1_select_active_voices(snd_gus_card_t * gus); |
552 | 546 | ||
@@ -580,10 +574,6 @@ extern void snd_gf1_lfo_command(snd_gus_card_t * gus, int voice, unsigned char * | |||
580 | 574 | ||
581 | void snd_gf1_mem_lock(snd_gf1_mem_t * alloc, int xup); | 575 | void snd_gf1_mem_lock(snd_gf1_mem_t * alloc, int xup); |
582 | int snd_gf1_mem_xfree(snd_gf1_mem_t * alloc, snd_gf1_mem_block_t * block); | 576 | int snd_gf1_mem_xfree(snd_gf1_mem_t * alloc, snd_gf1_mem_block_t * block); |
583 | snd_gf1_mem_block_t *snd_gf1_mem_look(snd_gf1_mem_t * alloc, | ||
584 | unsigned int address); | ||
585 | snd_gf1_mem_block_t *snd_gf1_mem_share(snd_gf1_mem_t * alloc, | ||
586 | unsigned int *share_id); | ||
587 | snd_gf1_mem_block_t *snd_gf1_mem_alloc(snd_gf1_mem_t * alloc, int owner, | 577 | snd_gf1_mem_block_t *snd_gf1_mem_alloc(snd_gf1_mem_t * alloc, int owner, |
588 | char *name, int size, int w_16, | 578 | char *name, int size, int w_16, |
589 | int align, unsigned int *share_id); | 579 | int align, unsigned int *share_id); |
@@ -608,23 +598,13 @@ int snd_gf1_dma_transfer_block(snd_gus_card_t * gus, | |||
608 | /* gus_volume.c */ | 598 | /* gus_volume.c */ |
609 | 599 | ||
610 | unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol); | 600 | unsigned short snd_gf1_lvol_to_gvol_raw(unsigned int vol); |
611 | unsigned int snd_gf1_gvol_to_lvol_raw(unsigned short gf1_vol); | ||
612 | unsigned int snd_gf1_calc_ramp_rate(snd_gus_card_t * gus, | ||
613 | unsigned short start, | ||
614 | unsigned short end, | ||
615 | unsigned int us); | ||
616 | unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq2); | 601 | unsigned short snd_gf1_translate_freq(snd_gus_card_t * gus, unsigned int freq2); |
617 | unsigned short snd_gf1_compute_pitchbend(unsigned short pitchbend, unsigned short sens); | ||
618 | unsigned short snd_gf1_compute_freq(unsigned int freq, | ||
619 | unsigned int rate, | ||
620 | unsigned short mix_rate); | ||
621 | 602 | ||
622 | /* gus_reset.c */ | 603 | /* gus_reset.c */ |
623 | 604 | ||
624 | void snd_gf1_set_default_handlers(snd_gus_card_t * gus, unsigned int what); | 605 | void snd_gf1_set_default_handlers(snd_gus_card_t * gus, unsigned int what); |
625 | void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice); | 606 | void snd_gf1_smart_stop_voice(snd_gus_card_t * gus, unsigned short voice); |
626 | void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice); | 607 | void snd_gf1_stop_voice(snd_gus_card_t * gus, unsigned short voice); |
627 | void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max); | ||
628 | void snd_gf1_stop_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max); | 608 | void snd_gf1_stop_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max); |
629 | snd_gus_voice_t *snd_gf1_alloc_voice(snd_gus_card_t * gus, int type, int client, int port); | 609 | snd_gus_voice_t *snd_gf1_alloc_voice(snd_gus_card_t * gus, int type, int client, int port); |
630 | void snd_gf1_free_voice(snd_gus_card_t * gus, snd_gus_voice_t *voice); | 610 | void snd_gf1_free_voice(snd_gus_card_t * gus, snd_gus_voice_t *voice); |
@@ -641,9 +621,6 @@ int snd_gf1_pcm_new(snd_gus_card_t * gus, int pcm_dev, int control_index, snd_pc | |||
641 | 621 | ||
642 | #ifdef CONFIG_SND_DEBUG | 622 | #ifdef CONFIG_SND_DEBUG |
643 | extern void snd_gf1_print_voice_registers(snd_gus_card_t * gus); | 623 | extern void snd_gf1_print_voice_registers(snd_gus_card_t * gus); |
644 | extern void snd_gf1_print_global_registers(snd_gus_card_t * gus); | ||
645 | extern void snd_gf1_print_setup_registers(snd_gus_card_t * gus); | ||
646 | extern void snd_gf1_peek_print_block(snd_gus_card_t * gus, unsigned int addr, int count, int w_16bit); | ||
647 | #endif | 624 | #endif |
648 | 625 | ||
649 | /* gus.c */ | 626 | /* gus.c */ |