]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
sound: sound/oss/dmasound/: cleanups
authorAdrian Bunk <bunk@kernel.org>
Mon, 9 Jun 2008 22:26:28 +0000 (01:26 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 13 Jun 2008 14:29:50 +0000 (16:29 +0200)
This patch contains the following cleanups:
- make the following needlessly global functions static:
  - dmasound_core.c: get_afmt_string()
  - dmasound_paula.c: dmasound_paula_init()
  - dmasound_q40.c: dmasound_q40_init()
- remove the following unused global variable:
  - dmasound_core.c: software_input_volume

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/oss/dmasound/dmasound_core.c
sound/oss/dmasound/dmasound_paula.c
sound/oss/dmasound/dmasound_q40.c

index a003c0ea9303f800f27e6de612773d0a2f5012e2..95fc5c681755eafff96d7165c1eeb3b9da72a781 100644 (file)
@@ -211,10 +211,6 @@ static int state_unit = -1;
 static int irq_installed;
 #endif /* MODULE */
 
-/* software implemented recording volume! */
-uint software_input_volume = SW_INPUT_VOLUME_SCALE * SW_INPUT_VOLUME_DEFAULT;
-EXPORT_SYMBOL(software_input_volume);
-
 /* control over who can modify resources shared between play/record */
 static mode_t shared_resource_owner;
 static int shared_resources_initialised;
@@ -1188,7 +1184,7 @@ static struct {
 
 /* publish this function for use by low-level code, if required */
 
-char *get_afmt_string(int afmt)
+static char *get_afmt_string(int afmt)
 {
         switch(afmt) {
             case AFMT_MU_LAW:
@@ -1551,4 +1547,3 @@ EXPORT_SYMBOL(dmasound_catchRadius);
 EXPORT_SYMBOL(dmasound_ulaw2dma8);
 EXPORT_SYMBOL(dmasound_alaw2dma8);
 #endif
-EXPORT_SYMBOL(get_afmt_string) ;
index 202e8103dc4da39bffe0d740ae56bef1de2a2ceb..06e9e88e4c05dd9e0735279fd9d4356163034224 100644 (file)
@@ -710,7 +710,7 @@ static MACHINE machAmiga = {
 /*** Config & Setup **********************************************************/
 
 
-int __init dmasound_paula_init(void)
+static int __init dmasound_paula_init(void)
 {
        int err;
 
index b3379dd7ca5e1d49d5cc8d0a13c533b891ef8875..1855b14d90c3922989abfd43a0e53b57423174f6 100644 (file)
@@ -611,7 +611,7 @@ static MACHINE machQ40 = {
 /*** Config & Setup **********************************************************/
 
 
-int __init dmasound_q40_init(void)
+static int __init dmasound_q40_init(void)
 {
        if (MACH_IS_Q40) {
            dmasound.mach = machQ40;