Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3604138ybf; Tue, 3 Mar 2020 08:56:42 -0800 (PST) X-Google-Smtp-Source: ADFU+vsfWQyKJG1rs6CYcI0LDN9mDJfZb2D4Z7f+P0w/FCKjtskGtYi7YjjFDRaBcU4M6l/5k6Mg X-Received: by 2002:a9d:7dc9:: with SMTP id k9mr4135496otn.321.1583254602696; Tue, 03 Mar 2020 08:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583254602; cv=none; d=google.com; s=arc-20160816; b=lYs79IZFa6PFW+Emk0wDyTZOvAsAMgQkJRlxn6R47N0y3PslX8E1KAOVgGz9kfBX0x 9FZZZ7siA40hCQtvGtxC+UX/ncp57IUCmpO8zjd/vqOYbfWPzov0PY01ChRLZXmzBHvR R6tVh5f10OcimeTJYs9vI8jQg5je68TZRNt0zDmUrkVZyYzkLcy93KmY5WRqiPyUZCIU OPGFHB8ra2GOMvDQUrpC+32yu5a6ngF5ghhV3tY0UL73LPsK/TBMmw+yt44NDURm1pRd cM0431oNtRezkn4X0PghZmH959E/PsnApQgulQFYFFJ+4LyOydjoNlAAE1PEwg6iWOuN o4Bw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=0h9eZXUbT/+wZn18IzVeTxSKw0VaeM+576oP9khRe6o=; b=kYzIUMyW9pppdkaun2VP1Mmniv3A5jhzXZgDRxZ7MHQ7Bk2p8yDdAFANgOj0be0tAA ILAXzE/37YFIfQ4+WHNbsyTRVMfLvFA2gysPLwzonNQ26WvuVlwNk0ZqX838glGvHsx9 1Y1TVosZ38EZK6Yk3jgEjnitiwph9H8KJKKjWNPjRAgPZq/VyhfOg1yOXUFbyuIqjXta 19iqUum7qtEAinVdWEeUO/F1eYW6lY5gj5Jwk9As9VEYs0u+F1yKVX0BG+PuSFEEy4ts u7izfLWJasc9LYVsIqde8RTOhudOlZZGfgTZkOnd82rVMpyVZbTdleLaIQDVsTBw+8qg HNrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=o4b8Fvsz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si8810179oib.193.2020.03.03.08.56.30; Tue, 03 Mar 2020 08:56:42 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=o4b8Fvsz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730465AbgCCQy5 (ORCPT + 99 others); Tue, 3 Mar 2020 11:54:57 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46438 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730442AbgCCQy5 (ORCPT ); Tue, 3 Mar 2020 11:54:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=0h9eZXUbT/+wZn18IzVeTxSKw0VaeM+576oP9khRe6o=; b=o4b8FvszcUQVJsc7FTwT0eGsg2 8IGAsPOmZEt3I7SeQ1YmMBj/ZGYGdXT9eTMWdDnusCnGWhT7wWB7fwX5ygtZL/FKfGUU70EidZkIZ 7HQywX5V/rCqHkxjrPXBYVJ4jmZ7/XKBvA/SfBcJW7m68jJk9MqVg8rGu9VJqLKcYjTv7G2OWc/cQ ono48DKQUjNB59qUvXs3PDRsi1sCWSLPNy3Nr+Agttxw3T8gc5PV3R9vYg6Vi1WlqdapXMz2flidi HlTiTw6+5t6dO8uQIx5IwhrlLwVN1B84IkJeEihitV7XkAm5UMP8rwAWyNWFZNWZwuR+ntBNTb/S8 r0NMFSOg==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j9AoX-0004ah-2t; Tue, 03 Mar 2020 16:54:37 +0000 Subject: Re: [PATCH] ASoC: amd: AMD RV RT5682 should depends on CROS_EC To: Enric Balletbo i Serra , linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , Jaroslav Kysela , alsa-devel@alsa-project.org, Akshu Agrawal , Mark Brown , Thomas Gleixner , Takashi Iwai , Liam Girdwood , Greg Kroah-Hartman , YueHaibing References: <20200303110514.3267126-1-enric.balletbo@collabora.com> From: Randy Dunlap Message-ID: <3e34a902-2a7c-c13c-d569-9d6479a65627@infradead.org> Date: Tue, 3 Mar 2020 08:54:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200303110514.3267126-1-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/3/20 3:05 AM, Enric Balletbo i Serra wrote: > 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 Acked-by: Randy Dunlap # build-tested Thanks. > --- > > 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. > -- ~Randy