How to enable max98357a in sound/soc/codecs
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
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.
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.
participants (2)
-
Paul Nader -
valdis.kletnieks@vt.edu