public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.1 -- Unresolved symbols in radio-miropcm20.o
@ 2001-01-30 21:08 Miles Lane
  2001-01-30 22:52 ` Keith Owens
  0 siblings, 1 reply; 12+ messages in thread
From: Miles Lane @ 2001-01-30 21:08 UTC (permalink / raw)
  To: linux-kernel, Ruurd Reitsma, Norberto Pellicci

depmod: *** Unresolved symbols in
/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
depmod: 	aci_write_cmd
depmod: 	aci_indexed_cmd
depmod: 	aci_write_cmd_d
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-30 21:08 2.4.1 -- Unresolved symbols in radio-miropcm20.o Miles Lane
@ 2001-01-30 22:52 ` Keith Owens
  2001-01-31  7:12   ` Miles Lane
                     ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Keith Owens @ 2001-01-30 22:52 UTC (permalink / raw)
  To: Miles Lane; +Cc: linux-kernel, Ruurd Reitsma, Norberto Pellicci

On Tue, 30 Jan 2001 13:08:12 -0800, 
Miles Lane <miles@megapath.net> wrote:
>depmod: *** Unresolved symbols in
>/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
>depmod: 	aci_write_cmd
>depmod: 	aci_indexed_cmd
>depmod: 	aci_write_cmd_d

Those symbols are defined in drivers/sound/aci.c but are not exported
for other modules to use.  The aci and miropcm20 code needs to be
changed to support use as modules.  Also the config.in files need
fixing for these files, it is possible to select combinations of aci
and miropcm20 that will fail to link (miropcm20 built in, aci not
selected or selected as a module) or fail to load (miropcm20 selected
as a module, aci not selected).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-30 22:52 ` Keith Owens
@ 2001-01-31  7:12   ` Miles Lane
  2001-01-31  8:46   ` Arjan van de Ven
  2001-01-31 16:22   ` Ruurd A. Reitsma
  2 siblings, 0 replies; 12+ messages in thread
From: Miles Lane @ 2001-01-31  7:12 UTC (permalink / raw)
  To: Keith Owens; +Cc: linux-kernel, Ruurd Reitsma, Norberto Pellicci

Thanks Keith,

I don't get any errors if I add these lines to my .config
file:

	CONFIG_SOUND_OSS=m
	CONFIG_SOUND_ACI_MIXER=m

Ruurd, are you maintaining this driver?
If not, is anyone else willing to hack the config scripts
to enforce this dependency?  This is not my area of
competency.

Thanks,
	Miles

Keith Owens wrote:
> 
> On Tue, 30 Jan 2001 13:08:12 -0800,
> Miles Lane <miles@megapath.net> wrote:
> >depmod: *** Unresolved symbols in
> >/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
> >depmod:        aci_write_cmd
> >depmod:        aci_indexed_cmd
> >depmod:        aci_write_cmd_d
> 
> Those symbols are defined in drivers/sound/aci.c but are not exported
> for other modules to use.  The aci and miropcm20 code needs to be
> changed to support use as modules.  Also the config.in files need
> fixing for these files, it is possible to select combinations of aci
> and miropcm20 that will fail to link (miropcm20 built in, aci not
> selected or selected as a module) or fail to load (miropcm20 selected
> as a module, aci not selected).
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-30 22:52 ` Keith Owens
  2001-01-31  7:12   ` Miles Lane
@ 2001-01-31  8:46   ` Arjan van de Ven
  2001-01-31  8:48     ` Keith Owens
  2001-01-31 10:55     ` Peter Samuelson
  2001-01-31 16:22   ` Ruurd A. Reitsma
  2 siblings, 2 replies; 12+ messages in thread
From: Arjan van de Ven @ 2001-01-31  8:46 UTC (permalink / raw)
  To: Keith Owens; +Cc: linux-kernel

In article <4987.980895146@ocs3.ocs-net> you wrote:
> Also the config.in files need
> fixing for these files, it is possible to select combinations of aci
> and miropcm20 that will fail to link (miropcm20 built in, aci not
> selected or selected as a module) or fail to load (miropcm20 selected
> as a module, aci not selected).

Unfortionatly, this is impossible. The miropcm config question is asked
before the "sound" question, and the aci question is asked after that (all
in ake config). In 2.2.x we have an #ifdef in the driver that causes an
#error with a description of the problem and the solution. Someone stripped
that #ifdef out of the driver during 2.3.something.

Greetings,
   Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31  8:46   ` Arjan van de Ven
