diff options
author | jdike <jdike> | 2003-11-10 22:57:35 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-11-10 22:57:35 +0000 |
commit | fb9eb1d2d7a3dc2de0b48ee0fd6787b07796fe78 (patch) | |
tree | 334c0da8893381248dde03cc40b5a53ab5c930c7 | |
parent | 9dfcf2818d493c446c5403bf3068c3f3b93674bd (diff) | |
download | uml-history-fb9eb1d2d7a3dc2de0b48ee0fd6787b07796fe78.tar.gz |
Added module support.
-rw-r--r-- | arch/um/drivers/hostaudio_kern.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c index 8df2d6a..74c09d2 100644 --- a/arch/um/drivers/hostaudio_kern.c +++ b/arch/um/drivers/hostaudio_kern.c @@ -27,11 +27,11 @@ static int set_dsp(char *name, int *add) return(0); } -__uml_setup("dsp=", set_dsp, -"dsp=<dsp device>\n" -" This is used to specify the host dsp device to the hostaudio driver.\n" +#define DSP_HELP \ +" This is used to specify the host dsp device to the hostaudio driver.\n" \ " The default is \"" HOSTAUDIO_DEV_DSP "\".\n\n" -); + +__uml_setup("dsp=", set_dsp, "dsp=<dsp device>\n" DSP_HELP); static int set_mixer(char *name, int *add) { @@ -39,11 +39,20 @@ static int set_mixer(char *name, int *add) return(0); } -__uml_setup("mixer=", set_mixer, -"mixer=<mixer device>\n" -" This is used to specify the host mixer device to the hostaudio driver.\n" +#define MIXER_HELP \ +" This is used to specify the host mixer device to the hostaudio driver.\n" \ " The default is \"" HOSTAUDIO_DEV_MIXER "\".\n\n" -); + +__uml_setup("mixer=", set_mixer, "mixer=<mixer device>\n" MIXER_HELP); + +#else /*MODULE*/ + +MODULE_PARM(dsp, "s"); +MODULE_PARM_DESC(dsp, DSP_HELP); + +MODULE_PARM(mixer, "s"); +MODULE_PARM_DESC(mixer, MIXER_HELP); + #endif /* /dev/dsp file operations */ |