Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6382138pxb; Mon, 8 Nov 2021 07:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJycJEo6zUJ7T+3WcPVmwBWXoU9fbuW4hwyLvgaHrOK0c5xyfi3VpFr/PUF2ALjAA7s1aeal X-Received: by 2002:a92:3f0c:: with SMTP id m12mr625609ila.317.1636386271702; Mon, 08 Nov 2021 07:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636386271; cv=none; d=google.com; s=arc-20160816; b=Nc9sIEIjeX7tG+xKZrSjI4DUp6aGxTLt56yW91lWhcYQpAKkelV3KMDvkqPkg+tNPR FRJyEE9R6f1+/1iv35O4cVvyPeLiavmsBfEjrUNJAVf3BH4zMK9Zof8DOh0fjAJR0T49 BhWWC3MZwZW2PhdaylcAu1qwmKs32BbsVTBFjJetdTtxhmyXpCzW+3yRIHUII7TFcfr3 INk6XGZMn1l5O81nt2XrQDArOcqfhZVqucA9O+WNpdqfBAdEvnr5GeDJ2xPTPd7C3Wg2 /NeTqTx3gR0xG1PBefDSJw8Jlc8inbLA/1tKxMLcBvJKs0fzhneGE2JLx3Wb8Tdom7fC veBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7Wjs4FROuxffK+gW4caS3L8s/d4vdrlXoO8tKjFng8o=; b=Q16oBsjXayKCjJjLJTippB3rjN56l32hwQwfKg/jJqzHMPtzs6LKmcle9zu1noIwKD xF8pTGE1D1KNrOn6clTIHxjRLelOqK3/ExsuU040W2tBBU9QIxC3W9IoyGwwzS5o8HPC lH0qYHgECCzvvAlbXVq9cPdXpkgJ30A/99D+bIzWDKyjf5D7Eyd4pqhbcNwcGuI9kTcb /+fzE6va/UP54aG9rzNnsV/jQjWkP8IUplsvP8utxM6gtJ4Bc1ewnwShCTR9e9fLVnk9 xlCasmlcPGPHBrSlS9TF9xiDpWCk/G803F4RKAHhZ1QVUzFGx44RCvT0GTuMj5HKRCjL dhow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEAOGc3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si9184216jap.30.2021.11.08.07.44.19; Mon, 08 Nov 2021 07:44:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZEAOGc3d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236637AbhKHLOX (ORCPT + 99 others); Mon, 8 Nov 2021 06:14:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:50930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236176AbhKHLOW (ORCPT ); Mon, 8 Nov 2021 06:14:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D44C61360; Mon, 8 Nov 2021 11:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636369898; bh=7jjDd9CBG4/LM9amMERhrdw6zgQgalfZow+o2TL+xNc=; h=From:To:Cc:Subject:Date:From; b=ZEAOGc3d4l/towaigTVgofn/UkzylCCIJ+PhIFhCQ3xphTcn1FlajJ0XOeScD0Fyw lXNNInOyttPKnW/iVWxjcocDkiwdM9pPv8xJABz1ksoLMlF6g6mGC3pXaiwnEwc1UT zmQKV6b66LgBfc+T6dk77dvV1HuvKeCFo5m6AckiAWLzCwz8kOOQs1m24DcXr/5SRF XR9WkoJP/sNM0Lm9MRAkpV7knrwo/6ygiH7IZrlZSobStZgOOaYS2rF6zQSXgMgLw/ 4Sx8TEZVczKCP4O9PVmxH6c3NQdkZAkxHg/cfnlHTjVM+9L6Xw5bG0aNLGveO9brR9 91OPC9ACS3psw== From: Arnd Bergmann To: Pierre-Louis Bossart , Liam Girdwood , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta Cc: Arnd Bergmann , Mark Brown , Jaroslav Kysela , Takashi Iwai , Colin Ian King , Peter Ujfalusi , Randy Dunlap , Bud Liviu-Alexandru , Paul Olaru , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: SOF: build compression interface into snd_sof.ko Date: Mon, 8 Nov 2021 12:11:14 +0100 Message-Id: <20211108111132.3800548-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann With CONFIG_SND_SOC_SOF_COMPRESS=m, the compression code is not built into a the main SOF driver when that is built-in: x86_64-linux-ld: sound/soc/sof/ipc.o: in function `ipc_stream_message': ipc.c:(.text+0x5a2): undefined reference to `snd_sof_compr_fragment_elapsed' x86_64-linux-ld: sound/soc/sof/topology.o: in function `sof_dai_load': topology.c:(.text+0x32d1): undefined reference to `snd_sof_compr_init_elapsed_work' x86_64-linux-ld: topology.c:(.text+0x32e1): undefined reference to `snd_sof_compr_init_elapsed_work' Make this a 'bool' symbol so it just decides whether the code gets built at all. Fixes: 858f7a5c45ca ("ASoC: SOF: Introduce fragment elapsed notification API") Signed-off-by: Arnd Bergmann --- sound/soc/sof/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/Kconfig b/sound/soc/sof/Kconfig index 6bb4db87af03..041c54639c4d 100644 --- a/sound/soc/sof/Kconfig +++ b/sound/soc/sof/Kconfig @@ -47,7 +47,7 @@ config SND_SOC_SOF_OF Say Y if you need this option. If unsure select "N". config SND_SOC_SOF_COMPRESS - tristate + bool select SND_SOC_COMPRESS config SND_SOC_SOF_DEBUG_PROBES -- 2.29.2