linux-um archives
 help / color / mirror / Atom feed
From: James W McMechan <mcmechanjw@juno.com>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Slight host audio problem in 2.4.22-6
Date: Tue, 11 Nov 2003 08:39:46 -0800	[thread overview]
Message-ID: <20031111.084000.-502533.0.mcmechanjw@juno.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

While compiling my standard options I got

hostaudio_kern.c:51: parse error before "DSP_HELP"
hostaudio_kern.c:54: parse error before "MIXER_HELP"
make[1]: *** [hostaudio_kern.o] Error 1
make[1]: Leaving directory `/home/uml/work-2.4.22-6/arch/um/drivers'

The new help defines were only in the non module part of the #ifndef
attached patch to move it before the whole #ifndef so it should work
both as a module and built-in

Enjoy,

James McMechan

[-- Attachment #2: host_audio --]
[-- Type: application/octet-stream, Size: 1332 bytes --]

diff -Nur uml-2.4.22-6/arch/um/drivers/hostaudio_kern.c work-2.4.22-6/arch/um/drivers/hostaudio_kern.c
--- uml-2.4.22-6/arch/um/drivers/hostaudio_kern.c	2003-11-11 06:51:06.000000000 -0800
+++ work-2.4.22-6/arch/um/drivers/hostaudio_kern.c	2003-11-11 08:31:25.000000000 -0800
@@ -20,6 +20,14 @@
 char *dsp = HOSTAUDIO_DEV_DSP;
 char *mixer = HOSTAUDIO_DEV_MIXER;
 
+#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"
+
+#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"
+
 #ifndef MODULE
 static int set_dsp(char *name, int *add)
 {
@@ -27,10 +35,6 @@
 	return(0);
 }
 
-#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,10 +43,6 @@
 	return(0);
 }
 
-#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*/

             reply	other threads:[~2003-11-11 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 16:39 James W McMechan [this message]
2003-11-11 19:12 ` [uml-devel] Slight host audio problem in 2.4.22-6 Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031111.084000.-502533.0.mcmechanjw@juno.com \
    --to=mcmechanjw@juno.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox