Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp167323pxb; Mon, 8 Nov 2021 11:34:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkwdkmGGT5vGoqMyZd93HK1TqzDY8c/0TpmOjkDo683Oqf0ioD5MTGhAIXy1UaQtvXy5Rj X-Received: by 2002:a05:6602:15d3:: with SMTP id f19mr1021729iow.211.1636400060341; Mon, 08 Nov 2021 11:34:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636400060; cv=none; d=google.com; s=arc-20160816; b=cN+GIF17fi9RljIa+WPNIoB+uPnMg7EdenrzIBre+AiUDw+1BUI7wrzsKzC8JHnVKV zvdwYgIYIj6hW5GA0xcL4dgDhZTvhwqRX4e7LUN4FpbWaniwrGYZ+jpR7p5wVvDpQb7L m/KT9raVo0bBXW9falZAiUoiD05R/U/am5HkFpdmuWy8ZyyHDxMCOEhovynWpIoxRobC w7tbbBwUanWeIeDDB0F7X0okQCrfL9DlkitBaVsTY5AaMMCfYEmhpUncJ/eEiSlWPnFa XrYXVdD9bdxw4qo4XdGkAr+RgHTfk4594a/61tipmYXCNTG5xJXeSyQpJTIVYOV58NSK Jsog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=X2i1qCnihaujTnlE3qO6R3Hd5zm7/lQuta9rCTys2nU=; b=SKWomu2PcMWxWxEFiwpuvxsFmeLCQpj99RnVfgV/B8IyoMwEpFsGJPa/bjbCNYVGGM X4o0q5pbiNJU1bsHU35tEg6WJOyIVu21s7hQOVS43BnOKg/ZxTQcyF7dHtuWndritAKH +mUki4eVJz6ZFZZ6CDgHIu7yDjsIQylAV/tmmYvYuzmMpCEqndDl6YBtqQ7aA6hnEFtt Phqd+2ysJpbNP9LPcKGmAngEezIgFjV50UZULvceZpCEAgkk44xbMzDWLGSeLes/AaT8 UdAEj3Ir56Z1cSkhk3fTqeYqxs3/zRZDmcLbvfESmUKI5f/IEV9WRtVUplRD2Sp7bv2u e3Sg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si23749201jaj.95.2021.11.08.11.34.07; Mon, 08 Nov 2021 11:34:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238731AbhKHNmU (ORCPT + 99 others); Mon, 8 Nov 2021 08:42:20 -0500 Received: from mga02.intel.com ([134.134.136.20]:2279 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhKHNmT (ORCPT ); Mon, 8 Nov 2021 08:42:19 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10161"; a="219423204" X-IronPort-AV: E=Sophos;i="5.87,218,1631602800"; d="scan'208";a="219423204" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2021 05:39:34 -0800 X-IronPort-AV: E=Sophos;i="5.87,218,1631602800"; d="scan'208";a="533315761" Received: from anushave-mobl1.amr.corp.intel.com (HELO [10.255.85.158]) ([10.255.85.158]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2021 05:39:31 -0800 Subject: Re: [PATCH] ASoC: SOF: build compression interface into snd_sof.ko To: Arnd Bergmann , 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 References: <20211108111132.3800548-1-arnd@kernel.org> From: Pierre-Louis Bossart Message-ID: <63c5b1fb-575e-f026-5a76-f08a366f7f38@linux.intel.com> Date: Mon, 8 Nov 2021 07:39:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211108111132.3800548-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/21 5:11 AM, Arnd Bergmann wrote: > 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 It's Monday morning and my memory is still foggy but I think we fixed this problem with https://github.com/thesofproject/linux/pull/3180, where we changed the Kconfigs for i.MX. We haven't sent this update upstream for some reason. Arnd, can you share the configuration that breaks with the existing upstream code, I can check if the problem still exists. Thanks!