Commit 0a1b42db authored by Adrian Bunk's avatar Adrian Bunk Committed by Jaroslav Kysela

sound: sound/oss/dmasound/: cleanups

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: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 781711a9
...@@ -211,10 +211,6 @@ static int state_unit = -1; ...@@ -211,10 +211,6 @@ static int state_unit = -1;
static int irq_installed; static int irq_installed;
#endif /* MODULE */ #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 */ /* control over who can modify resources shared between play/record */
static mode_t shared_resource_owner; static mode_t shared_resource_owner;
static int shared_resources_initialised; static int shared_resources_initialised;
...@@ -1188,7 +1184,7 @@ static struct { ...@@ -1188,7 +1184,7 @@ static struct {
/* publish this function for use by low-level code, if required */ /* 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) { switch(afmt) {
case AFMT_MU_LAW: case AFMT_MU_LAW:
...@@ -1551,4 +1547,3 @@ EXPORT_SYMBOL(dmasound_catchRadius); ...@@ -1551,4 +1547,3 @@ EXPORT_SYMBOL(dmasound_catchRadius);
EXPORT_SYMBOL(dmasound_ulaw2dma8); EXPORT_SYMBOL(dmasound_ulaw2dma8);
EXPORT_SYMBOL(dmasound_alaw2dma8); EXPORT_SYMBOL(dmasound_alaw2dma8);
#endif #endif
EXPORT_SYMBOL(get_afmt_string) ;
...@@ -710,7 +710,7 @@ static MACHINE machAmiga = { ...@@ -710,7 +710,7 @@ static MACHINE machAmiga = {
/*** Config & Setup **********************************************************/ /*** Config & Setup **********************************************************/
int __init dmasound_paula_init(void) static int __init dmasound_paula_init(void)
{ {
int err; int err;
......
...@@ -611,7 +611,7 @@ static MACHINE machQ40 = { ...@@ -611,7 +611,7 @@ static MACHINE machQ40 = {
/*** Config & Setup **********************************************************/ /*** Config & Setup **********************************************************/
int __init dmasound_q40_init(void) static int __init dmasound_q40_init(void)
{ {
if (MACH_IS_Q40) { if (MACH_IS_Q40) {
dmasound.mach = machQ40; dmasound.mach = machQ40;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment