Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp657220pxh; Wed, 10 Nov 2021 07:30:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLO6gy7gMTgYI+1/Wilk+vaz+4eXpkKYAq5pMormji+gDMpuCYMdzuLdmqIwl4iJS7y7/N X-Received: by 2002:a17:903:283:b0:142:1243:d879 with SMTP id j3-20020a170903028300b001421243d879mr114565plr.61.1636558222621; Wed, 10 Nov 2021 07:30:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636558222; cv=pass; d=google.com; s=arc-20160816; b=wS94Y2zyRzedBQIL1bsP68MINpAnTPWj9Cg5H27mNNS/NpgayfxTEhmqtxKjvrOQbe 21X82w/2yGhFI6SjQOwroYRYS2yb7t0C1sKPF1hn4whVGFUv9ahP4USNfnqnTk8Nszjg lA23rdCvylLBxrPlVoo7vvLXOG2of3F7j2DUKJGjv6oZafrsbv2HdzkSdPRlXccq36s2 7WP9M3/6M7BMkRQ8QdlFp/gChjYvo0LHkadPJUvJmCJTX6V38kQA4Ri+HwT57kTimG9D N8PjQM5/zAs+eXieMsaMm5l8WVc7b/r0AgNIyM9489Q1C7rKpNOzJKDaTxyEOTSW1y8n E0SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=x5eeSTCNSaDL0Yz8AHq65QUqZG92k6jwv73iNBtVjfI=; b=PsQJW86BLwWEfPi+edBtQ5fu6TejSRBc9P7E3zy6CdvAHqNiFSFoYVf1GXwVzESKn4 X5Zx/cVhw15HDOwQ3w1RuAhUChPmwq+nHc0TOi0tn4Um1CYmtb5JDR85r8sJJd1W63lz efuf6WqzrjwhxfqWLisyW++Xdxw5/Xz0WaXzcqm1tUTXF21t6+TW7ac8RmttTs1bRhBi Tq0zI03H/SxekplpWxDzSGvbrwxS5NOk/zDnBjSJr7L+xCmxH4MAypwDKtU5aMqNT273 8nKiNqaR1knoYhV44LnxphxWhTWRd/Vx0MnoAoPqV8gnNu2QvoO4fG/HI7yC9OwiYZ0N /3dA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=S0I8z5w+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r187si20518pfc.376.2021.11.10.07.30.05; Wed, 10 Nov 2021 07:30:22 -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=@nxp.com header.s=selector2 header.b=S0I8z5w+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232263AbhKJPaU (ORCPT + 99 others); Wed, 10 Nov 2021 10:30:20 -0500 Received: from mail-eopbgr60063.outbound.protection.outlook.com ([40.107.6.63]:29503 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231408AbhKJPaT (ORCPT ); Wed, 10 Nov 2021 10:30:19 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=asLgTVHkMoLI5g/zoN9lGqOeWx/E3bRwD3psrz15Y8OQ/OLthXj8ipoQD9MBfUhi91ODVdT229C22qYBwX6jZAHN0aiygcRisIsG+hCTVWWAv/Ug5+A7fSRR42bG8M4LcbrpZ2Y57GT/aptfXF5mf8EXy784C6kVK1Uk25EETDf2f8tJgppHUKQ7aGfUd4CmehiXdOo4ARl2rwHChOR5bskH6HXdftHhcpC5aDZXpjiw1mj7tpMm0VrolcRJCzpPm2ZCqKAtZ/8OGG8QnzR3aQgkGpzSQtu7fKqFlIGNhhS28bg4ZnK+xcuQg63WZruHxcDEuu7YmINzDHR70kYMvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x5eeSTCNSaDL0Yz8AHq65QUqZG92k6jwv73iNBtVjfI=; b=Qq1xex+R4JuaS6J9EDPX+N8aNthwSn26ElV+U3taD2OSB9V5BD0QPgDLBg1keH5HFqSa/DIcFhVbVGj9oAhtfNWxgYE4Cl4lWCmG+UWZbJV869QZCCSgjmn1QKBolUsqgsFcDLy3b/uICLJQtwR4jTA+pNgve22adVpUPyf5fMy8BT3JUWWOiAwNJU3usrE9IWjeJTd7zwhiWO6j16tmngtZCAmLY+F51axzApH8gV6KTCqREmyLdG68GRvoYBh5NSM7bNaRK61tX9gW+dVg/i3x5Zak4Y8gppud+mNY5t3rR4N0dWPdmRM7JZMKlCOuiX0ECA8X6ReiUIObfxPltw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x5eeSTCNSaDL0Yz8AHq65QUqZG92k6jwv73iNBtVjfI=; b=S0I8z5w+DoROnTP1Bn4jkbFgEOVPjurCfS/DMKrKoBklZDGtS+F+1KhmgXfQb9IGSFt13zfZQruIU5DSX53PdSRmgrY7cx7UiykEVCttnSLSD0wLQZIWyBIHF0IlnYKRy/T8/yAINV8icsIRnYw5Cme0WcwRU1UYvfVnn+stX6Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by VI1PR0401MB2653.eurprd04.prod.outlook.com (2603:10a6:800:57::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 15:27:29 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::85af:f8be:aa99:ba5f]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::85af:f8be:aa99:ba5f%3]) with mapi id 15.20.4669.016; Wed, 10 Nov 2021 15:27:29 +0000 Subject: Re: [PATCH] ASoC: SOF: build compression interface into snd_sof.ko To: Arnd Bergmann , Pierre-Louis Bossart , Liam Girdwood , Ranjani Sridharan , Kai Vehmanen 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: Daniel Baluta Message-ID: Date: Wed, 10 Nov 2021 17:27:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20211108111132.3800548-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ClientProxiedBy: AM0PR02CA0139.eurprd02.prod.outlook.com (2603:10a6:20b:28d::6) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 Received: from [IPv6:2a02:2f08:570c:ca00:8fb8:5033:9d1f:8d33] (2a02:2f08:570c:ca00:8fb8:5033:9d1f:8d33) by AM0PR02CA0139.eurprd02.prod.outlook.com (2603:10a6:20b:28d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 15:27:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 803df9a5-8b83-4977-a0b1-08d9a45e9bb4 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2653: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dZ3XxJA1MDBePYP0lg0Wb3fYtn+dsgJhRZNC/DQcAYnGKk0nGSWIOTdL7Hnx9VvA4pAR2HwGaJE0Z/nZPdxGgmQAFScDMbcC7dKd7bCNmYh8yXgOxJZTRLJQ7BW1VVL4w4bonz7r3xglXm1j+HdFjE2/LKJDd+6hkIKJEskxVet1de8CAPERP+zCyy5c/dwshR+dqrUsBceVLLXI2bwFwalv2u5FMzMQtFu02OejFZhwVTq0FQgq/HzzQk04dfIPgECTz4wRcuJaxZcRWM7XWaJyfv96i0vkrzza87cyZ18diLspRpZo+z5oh7qg7cJsaYdimw3FqyELF12VxaEAfQc60BLR4E0rdt1TGjvGVDRwfa3jl4Mom5+LnlYvnu8HYob1FbS4GJmSrfpS65hovKfJBeLQW5D2HkxyABN3bX6ZE706UixEYBuxm2IiTWGHhT7ZWu97oX/nuua5aQbxPF0iVjmS09erCsZIqSwT3VP7lUQuZj4xztpFqFqpqLecIJubqGBhptZZzzrXNDDhnjGwCgKYr+J8xGak5Ub7LLv8UvNnc9u1FUxR1foujCew6GYfZ0IypeLfwFCbcz7+ULHIi0cEJEcD6BI/iIU3AC3Ub7oLGlJcP+2cH/XuvXc5L3cM9URwE2FmfygNu2AGyeICMV8kJ6W0Tfi1RHTJfZQJIA/CrpYjPHh3Kn2kV+rVUm00IOPU39tUx8qBXb6KVQShnX3DcOGTYQZ3MigtcR4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5151.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(110136005)(186003)(54906003)(52116002)(31696002)(53546011)(4326008)(8676002)(5660300002)(2906002)(8936002)(2616005)(316002)(44832011)(66556008)(508600001)(86362001)(38100700002)(36756003)(7416002)(66476007)(66946007)(31686004)(6486002)(83380400001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SEdDbWQvUVRFRGtvV1VFUXJYSllLTFVtVXVZOFJ3c2NUbS9xTSt0QWRZRTIw?= =?utf-8?B?MXFDa09NRmkxeUt2eHZNaE1Fajd4NHZnSXVUbFNqTzIrd3hJVWtTa0lnT3JN?= =?utf-8?B?TTBSWi9IaEdZSVlVODVjVmF5TEZmOURhQzR2QUpOSk0vYXhaU1JNbHA0TTBV?= =?utf-8?B?eUlWVXVHVFU1OGt1Sk5wdmY1SklEbVZCSGVFd3JVKzNkMVVyeHl5eEdlODVp?= =?utf-8?B?T01TUGxXRmxhaUpTYlhseU5tZkRBV2o4WHA2UlVGN3VzMFFCRjhmWmIxWVo1?= =?utf-8?B?VGpNWXFLNVQzQTFWRTk2cFNBNHZialU5bmpyTC9xUkZsM0tuaHRVekM0M3Zz?= =?utf-8?B?SHZqY3BMMmR5b3BUaGZKT3UveU45c0dhRHkrZEhoS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ZPR3dLOVovMkpIR3NUVjA1Qkt2VFZrc0YyYk11bmFTRDJsMXZB?= =?utf-8?Q?gUH/gMN5YhyP4lcSz2SbGm41Zf2aIOKtTdTGY7Wp7A=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 803df9a5-8b83-4977-a0b1-08d9a45e9bb4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 15:27:29.8181 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P2MuA5xbO2ebOemjvgHkTSZ7iRwUhfFJs8kUQpkbXM67lmyl0vVwCtcMqTjGbcRMIno8LX1vGO+FUz+SPAhOvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2653 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/21 1:11 PM, 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 Indeed this is a bug and must be fixed. Thanks Arnd! Reviewed-by: Daniel Baluta > --- > 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