summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-02-04 18:28:42 +0100
committerTakashi Iwai <tiwai@suse.de>2009-02-04 18:28:42 +0100
commit5e7476243ad755fa1d8be2b1774d0aeb16bb48df (patch)
tree59c10ef033c524b714af4652afb8c02fde6d7fed /sound/isa
parent5aa13a94098ef5fc1bb0a7f531fdda8864ae67ff (diff)
downloadop-kernel-dev-5e7476243ad755fa1d8be2b1774d0aeb16bb48df.zip
op-kernel-dev-5e7476243ad755fa1d8be2b1774d0aeb16bb48df.tar.gz
ALSA: msnd - Fix build error with CONFIG_PNP=n
sound/isa/msnd/msnd_pinnacle.c:891: error: 'isapnp' undeclared (first use in this function) Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/msnd/msnd_pinnacle.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c
index 7055922..60b6abd 100644
--- a/sound/isa/msnd/msnd_pinnacle.c
+++ b/sound/isa/msnd/msnd_pinnacle.c
@@ -785,6 +785,9 @@ static int calibrate_signal;
static int isapnp[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
module_param_array(isapnp, bool, NULL, 0444);
MODULE_PARM_DESC(isapnp, "ISA PnP detection for specified soundcard.");
+#define has_isapnp(x) isapnp[x]
+#else
+#define has_isapnp(x) 0
#endif
MODULE_AUTHOR("Karsten Wiese <annabellesgarden@yahoo.de>");
@@ -888,7 +891,7 @@ static int __devinit snd_msnd_isa_probe(struct device *pdev, unsigned int idx)
struct snd_card *card;
struct snd_msnd *chip;
- if (isapnp[idx] || cfg[idx] == SNDRV_AUTO_PORT) {
+ if (has_isapnp(idx) || cfg[idx] == SNDRV_AUTO_PORT) {
printk(KERN_INFO LOGNAME ": Assuming PnP mode\n");
return -ENODEV;
}
@@ -1082,7 +1085,7 @@ static int __devinit snd_msnd_pnp_detect(struct pnp_card_link *pcard,
int ret;
for ( ; idx < SNDRV_CARDS; idx++) {
- if (isapnp[idx])
+ if (has_isapnp(idx))
break;
}
if (idx >= SNDRV_CARDS)
OpenPOWER on IntegriCloud