@ 2001-01-31  8:48     ` Keith Owens
  2001-01-31 10:55     ` Peter Samuelson
  1 sibling, 0 replies; 12+ messages in thread
From: Keith Owens @ 2001-01-31  8:48 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel

On Wed, 31 Jan 2001 09:46:19 +0100 (CET), 
arjan@fenrus.demon.nl (Arjan van de Ven) wrote:
>Unfortionatly, this is impossible. The miropcm config question is asked
>before the "sound" question, and the aci question is asked after that (all
>in ake config). In 2.2.x we have an #ifdef in the driver that causes an
>#error with a description of the problem and the solution. Someone stripped
>that #ifdef out of the driver during 2.3.something.

I thought the config problem was too hard for the current config
language.  Oh well, just have to wait until CML2 is part of the kernel,
sometime in 2.5.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31  8:46   ` Arjan van de Ven
  2001-01-31  8:48     ` Keith Owens
@ 2001-01-31 10:55     ` Peter Samuelson
  2001-01-31 11:07       ` Arjan van de Ven
  1 sibling, 1 reply; 12+ messages in thread
From: Peter Samuelson @ 2001-01-31 10:55 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Keith Owens, linux-kernel


[Arjan van de Ven]
> Unfortionatly, this is impossible. The miropcm config question is
> asked before the "sound" question, and the aci question is asked
> after that (all in ake config).

