2009-12-18 09:28:59

by Cong Wang

[permalink] [raw]
Subject: [Patch] thinkpad_acpi: fix a build error


This patch fixes the following build error:

Building modules, stage 2.
MODPOST 1834 modules
ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!

Cc: Len Brown <[email protected]>
Cc: Corentin Chary <[email protected]>
Cc: Henrique de Moraes Holschuh <[email protected]>
Cc: Alan Jenkins <[email protected]>
Reported-by: Helight.Xu <[email protected]>
Signed-off-by: WANG Cong <[email protected]>
Tested-by: Helight.Xu <[email protected]>

---
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index fc5bf9d..596966c 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -215,6 +215,7 @@ config THINKPAD_ACPI
depends on ACPI
depends on INPUT
depends on RFKILL || RFKILL = n
+ depends on SOUND
select BACKLIGHT_LCD_SUPPORT
select BACKLIGHT_CLASS_DEVICE
select HWMON


2009-12-18 09:42:38

by Xiaotian Feng

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

Ingo already sent this patch yesterday.
http://lkml.org/lkml/2009/12/17/25


On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <[email protected]> wrote:
>
> This patch fixes the following build error:
>
>  Building modules, stage 2.
>  MODPOST 1834 modules
> ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>
> Cc: Len Brown <[email protected]>
> Cc: Corentin Chary <[email protected]>
> Cc: Henrique de Moraes Holschuh <[email protected]>
> Cc: Alan Jenkins <[email protected]>
> Reported-by: Helight.Xu <[email protected]>
> Signed-off-by: WANG Cong <[email protected]>
> Tested-by: Helight.Xu <[email protected]>
>
> ---
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index fc5bf9d..596966c 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -215,6 +215,7 @@ config THINKPAD_ACPI
>        depends on ACPI
>        depends on INPUT
>        depends on RFKILL || RFKILL = n
> +       depends on SOUND
>        select BACKLIGHT_LCD_SUPPORT
>        select BACKLIGHT_CLASS_DEVICE
>        select HWMON
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

2009-12-18 10:15:27

by Takashi Iwai

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

At Fri, 18 Dec 2009 17:42:34 +0800,
Xiaotian Feng wrote:
>
> Ingo already sent this patch yesterday.
> http://lkml.org/lkml/2009/12/17/25
>
>
> On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <[email protected]> wrote:
> >
> > This patch fixes the following build error:
> >
> >  Building modules, stage 2.
> >  MODPOST 1834 modules
> > ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> >
> > Cc: Len Brown <[email protected]>
> > Cc: Corentin Chary <[email protected]>
> > Cc: Henrique de Moraes Holschuh <[email protected]>
> > Cc: Alan Jenkins <[email protected]>
> > Reported-by: Helight.Xu <[email protected]>
> > Signed-off-by: WANG Cong <[email protected]>
> > Tested-by: Helight.Xu <[email protected]>
> >
> > ---
> > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> > index fc5bf9d..596966c 100644
> > --- a/drivers/platform/x86/Kconfig
> > +++ b/drivers/platform/x86/Kconfig
> > @@ -215,6 +215,7 @@ config THINKPAD_ACPI
> >        depends on ACPI
> >        depends on INPUT
> >        depends on RFKILL || RFKILL = n
> > +       depends on SOUND

The patch isn't correct (I guess the upstream fix is same?).

CONFIG_SOUND is a global config for sound subsystem. The relevant
functions are ALSA core part, which is CONFIG_SND.
So, the fix should be:

depends on SND

instead.


Takashi

2009-12-18 12:21:31

by helight.xu

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

Takashi Iwai wrote:
> At Fri, 18 Dec 2009 17:42:34 +0800,
> Xiaotian Feng wrote:
>
>> Ingo already sent this patch yesterday.
>> http://lkml.org/lkml/2009/12/17/25
>>
>>
>> On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <[email protected]> wrote:
>>
>>> This patch fixes the following build error:
>>>
>>> Building modules, stage 2.
>>> MODPOST 1834 modules
>>> ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>>
>>> Cc: Len Brown <[email protected]>
>>> Cc: Corentin Chary <[email protected]>
>>> Cc: Henrique de Moraes Holschuh <[email protected]>
>>> Cc: Alan Jenkins <[email protected]>
>>> Reported-by: Helight.Xu <[email protected]>
>>> Signed-off-by: WANG Cong <[email protected]>
>>> Tested-by: Helight.Xu <[email protected]>
>>>
>>> ---
>>> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
>>> index fc5bf9d..596966c 100644
>>> --- a/drivers/platform/x86/Kconfig
>>> +++ b/drivers/platform/x86/Kconfig
>>> @@ -215,6 +215,7 @@ config THINKPAD_ACPI
>>> depends on ACPI
>>> depends on INPUT
>>> depends on RFKILL || RFKILL = n
>>> + depends on SOUND
>>>
>
> The patch isn't correct (I guess the upstream fix is same?).
>
> CONFIG_SOUND is a global config for sound subsystem. The relevant
> functions are ALSA core part, which is CONFIG_SND.
> So, the fix should be:
>
> depends on SND
>
yes, I think so ! It should be "depends on SND", and I am testing now!
> instead.
>
>
> Takashi
>
>


--
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org

Subject: Re: [Patch] thinkpad_acpi: fix a build error

On Fri, 18 Dec 2009, Takashi Iwai wrote:
> The patch isn't correct (I guess the upstream fix is same?).
>
> CONFIG_SOUND is a global config for sound subsystem. The relevant
> functions are ALSA core part, which is CONFIG_SND.
> So, the fix should be:
>
> depends on SND
>
> instead.

Indeed. Ingo already fixed that too.

Although I personally would prefer:
select SOUND
select SND

But anything that stops the build errors will do for now.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

2009-12-18 14:31:38

by Takashi Iwai

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

At Fri, 18 Dec 2009 12:28:15 -0200,
Henrique de Moraes Holschuh wrote:
>
> On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > The patch isn't correct (I guess the upstream fix is same?).
> >
> > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > functions are ALSA core part, which is CONFIG_SND.
> > So, the fix should be:
> >
> > depends on SND
> >
> > instead.
>
> Indeed. Ingo already fixed that too.
>
> Although I personally would prefer:
> select SOUND
> select SND

SND already depends on SOUND, so it's just superfluous.


Takashi

Subject: Re: [Patch] thinkpad_acpi: fix a build error

On Fri, 18 Dec 2009, Takashi Iwai wrote:
> At Fri, 18 Dec 2009 12:28:15 -0200,
> Henrique de Moraes Holschuh wrote:
> > On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > > The patch isn't correct (I guess the upstream fix is same?).
> > >
> > > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > > functions are ALSA core part, which is CONFIG_SND.
> > > So, the fix should be:
> > >
> > > depends on SND
> > >
> > > instead.
> >
> > Indeed. Ingo already fixed that too.
> >
> > Although I personally would prefer:
> > select SOUND
> > select SND
>
> SND already depends on SOUND, so it's just superfluous.

No, it is not (test it). Which is the main reason why select can be a pain.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

2009-12-18 15:10:15

by Takashi Iwai

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

At Fri, 18 Dec 2009 13:03:24 -0200,
Henrique de Moraes Holschuh wrote:
>
> On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > At Fri, 18 Dec 2009 12:28:15 -0200,
> > Henrique de Moraes Holschuh wrote:
> > > On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > > > The patch isn't correct (I guess the upstream fix is same?).
> > > >
> > > > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > > > functions are ALSA core part, which is CONFIG_SND.
> > > > So, the fix should be:
> > > >
> > > > depends on SND
> > > >
> > > > instead.
> > >
> > > Indeed. Ingo already fixed that too.
> > >
> > > Although I personally would prefer:
> > > select SOUND
> > > select SND
> >
> > SND already depends on SOUND, so it's just superfluous.
>
> No, it is not (test it). Which is the main reason why select can be a pain.

Ah, OK, it's "select". Yeah it's a real pain, and should be avoided
in such a case...


Takashi

2009-12-21 22:39:28

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

Hi Henrique,

> > The patch isn't correct (I guess the upstream fix is same?).
> >
> > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > functions are ALSA core part, which is CONFIG_SND.
> > So, the fix should be:
> >
> > depends on SND
> >
> > instead.
>
> Indeed. Ingo already fixed that too.
>
> Although I personally would prefer:
> select SOUND
> select SND
>
> But anything that stops the build errors will do for now.

I still haven't seen this patch in Linus' tree. And you do need select
SOUND and SND. Otherwise you still get build errors. I have tested this
on my machine. So can someone please submit a proper patch to get this
fixed.

Regards

Marcel

2009-12-21 22:44:37

by Randy Dunlap

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:

> Hi Henrique,
>
> > > The patch isn't correct (I guess the upstream fix is same?).
> > >
> > > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > > functions are ALSA core part, which is CONFIG_SND.
> > > So, the fix should be:
> > >
> > > depends on SND
> > >
> > > instead.
> >
> > Indeed. Ingo already fixed that too.
> >
> > Although I personally would prefer:
> > select SOUND
> > select SND
> >
> > But anything that stops the build errors will do for now.
>
> I still haven't seen this patch in Linus' tree. And you do need select
> SOUND and SND. Otherwise you still get build errors. I have tested this
> on my machine. So can someone please submit a proper patch to get this
> fixed.

Ugh. Please don't 'select' to build an entire subsystem.

---
~Randy

2009-12-22 01:08:57

by helight.xu

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

Marcel Holtmann wrote:
> Hi Henrique,
>
>
>>> The patch isn't correct (I guess the upstream fix is same?).
>>>
>>> CONFIG_SOUND is a global config for sound subsystem. The relevant
>>> functions are ALSA core part, which is CONFIG_SND.
>>> So, the fix should be:
>>>
>>> depends on SND
>>>
>>> instead.
>>>
>> Indeed. Ingo already fixed that too.
>>
>> Although I personally would prefer:
>> select SOUND
>> select SND
>>
>> But anything that stops the build errors will do for now.
>>
>
> I still haven't seen this patch in Linus' tree. And you do need select
> SOUND and SND. Otherwise you still get build errors. I have tested this
> on my machine. So can someone please submit a proper patch to get this
> fixed.
>
I think my first patch about this can fix it!

http://lkml.org/lkml/2009/12/18/141

I have tested it!

> Regards
>
> Marcel
>
>
>
>


--
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org

2009-12-22 03:01:09

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

Hi Helight,

> >>> The patch isn't correct (I guess the upstream fix is same?).
> >>>
> >>> CONFIG_SOUND is a global config for sound subsystem. The relevant
> >>> functions are ALSA core part, which is CONFIG_SND.
> >>> So, the fix should be:
> >>>
> >>> depends on SND
> >>>
> >>> instead.
> >>>
> >> Indeed. Ingo already fixed that too.
> >>
> >> Although I personally would prefer:
> >> select SOUND
> >> select SND
> >>
> >> But anything that stops the build errors will do for now.
> >>
> >
> > I still haven't seen this patch in Linus' tree. And you do need select
> > SOUND and SND. Otherwise you still get build errors. I have tested this
> > on my machine. So can someone please submit a proper patch to get this
> > fixed.
> >
> I think my first patch about this can fix it!
>
> http://lkml.org/lkml/2009/12/18/141
>
> I have tested it!

either depends on SND or select SND + SOUND, but one of them has to be
pushed into Linus' tree. Personally I don't care which one.

Regards

Marcel

Subject: Re: [Patch] thinkpad_acpi: fix a build error

On Mon, 21 Dec 2009, Randy Dunlap wrote:
> On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:
> > > > The patch isn't correct (I guess the upstream fix is same?).
> > > >
> > > > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > > > functions are ALSA core part, which is CONFIG_SND.
> > > > So, the fix should be:
> > > >
> > > > depends on SND
> > > >
> > > > instead.
> > >
> > > Indeed. Ingo already fixed that too.
> > >
> > > Although I personally would prefer:
> > > select SOUND
> > > select SND
> > >
> > > But anything that stops the build errors will do for now.
> >
> > I still haven't seen this patch in Linus' tree. And you do need select
> > SOUND and SND. Otherwise you still get build errors. I have tested this
> > on my machine. So can someone please submit a proper patch to get this
> > fixed.
>
> Ugh. Please don't 'select' to build an entire subsystem.

I won't in this case. I think I will cook up a patch to disable the entire
mixer subsystem in thinkpad-acpi if CONFIG_SND is not available. I don't
like the depends on SND though.

As for select an entire subsystem, sorry, but I already do that for stuff
like input and backlight. Depends is a real CRAP for the user interface in
the case of platform drivers like thinkpad-acpi.

If we could get a depends-no-hide thing, that would not cause drivers to
simply disappear from the config interface without a trace, then maybe I
would have no reason for selects.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

2009-12-23 06:41:35

by Takashi Iwai

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

At Tue, 22 Dec 2009 17:38:58 -0200,
Henrique de Moraes Holschuh wrote:
>
> On Mon, 21 Dec 2009, Randy Dunlap wrote:
> > On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:
> > > > > The patch isn't correct (I guess the upstream fix is same?).
> > > > >
> > > > > CONFIG_SOUND is a global config for sound subsystem. The relevant
> > > > > functions are ALSA core part, which is CONFIG_SND.
> > > > > So, the fix should be:
> > > > >
> > > > > depends on SND
> > > > >
> > > > > instead.
> > > >
> > > > Indeed. Ingo already fixed that too.
> > > >
> > > > Although I personally would prefer:
> > > > select SOUND
> > > > select SND
> > > >
> > > > But anything that stops the build errors will do for now.
> > >
> > > I still haven't seen this patch in Linus' tree. And you do need select
> > > SOUND and SND. Otherwise you still get build errors. I have tested this
> > > on my machine. So can someone please submit a proper patch to get this
> > > fixed.
> >
> > Ugh. Please don't 'select' to build an entire subsystem.
>
> I won't in this case. I think I will cook up a patch to disable the entire
> mixer subsystem in thinkpad-acpi if CONFIG_SND is not available. I don't
> like the depends on SND though.

That's also not so trivial unless you give any dependency in Kconfig.
Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.

It'd be also not nice if suddenly a certain functionality disappears
without warning (even if the subsystem is enabled but as a module).


thanks,

Takashi

Subject: Re: [Patch] thinkpad_acpi: fix a build error

On Wed, 23 Dec 2009, Takashi Iwai wrote:
> At Tue, 22 Dec 2009 17:38:58 -0200,
> Henrique de Moraes Holschuh wrote:
> > I won't in this case. I think I will cook up a patch to disable the entire
> > mixer subsystem in thinkpad-acpi if CONFIG_SND is not available. I don't
> > like the depends on SND though.
>
> That's also not so trivial unless you give any dependency in Kconfig.
> Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.

"depends on SND || SND = n" takes care of the technical restrictions.

I am testing the patch now. No ALSA, no volume subdriver, module still
works (and prints some crap to syslog so that the user knows the driver
could do more with ALSA support).

> It'd be also not nice if suddenly a certain functionality disappears
> without warning (even if the subsystem is enabled but as a module).

The warning will be there. Although I don't warn of missing rfkill
functionality if the kernel is missing the rfkill subsystem...

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

2009-12-25 11:09:35

by Takashi Iwai

[permalink] [raw]
Subject: Re: [Patch] thinkpad_acpi: fix a build error

At Thu, 24 Dec 2009 16:59:12 -0200,
Henrique de Moraes Holschuh wrote:
>
> On Wed, 23 Dec 2009, Takashi Iwai wrote:
> > At Tue, 22 Dec 2009 17:38:58 -0200,
> > Henrique de Moraes Holschuh wrote:
> > > I won't in this case. I think I will cook up a patch to disable the entire
> > > mixer subsystem in thinkpad-acpi if CONFIG_SND is not available. I don't
> > > like the depends on SND though.
> >
> > That's also not so trivial unless you give any dependency in Kconfig.
> > Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.
>
> "depends on SND || SND = n" takes care of the technical restrictions.

Yep, that's what I mentioned as Kconfig dependency :)

> I am testing the patch now. No ALSA, no volume subdriver, module still
> works (and prints some crap to syslog so that the user knows the driver
> could do more with ALSA support).
>
> > It'd be also not nice if suddenly a certain functionality disappears
> > without warning (even if the subsystem is enabled but as a module).
>
> The warning will be there. Although I don't warn of missing rfkill
> functionality if the kernel is missing the rfkill subsystem...

The messages could be KERN_INFO instead of KERN_WARNING, I think.


thanks,

Takashi

Subject: Re: [ibm-acpi-devel] [Patch] thinkpad_acpi: fix a build error

On Fri, 25 Dec 2009, Takashi Iwai wrote:
> > "depends on SND || SND = n" takes care of the technical restrictions.
>
> Yep, that's what I mentioned as Kconfig dependency :)

I think I will do it a bit different, so that you can opt-out ALSA support
and still have thinkpad-acpi built in, with modular ALSA in that case.

Which means that, due to the lack of "depends-but-not-hide", the
"thinkpad-acpi alsa support" kconfig entry will still just disappear due to
a "depends on SND && SND = THINKPAD_ACPI".

I really want a depends that leaves the entry still visible, but greyed out
:-(

> > The warning will be there. Although I don't warn of missing rfkill
> > functionality if the kernel is missing the rfkill subsystem...
>
> The messages could be KERN_INFO instead of KERN_WARNING, I think.

It is at KERN_NOTICE right now.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

2009-12-25 18:39:35

by Randy Dunlap

[permalink] [raw]
Subject: Re: [ibm-acpi-devel] [Patch] thinkpad_acpi: fix a build error

On Fri, 25 Dec 2009 11:41:57 -0200 Henrique de Moraes Holschuh wrote:

> On Fri, 25 Dec 2009, Takashi Iwai wrote:
> > > "depends on SND || SND = n" takes care of the technical restrictions.
> >
> > Yep, that's what I mentioned as Kconfig dependency :)
>
> I think I will do it a bit different, so that you can opt-out ALSA support
> and still have thinkpad-acpi built in, with modular ALSA in that case.
>
> Which means that, due to the lack of "depends-but-not-hide", the
> "thinkpad-acpi alsa support" kconfig entry will still just disappear due to
> a "depends on SND && SND = THINKPAD_ACPI".
>
> I really want a depends that leaves the entry still visible, but greyed out
> :-(

That makes sense. And you can do that with xconfig, by setting
the Show All Options flag in the Option menu, but having that
feature for menuconfig and having those disabled options more
visible does sound good, I agree.


> > > The warning will be there. Although I don't warn of missing rfkill
> > > functionality if the kernel is missing the rfkill subsystem...
> >
> > The messages could be KERN_INFO instead of KERN_WARNING, I think.
>
> It is at KERN_NOTICE right now.


---
~Randy