public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Fabio Bracci <fabio@hoendiep.ath.cx>, perex@suse.cz
Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org
Subject: 2.5: wrong CONFIG_SND_SEQUENCER logic in several drivers
Date: Sat, 21 Jun 2003 03:12:11 +0200	[thread overview]
Message-ID: <20030621011210.GS29247@fs.tum.de> (raw)
In-Reply-To: <1056143086.6808.12.camel@bolidino.hoendiep.ath.cx>

On Fri, Jun 20, 2003 at 11:04:47PM +0200, Fabio Bracci wrote:

> Hi
> 	Hereby I have attached the requested .conf file ("config.2.5.70").
> I tried again to compile a kernel, but now using the 2.5.72 one. But
> again something went wrong while compiling the sound subsystem. That's
> why I attacched also the new .conf file ("config.2.5.70").
> I now got the following messages:
> ...
>...
>   LD      vmlinux
> sound/built-in.o(.text+0x1b6ea): In function `snd_rawmidi_dev_register':
> : undefined reference to `snd_seq_device_new'
> sound/built-in.o(.text+0x22fb8): In function `snd_card_emu10k1_probe':
> : undefined reference to `snd_seq_device_new'
> make: *** [vmlinux] Error 1
> 
> 
> Hopefully this will help.

Yup, thanks a lot!

> Greetings,
> 	Fabio ...
>...
> #
> # Advanced Linux Sound Architecture
> #
> CONFIG_SND=y
> CONFIG_SND_SEQUENCER=m
> CONFIG_SND_SEQ_DUMMY=m
> # CONFIG_SND_OSSEMUL is not set
> CONFIG_SND_RTCTIMER=m
> CONFIG_SND_VERBOSE_PRINTK=y
> # CONFIG_SND_DEBUG is not set
>...
> CONFIG_SND_EMU10K1=y
>...


This is a bug in several ALSA drivers.

@Fabio:
As a workaround, compile "Sequencer support" statically (non-modular).

@Jaroslav:
Several drivers have a wrong logic for CONFIG_SND_SEQUENCER. The correct 
solution is something like the following:

--- sound/pci/emu10k1/emu10k1.c.old	2003-06-21 03:02:04.000000000 +0200
+++ sound/pci/emu10k1/emu10k1.c	2003-06-21 03:02:31.000000000 +0200
@@ -35,7 +35,7 @@
 MODULE_DEVICES("{{Creative Labs,SB Live!/PCI512/E-mu APS},"
 	       "{Creative Labs,SB Audigy}}");
 
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if defined(CONFIG_SND_SEQUENCER) || (defined (MODULE) && defined(CONFIG_SND_SEQUENCER_MODULE))
 #define ENABLE_SYNTH
 #include <sound/emu10k1_synth.h>
 #endif

If you comfirm this is correct I'll send a fix for all affected drivers.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  reply	other threads:[~2003-06-21  0:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-30 21:32 Kernel 2.5.70 compilation fails Fabio Bracci
2003-05-30 22:27 ` Adrian Bunk
2003-06-20 21:04   ` Fabio Bracci
2003-06-21  1:12     ` Adrian Bunk [this message]
2003-06-21  7:53       ` 2.5: wrong CONFIG_SND_SEQUENCER logic in several drivers Jaroslav Kysela

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=20030621011210.GS29247@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=fabio@hoendiep.ath.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@suse.cz \
    /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