From patchwork Wed Dec 1 17:43:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas tanure X-Patchwork-Id: 519800 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F503C433F5 for ; Wed, 1 Dec 2021 17:44:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3E0F12135; Wed, 1 Dec 2021 18:43:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3E0F12135 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1638380689; bh=DrH2KErXniQdFfRJ7UqRLA/fX3clVbqs9rcmT6FAung=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=eoOWtiQCkRncaBSFqCpuuaAKXDGxkfuK6uCpctPpiCN9wIU+EnVDybr8QujBrf2NG XuISlXsYZvScEJRMCbz41kiKmvM7nrfQwJjBTnnQ1wXZamKkJBcBYx8SUB3FojiOb6 zESiVfVsRnU3Evay8nLH1WjzHmzUAOM04WogNqok= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8A39BF80240; Wed, 1 Dec 2021 18:43:57 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 542B7F80256; Wed, 1 Dec 2021 18:43:55 +0100 (CET) Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 85A45F80217 for ; Wed, 1 Dec 2021 18:43:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 85A45F80217 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="NMf5LqMG" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1B150FNa020440; Wed, 1 Dec 2021 11:43:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=USMKAjKlWX5RdcWThd0ZXcUwm5XRCCvMpVHsaxh7ssQ=; b=NMf5LqMGucq/FjxHCuWIOanVnUOKcpu5n3xdArJc0udbt2SI7sMKNeMfOzh2ULozqibU 3zS9CFDAmQ8FoSX1krX2xsBk7GTTN5NaXS6szvJV8pW/0/6KdWhF8jCsmBm1lYza0FBy uRSps8PbeVx1vKwXw0C2vmyg8czztqOGAasb8etFKa9+bF2IhI3eu1atp3OWFlNlPcA6 YaZNWgoYSkOVMhJlHi+dhd0FR57SPzHZNErgnlrVRaGtqflgLLZEyT+zMQrp9f3X0xgf NaFhoZMYkyb4SlcTVRySHO7OzxQQoECoSoR4KW5W3VnKKLFSb4PtcQ6IW9a5gvAdztWT 4w== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3cp1x10t7j-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 01 Dec 2021 11:43:44 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 1 Dec 2021 17:43:42 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 1 Dec 2021 17:43:42 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.64.238]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 59762B10; Wed, 1 Dec 2021 17:43:42 +0000 (UTC) From: Lucas Tanure To: Len Brown , Takashi Iwai , Liam Girdwood , Jaroslav Kysela , Mark Brown Subject: [PATCH 2/2] ASoC: cs35l41: Fix undefined reference to core functions Date: Wed, 1 Dec 2021 17:43:07 +0000 Message-ID: <20211201174307.1399625-2-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211201174307.1399625-1-tanureal@opensource.cirrus.com> References: <20211201174307.1399625-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-GUID: W90QqdUWtiqt8Z5EZgfKL8REfzr9MjmL X-Proofpoint-ORIG-GUID: W90QqdUWtiqt8Z5EZgfKL8REfzr9MjmL X-Proofpoint-Spam-Reason: safe Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Lucas Tanure , kernel test robot X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Auto select core driver if i2c or spi bus drivers are selected Fixes: a5e0091d62ab ("ASoC: cs35l41: Fix link problem") Signed-off-by: Lucas Tanure Reported-by: kernel test robot --- sound/soc/codecs/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index b4f70e27342c..c033ee7d82e4 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -614,17 +614,19 @@ config SND_SOC_CS35L36 config SND_SOC_CS35L41 tristate + default y if SND_SOC_CS35L41_SPI=y + default y if SND_SOC_CS35L41_I2C=y + default m if SND_SOC_CS35L41_SPI=m + default m if SND_SOC_CS35L41_I2C=m config SND_SOC_CS35L41_SPI tristate "Cirrus Logic CS35L41 CODEC (SPI)" depends on SPI_MASTER - select SND_SOC_CS35L41 select REGMAP_SPI config SND_SOC_CS35L41_I2C tristate "Cirrus Logic CS35L41 CODEC (I2C)" depends on I2C - select SND_SOC_CS35L41 select REGMAP_I2C config SND_SOC_CS42L42