"Impossible" is perhaps a poor choice of terms.  "Awkward" and "ugly"
are, however, quite descriptive. (:

Peter

diff -urk~ 2.4.1/drivers/sound/Config.in
--- 2.4.1/drivers/sound/Config.in~	Tue Jan 30 14:46:39 2001
+++ 2.4.1/drivers/sound/Config.in	Wed Jan 31 04:52:19 2001
@@ -91,7 +91,7 @@
    fi
    dep_tristate '    Aztech Sound Galaxy (non-PnP) cards' CONFIG_SOUND_SGALAXY $CONFIG_SOUND_OSS
    dep_tristate '    Adlib Cards' CONFIG_SOUND_ADLIB $CONFIG_SOUND_OSS
-   dep_tristate '    ACI mixer (miroPCM12)' CONFIG_SOUND_ACI_MIXER $CONFIG_SOUND_OSS
+   dep_tristate '    ACI mixer (miroPCM12)' CONFIG_SOUND_WANT_ACI_MIXER $CONFIG_SOUND_OSS
    dep_tristate '    Crystal CS4232 based (PnP) cards' CONFIG_SOUND_CS4232 $CONFIG_SOUND_OSS
    dep_tristate '    Ensoniq SoundScape support' CONFIG_SOUND_SSCAPE $CONFIG_SOUND_OSS
    dep_tristate '    Gravis Ultrasound support' CONFIG_SOUND_GUS $CONFIG_SOUND_OSS
@@ -179,3 +179,12 @@
 fi
 
 dep_tristate '  TV card (bt848) mixer support' CONFIG_SOUND_TVMIXER $CONFIG_SOUND $CONFIG_I2C
+
+# hack, hack
+if [ "$CONFIG_SOUND_WANT_ACI_MIXER" = "y" -o "$CONFIG_RADIO_MIROPCM20" = "y" ]; then
+   define_tristate CONFIG_SOUND_ACI_MIXER y
+else
+   if [ "$CONFIG_SOUND_WANT_ACI_MIXER" = "m" -o "$CONFIG_RADIO_MIROPCM20" = "m" ]; then
+      define_tristate CONFIG_SOUND_ACI_MIXER m
+   fi
+fi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31 10:55     ` Peter Samuelson
@ 2001-01-31 11:07       ` Arjan van de Ven
       [not found]         ` <14967.62433.949844.559264@wire.cadcamlab.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Arjan van de Ven @ 2001-01-31 11:07 UTC (permalink / raw)
  To: Peter Samuelson; +Cc: linux-kernel

On Wed, Jan 31, 2001 at 04:55:20AM -0600, Peter Samuelson wrote:
> 
> [Arjan van de Ven]
> > Unfortionatly, this is impossible. The miropcm config question is
> > asked before the "sound" question, and the aci question is asked
> > after that (all in ake config).
> 
> "Impossible" is perhaps a poor choice of terms.  "Awkward" and "ugly"
> are, however, quite descriptive. (:

This doesn't take into account the case where someone says "n" to
CONFIG_SOUND.

Greetings,
   Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
       [not found]         ` <14967.62433.949844.559264@wire.cadcamlab.org>
@ 2001-01-31 11:19           ` Arjan van de Ven
  2001-01-31 11:48             ` Peter Samuelson
  0 siblings, 1 reply; 12+ messages in thread
From: Arjan van de Ven @ 2001-01-31 11:19 UTC (permalink / raw)
  To: Peter Samuelson; +Cc: linux-kernel

On Wed, Jan 31, 2001 at 05:15:45AM -0600, Peter Samuelson wrote:
> 
> [Arjan van de Ven]
> > This doesn't take into account the case where someone says "n" to
> > CONFIG_SOUND.
> 
> So move the test outside the 'if [ "$CONFIG_SOUND" = "y" ]'.  The
> principle is the same.  

That won't work, unless you also want to force the soundlayer on people. 
Which is unacceptable. period. I've been over this when I added the #ifdef
to the 2.2 kernel, and nobody came up with a better idea.
At least using the #ifdef + #error, the user gets a proper notification that
his kernel won't work and what he can do about it.

Greetings,
   Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31 11:19           ` Arjan van de Ven
@ 2001-01-31 11:48             ` Peter Samuelson
  0 siblings, 0 replies; 12+ messages in thread
From: Peter Samuelson @ 2001-01-31 11:48 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel


[Arjan van de Ven]
> That won't work, unless you also want to force the soundlayer on
> people.  Which is unacceptable. period.

I didn't say it was pretty, I said it was possible.
I, too, like your #ifndef solution better.

I suppose yet another hack would be to put a certain amount of #ifdef
and #include hackery into radio-miropcm20.c to suck in aci.c if
needed.  That would be even worse ... but possible.

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-30 22:52 ` Keith Owens
  2001-01-31  7:12   ` Miles Lane
  2001-01-31  8:46   ` Arjan van de Ven
@ 2001-01-31 16:22   ` Ruurd A. Reitsma
  2001-01-31 20:21     ` Robert Siemer
  2001-02-01 15:50     ` Robert Siemer
  2 siblings, 2 replies; 12+ messages in thread
From: Ruurd A. Reitsma @ 2001-01-31 16:22 UTC (permalink / raw)
  To: Keith Owens, Miles Lane
  Cc: linux-kernel, Norberto Pellicci, Robert.Siemer, Markus.Kuhn

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

>-----Original Message-----
>From: Keith Owens [mailto:kaos@ocs.com.au]
>Sent: dinsdag 30 januari 2001 23:52
>To: Miles Lane
>Cc: linux-kernel@vger.kernel.org; Ruurd Reitsma; Norberto Pellicci
>Subject: Re: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
>
>
>On Tue, 30 Jan 2001 13:08:12 -0800,
>Miles Lane <miles@megapath.net> wrote:
>>depmod: *** Unresolved symbols in
>>/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
>>depmod: 	aci_write_cmd
>>depmod: 	aci_indexed_cmd
>>depmod: 	aci_write_cmd_d
>
>Those symbols are defined in drivers/sound/aci.c but are not exported
>for other modules to use.  The aci and miropcm20 code needs to be
>changed to support use as modules.  Also the config.in files need

They are being exported, otherwise miropcm20.o won't work, would it? I've
just been too lazy to change the Config.in properly. It is however mentioned
in the radio-miropcm20 helpfile.

>fixing for these files, it is possible to select combinations of aci
>and miropcm20 that will fail to link (miropcm20 built in, aci not
>selected or selected as a module) or fail to load (miropcm20 selected
>as a module, aci not selected).
>

appearently Robert Siemer's patch didn't make it to the actual kernel. He
did change the config.in and made some changes to aci.c to support his
version of the firmware. He'll probably be happy to maintain the driver
since I threw out the pmc20 card.

--Ruurd

[-- Attachment #2: aci.patch.bz2 --]
[-- Type: application/octet-stream, Size: 5595 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31 16:22   ` Ruurd A. Reitsma
@ 2001-01-31 20:21     ` Robert Siemer
  2001-02-01 15:50     ` Robert Siemer
  1 sibling, 0 replies; 12+ messages in thread
From: Robert Siemer @ 2001-01-31 20:21 UTC (permalink / raw)
  To: R.A.Reitsma; +Cc: kaos, miles, linux-kernel, pellicci, Markus.Kuhn

From: "Ruurd A. Reitsma" <R.A.Reitsma@wbmt.tudelft.nl>

> >Miles Lane <miles@megapath.net> wrote:
> >>depmod: *** Unresolved symbols in
> >>/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
> >>depmod: 	aci_write_cmd
> >>depmod: 	aci_indexed_cmd
> >>depmod: 	aci_write_cmd_d

> appearently Robert Siemer's patch didn't make it to the actual
> kernel. He did change the config.in and made some changes to aci.c
> to support his version of the firmware. He'll probably be happy to
> maintain the driver since I threw out the pcm20 card.

Many thanks, Ruurd, for mailing me, too! - I'm not reading
linux-kernel completely and looked only for 'aci' is subjects...

First, I've put up a new patch, so don't use this old one. Please read
my post to linux-kernel:
http://boudicca.tux.org/hypermail/linux-kernel/latest/0133.html

Second, the described problem is solved: the functions don't exists
anymore... (:

Third, my patch still has the same problem. <-:  As noted, try my
patch only when aci and radio-pcm20 is selected as module.
I will work on this issue.

And I have a request to everyone owning a miroSOUND (or Cardinal
Technologies) card:
Please try my patch and send me the version line. Mine looks like:
<ACI 0x07, id 6d/43 "m/C", (PCM20 radio)> at 0x344

The patch has some enhancements over the original; read more in my
first post:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0009.2/0260.html

The plans for the future are a well done support of the RDS functions
for the "PCM20 radio" and maybe an ALSA driver. This would help me to
support the equalizer in the "PCM20 radio" better.


Thanks,
	Robert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: 2.4.1 -- Unresolved symbols in radio-miropcm20.o
  2001-01-31 16:22   ` Ruurd A. Reitsma
  2001-01-31 20:21     ` Robert Siemer
@ 2001-02-01 15:50     ` Robert Siemer
  1 sibling, 0 replies; 12+ messages in thread
From: Robert Siemer @ 2001-02-01 15:50 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: kaos, linux-kernel, pellicci, Markus.Kuhn, R.A.Reitsma

> >Miles Lane <miles@megapath.net> wrote:
> >>depmod: *** Unresolved symbols in
> >>/lib/modules/2.4.1/kernel/drivers/media/radio/radio-miropcm20.o
> >>depmod: 	aci_write_cmd
> >>depmod: 	aci_indexed_cmd
> >>depmod: 	aci_write_cmd_d

I made up an new patch for 2.4.1. You can find it on
http://www.uni-karlsruhe.de/~Robert.Siemer/Private/

It works when:
a)  aci: module    miropcm20: module
b)  aci: build in  miropcm20: module
c)  aci: build in  miropcm20: build in

Violation to this table is still unchecked...

Arjan, I want to include your #ifdef solution, but was unable to find
it in 2.2.18... - And further: why did it remove somebody in 2.3.x?

Also (at least) in the case of c) videodev_init() is called twice. -
It does not hurt, but maybe someone can give me a hint why this
happens...


Ciao,
	Robert

PS: Miles email address (miles@megapath.net) is invalid, isn't it?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-02-01 15:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-30 21:08 2.4.1 -- Unresolved symbols in radio-miropcm20.o Miles Lane
2001-01-30 22:52 ` Keith Owens
2001-01-31  7:12   ` Miles Lane
2001-01-31  8:46   ` Arjan van de Ven
2001-01-31  8:48     ` Keith Owens
2001-01-31 10:55     ` Peter Samuelson
2001-01-31 11:07       ` Arjan van de Ven
     [not found]         ` <14967.62433.949844.559264@wire.cadcamlab.org>
2001-01-31 11:19           ` Arjan van de Ven
2001-01-31 11:48             ` Peter Samuelson
2001-01-31 16:22   ` Ruurd A. Reitsma
2001-01-31 20:21     ` Robert Siemer
2001-02-01 15:50     ` Robert Siemer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox