techpack: audio: Don't build wcd934x and wcd937x

Change-Id: Iea76a9e2abf901e15b9cec666b6aa6b317c4fc9e
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2021-09-07 02:43:33 +09:00
committed by Wiktor Rudzki
parent 2224ed45f4
commit 2bb5b71c7e
2 changed files with 2 additions and 17 deletions

View File

@@ -268,8 +268,6 @@ KBUILD_EXTRA_SYMBOLS +=$(OUT)/obj/vendor/qcom/opensource/audio-kernel/soc/Module
endif
ifeq ($(KERNEL_BUILD), 1)
obj-y += wcd934x/
obj-y += wcd937x/
obj-y += wcd938x/
obj-y += bolero/
obj-y += wsa883x/

View File

@@ -8437,7 +8437,7 @@ static int msm_snd_card_late_probe(struct snd_soc_card *card)
if (!is_wcd937x)
ret = wcd938x_mbhc_hs_detect(component, &wcd_mbhc_cfg);
else
ret = wcd937x_mbhc_hs_detect(component, &wcd_mbhc_cfg);
panic("Device is wcd937x, which is unsupported");
if (ret) {
dev_err(component->dev, "%s: mbhc hs detect failed, err:%d\n",
__func__, ret);
@@ -8806,20 +8806,7 @@ static int msm_rx_tx_codec_init(struct snd_soc_pcm_runtime *rtd)
if (!strncmp(component->driver->name, WCD937X_DRV_NAME,
strlen(WCD937X_DRV_NAME))) {
wcd937x_info_create_codec_entry(pdata->codec_root, component);
codec_variant = wcd937x_get_codec_variant(component);
dev_dbg(component->dev, "%s: variant %d\n",
__func__, codec_variant);
if (codec_variant == WCD9370_VARIANT)
ret = snd_soc_add_component_controls(component,
msm_int_wcd9370_snd_controls,
ARRAY_SIZE(msm_int_wcd9370_snd_controls));
else if (codec_variant == WCD9375_VARIANT)
ret = snd_soc_add_component_controls(component,
msm_int_wcd9375_snd_controls,
ARRAY_SIZE(msm_int_wcd9375_snd_controls));
bolero_set_port_map(bolero_component,
ARRAY_SIZE(sm_port_map_wcd937x), sm_port_map_wcd937x);
panic("Device is wcd937x, which is unsupported");
} else if (!strncmp(component->driver->name, WCD938X_DRV_NAME,
strlen(WCD938X_DRV_NAME))) {
wcd938x_info_create_codec_entry(pdata->codec_root, component);