Skip to content

Commit

Permalink
soundwire-defconfig: split codecs so soundwire-codecs-defconfig
Browse files Browse the repository at this point in the history
This split allows for codecs to be selected only on the basis of
machine drivers selected, or conversely to be all included for
developers.

kconfig-sof-default-nodev.sh now includes only the bare minimum for
SOF.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Apr 24, 2024
1 parent ac25b59 commit 2821509
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 14 deletions.
1 change: 1 addition & 0 deletions kconfig-distro-sof-dev-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ $COMMAND .config \
$KCONFIG_DIR/hdaudio-codecs-defconfig \
$KCONFIG_DIR/lock-stall-defconfig \
$KCONFIG_DIR/soundwire-defconfig \
$KCONFIG_DIR/soundwire-codecs-defconfig \
$@
19 changes: 19 additions & 0 deletions kconfig-sof-default-nodev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e

KCONFIG_DIR=$(dirname ${BASH_SOURCE[0]})
echo $KCONFIG_DIR

. $KCONFIG_DIR/kconfig-lib.sh

make defconfig
$COMMAND .config \
$KCONFIG_DIR/base-defconfig \
$KCONFIG_DIR/devices-defconfig \
$KCONFIG_DIR/sof-defconfig \
$KCONFIG_DIR/amd-defconfig \
$KCONFIG_DIR/mach-driver-defconfig \
$KCONFIG_DIR/hdaudio-codecs-defconfig \
$KCONFIG_DIR/soundwire-defconfig \
$@
1 change: 1 addition & 0 deletions kconfig-sof-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ $COMMAND .config \
$KCONFIG_DIR/telemetry-debugfs-defconfig \
$KCONFIG_DIR/lock-stall-defconfig \
$KCONFIG_DIR/soundwire-defconfig \
$KCONFIG_DIR/soundwire-codecs-defconfig \
$KCONFIG_DIR/bpf-defconfig \
$@
24 changes: 24 additions & 0 deletions soundwire-codecs-defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# add codecs so that they are compiled even if no machine
# drivers are selected
CONFIG_MFD_CS42L43_SDW=m
CONFIG_SND_SOC_CS35L56_SDW=m
CONFIG_SND_SOC_CS42L42_SDW=m
CONFIG_SND_SOC_CS42L43_SDW=m
CONFIG_SND_SOC_MAX98373_SDW=m

CONFIG_SND_SOC_RT1017_SDCA_SDW=m
CONFIG_SND_SOC_RT1308_SDW=m
CONFIG_SND_SOC_RT1316_SDW=m
CONFIG_SND_SOC_RT1318_SDW=m
CONFIG_SND_SOC_RT5682_SDW=m
CONFIG_SND_SOC_RT700_SDW=m
CONFIG_SND_SOC_RT711_SDW=m
CONFIG_SND_SOC_RT711_SDCA_SDW=m
CONFIG_SND_SOC_RT712_SDCA_SDW=m
CONFIG_SND_SOC_RT712_SDCA_DMIC_SDW=m
CONFIG_SND_SOC_RT722_SDCA_SDW=m
CONFIG_SND_SOC_RT715_SDW=m
CONFIG_SND_SOC_RT715_SDCA_SDW=m

# SoundWire mockup codec
CONFIG_SND_SOC_SDW_MOCKUP=m
14 changes: 0 additions & 14 deletions soundwire-defconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
CONFIG_SOUNDWIRE=m
CONFIG_SOUNDWIRE_INTEL=m
CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE=m

# add codecs so that they are compiled even if no machine
# drivers are selected
CONFIG_SND_SOC_RT700_SDW=m
CONFIG_SND_SOC_RT711_SDW=m
CONFIG_SND_SOC_RT1308_SDW=m
CONFIG_SND_SOC_RT715_SDW=m
CONFIG_SND_SOC_RT711_SDCA_SDW=m
CONFIG_SND_SOC_RT1316_SDW=m
CONFIG_SND_SOC_RT1318_SDW=m
CONFIG_SND_SOC_RT715_SDCA_SDW=m

# SoundWire mockup codec
CONFIG_SND_SOC_SDW_MOCKUP=m

0 comments on commit 2821509

Please sign in to comment.