All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable max98357a in sound/soc/codecs
@ 2018-10-04 11:44 Paul Nader
  2018-10-04 13:04 ` valdis.kletnieks at vt.edu
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Nader @ 2018-10-04 11:44 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I'm trying to enable the max98357a codec in sound/soc/codecs.

In the Kconfig file it is listed with an empty tristate so it doesn't show
up when I do a make menu config.

The only way I found so far was to patch the Kconfig and add a description
to the  tristate. It then appears in the menu when doing make menuconfig
and it is also enabled if i patch my board's defconfig and add
CONFIG_SND_SOC_MAX98357A=m to it. If I don't add a description then adding
CONFIG_SND_SOC_MAX98357A=m doesn't enable it.

How can I enable it without adding a description to the tristate?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181004/b018dac8/attachment.html>

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

* How to enable max98357a in sound/soc/codecs
  2018-10-04 11:44 How to enable max98357a in sound/soc/codecs Paul Nader
@ 2018-10-04 13:04 ` valdis.kletnieks at vt.edu
  2018-10-04 19:40   ` Paul Nader
  0 siblings, 1 reply; 3+ messages in thread
From: valdis.kletnieks at vt.edu @ 2018-10-04 13:04 UTC (permalink / raw)
  To: kernelnewbies

On Thu, 04 Oct 2018 12:44:00 +0100, Paul Nader said:

> I'm trying to enable the max98357a codec in sound/soc/codecs.

> In the Kconfig file it is listed with an empty tristate so it doesn't show
> up when I do a make menu config.

That's usually a result of the variable being enabled by a 'select' elsewhere.

> How can I enable it without adding a description to the tristate?

Enable something that does a 'select'.  Look in a 'git grep MAX98357A'
or "find . -name 'Kconfig*' | xargs grep MAX98357A' .  It looks like that
part is mostly used for some arm64 (it's in the defconfig) and some
Intel SoC boards.  Look at sound/soc/intel/boards/Kconfig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181004/d142fb31/attachment.sig>

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

* How to enable max98357a in sound/soc/codecs
  2018-10-04 13:04 ` valdis.kletnieks at vt.edu
@ 2018-10-04 19:40   ` Paul Nader
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Nader @ 2018-10-04 19:40 UTC (permalink / raw)
  To: kernelnewbies

Many thanks, I see what you mean, they are enabled at the board level
(Intel, amd and rockchip). I'll patch mine (sunxi) and the defconfig.

On Thu, Oct 4, 2018 at 2:05 PM <valdis.kletnieks@vt.edu> wrote:

> On Thu, 04 Oct 2018 12:44:00 +0100, Paul Nader said:
>
> > I'm trying to enable the max98357a codec in sound/soc/codecs.
>
> > In the Kconfig file it is listed with an empty tristate so it doesn't
> show
> > up when I do a make menu config.
>
> That's usually a result of the variable being enabled by a 'select'
> elsewhere.
>
> > How can I enable it without adding a description to the tristate?
>
> Enable something that does a 'select'.  Look in a 'git grep MAX98357A'
> or "find . -name 'Kconfig*' | xargs grep MAX98357A' .  It looks like that
> part is mostly used for some arm64 (it's in the defconfig) and some
> Intel SoC boards.  Look at sound/soc/intel/boards/Kconfig.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20181004/e002f231/attachment.html>

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

end of thread, other threads:[~2018-10-04 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04 11:44 How to enable max98357a in sound/soc/codecs Paul Nader
2018-10-04 13:04 ` valdis.kletnieks at vt.edu
2018-10-04 19:40   ` Paul Nader

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.