Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3301090ybf; Tue, 3 Mar 2020 03:29:44 -0800 (PST) X-Google-Smtp-Source: ADFU+vv12UGKIISE5ZVbx9/J8oG8XEPdURunQhkmRzpj3V00cU49KgiX3Wn/pvmriaYRDqGJAU7k X-Received: by 2002:a9d:3b6:: with SMTP id f51mr3144588otf.255.1583234984821; Tue, 03 Mar 2020 03:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583234984; cv=none; d=google.com; s=arc-20160816; b=lsoT9cbLyrazFIiJEBAPGgncEFHM2UxEC7uo/OVgsBk6ZxdWEX2xOH2uLw91fpiIpc 8TBJpHQyAZISsIzmkaChVcDU1HurCI5rGqWKI4olv92t7oXoGeyaQJS+zq359v1P3+Ef JAL4IgcKgNjPA7AnKnFxNZ9fCbCt+YcJm/iXZFXl9TMG0+qRcLuEIAqVKgY2YreNq+hp ZfWjnPXJRAdj17SocF93HQUhN2MR7q5OlN0H3NLKl/Xf50PLUqAq/Qrbd2SppU/QXh6l tuicSKObokFBsABJm/zKelnF88aoUtywC08pycgFgFRYQX8Y8dfvhQHpwk+eFHtK1kSr h93Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7IiiY3KqueMfxsckr0GbqXdsF3M57r49ym/G/LxV3xw=; b=fkw4x8T8Sx1oQ/wQv2hJ0ApDZTIKQFzPcRmXjKiNh+pJJ5MgZQ4pEFo1cKqiyK1eN8 oIRIbdZ+w5b3izvoyqzCs9gTPSfEMRqmn1uCM8C3S0Gv5fQw/hWV6ce2XQAHebFuDVK3 hUb9wkkA+MuF0ut6RYwOs6cER6+U6+QOEtf4yg9JZVjR/0UcPsB1Smug9EUI9TDNe6tu 2XBw89PlXsFmkYyCJ1uTCtujvHrrDbaqE8aT8dGCyTnwWJ9Yd8MIPxaXV+rGjYoRslDX 1J1kAeifzl8AgJpFDpAd4V6IwQ2MR4ZVw39yi23UVIWpotId74GqORm83SYDciginEGm ossA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si3235463oto.46.2020.03.03.03.29.32; Tue, 03 Mar 2020 03:29:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbgCCLFX (ORCPT + 99 others); Tue, 3 Mar 2020 06:05:23 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55684 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728022AbgCCLFX (ORCPT ); Tue, 3 Mar 2020 06:05:23 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 091D52919DF From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , Randy Dunlap , Jaroslav Kysela , alsa-devel@alsa-project.org, Akshu Agrawal , Mark Brown , Thomas Gleixner , Takashi Iwai , Liam Girdwood , Greg Kroah-Hartman , YueHaibing Subject: [PATCH] ASoC: amd: AMD RV RT5682 should depends on CROS_EC Date: Tue, 3 Mar 2020 12:05:14 +0100 Message-Id: <20200303110514.3267126-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If SND_SOC_AMD_RV_RT5682_MACH=y, below kconfig and build errors can be seen: WARNING: unmet direct dependencies detected for SND_SOC_CROS_EC_CODEC WARNING: unmet direct dependencies detected for I2C_CROS_EC_TUNNEL ld: drivers/i2c/busses/i2c-cros-ec-tunnel.o: in function `ec_i2c_xfer': i2c-cros-ec-tunnel.c:(.text+0x2fc): undefined reference to `cros_ec_cmd_xfer_status' ld: sound/soc/codecs/cros_ec_codec.o: in function `wov_host_event': cros_ec_codec.c:(.text+0x4fb): undefined reference to `cros_ec_get_host_event' ld: sound/soc/codecs/cros_ec_codec.o: in function `send_ec_host_command': cros_ec_codec.c:(.text+0x831): undefined reference to `cros_ec_cmd_xfer_status' This is because it will select SND_SOC_CROS_EC_CODEC and I2c_CROS_EC_TUNNEL but both depends on CROS_EC. Fixes: 6b8e4e7db3cd ("ASoC: amd: Add machine driver for Raven based platform") Reported-by: Randy Dunlap Signed-off-by: Enric Balletbo i Serra --- sound/soc/amd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/Kconfig b/sound/soc/amd/Kconfig index b29ef1373946..bce4cee5cb54 100644 --- a/sound/soc/amd/Kconfig +++ b/sound/soc/amd/Kconfig @@ -33,6 +33,6 @@ config SND_SOC_AMD_RV_RT5682_MACH select SND_SOC_MAX98357A select SND_SOC_CROS_EC_CODEC select I2C_CROS_EC_TUNNEL - depends on SND_SOC_AMD_ACP3x && I2C + depends on SND_SOC_AMD_ACP3x && I2C && CROS_EC help This option enables machine driver for RT5682 and MAX9835. -- 2.25.1