On 12/12/18 5:50 AM, Takashi Iwai wrote:
On Tue, 11 Dec 2018 22:30:29 +0100,
Pierre-Louis Bossart wrote:
--- /dev/null
+++ b/sound/soc/sof/Kconfig
@@ -0,0 +1,82 @@
+config SND_SOC_SOF_PCI
+ tristate
+
+config SND_SOC_SOF_ACPI
+ tristate
+
+config SND_SOC_SOF
+ tristate "Sound Open Firmware Support"
+ select SND_SOC_TOPOLOGY
+ help
+ This adds support for Sound Open Firmware (SOF). SOF is a free and
+ generic open source audio DSP firmware for multiple devices.
+ Say Y if you have such a device that is supported by SOF.
+ If unsure select "N".
You can put
if SND_SOC_SOF
at this point. This will reduce lots of "depends on SND_SOC_SOF"
lines.
Yes. I tend to use 'ifs' and others 'depends on', will align.
+config SND_SOC_SOF_NOCODEC
+ tristate "SOF nocodec mode Support"
+ depends on SND_SOC_SOF
....
+source "sound/soc/sof/intel/Kconfig"
+source "sound/soc/sof/xtensa/Kconfig"
... the endif for SND_SOC_SOF can be put here, then both Kconfigs are
covered by SND_SOC_SOF condition.
OTOH, the usage of if-block below is an overkill.
--- /dev/null
+++ b/sound/soc/sof/intel/Kconfig
....
+if SND_SOC_SOF_HDA_COMMON
+
+config SND_SOC_SOF_HDA_LINK
+ bool "SOF support for HDA Links(HDA/HDMI)"
+ help
+ This adds support for HDA links(HDA/HDMI) with Sound Open Firmware
+ for Intel(R) platforms.
+ Say Y if you want to enble HDA links with SOF.
+ If unsure select "N".
+
+if SND_SOC_SOF_HDA_LINK
+config SND_SOC_SOF_HDA_AUDIO_CODEC
+ bool "SOF support for HDAudio codecs"
+ help
+ This adds support for HDAudio codecs with Sound Open Firmware
+ for Intel(R) platforms.
+ Say Y if you want to enble HDAudio codecs with SOF.
+ If unsure select "N".
+endif ## SND_SOC_SOF_HDA_LINK
+
+endif ## SND_SOC_SOF_HDA_COMMON
For single items, just use depends on. It's easier to read.
Agree, we could remove the nested one. I tend to use 'ifs' when there
are two or more configs, here it's not really needed.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel