X-Received: by 2002:a17:90b:4c0d:b0:1b8:cc2e:93f2 with SMTP id na13-20020a17090b4c0d00b001b8cc2e93f2mr11913739pjb.68.1645665599478; Wed, 23 Feb 2022 17:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645665599; cv=none; d=google.com; s=arc-20160816; b=Rp+eWNc06MdjQcnih1Y6Xna5EOF46JQpJbfHF25eKe6SW7qcx/nQFTxRg/4qS0EQA/ zijtWWlrwvH4CEG7IDE0wRqELv2HsHY6TmMjuaVtzLYygfOuYjXs7lQGGQwtcx7xbSRs zBQvdYSAfK5AZQqv3+7LsH4eib+d4EuvBuoJOxXNjfGTkN6hoQU71BHrFf+YU9Ou1Ovj WzMm6a6hONjRkYILD4GTiHL/PKVaL09vXYE+OJKpjVMSWUIbBEn8c3PJwB2IJPOWxbfU L1FT06tO+vslZ4qYd98lCHhe1Prp68R4wnQ2whKHEX+Ud2zZwoOGwmk/CrAU81R0ojpF 39zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=D9pCY195Yb+2v8N/a6KI4TSsHzVx6ddfufD+lRdRK0k=; b=ohvt+/3/9TZTXkVIOlDcqZYSkH1AwutbZzubOGDeF4loHFjL2PIK4eDg8SMPZfu8II wyabchs4A9m/HpuzjF3AlLJKiA4vfco55HylY1xZsgQ3EB0MNLp/LNfBP7Cgi3YqvHHk tkR/Td8yP5hDQ2p6f3/Xc61nh23dBDxoYERj+1T2Qa86k2oVzqJXJ01/szSVEFE46Etj Av3s/Bs+82/LQmQ8DZ2kYjlWFDdaN9pwuBae/QsnbUujwg+F+HHfMgi9a18ji+SO67HY xGKdTOubtH3eCBNA/Oeai51KjHPvQWT5nlEthLuVpvqE5DyqhhO4WTBKQ0j30zdZbA9C Vo6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iavcHd4m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r24si1203891pgm.83.2022.02.23.17.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:19:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iavcHd4m; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE326189AA0; Wed, 23 Feb 2022 17:04:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242691AbiBWQSE (ORCPT + 99 others); Wed, 23 Feb 2022 11:18:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236228AbiBWQSD (ORCPT ); Wed, 23 Feb 2022 11:18:03 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679D13B2A7 for ; Wed, 23 Feb 2022 08:17:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645633056; x=1677169056; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=kdFETTBddN7EdBnhGYgG52WV2uKpzlnZnEFWwu9QLo0=; b=iavcHd4mHZoGZtmtN4DJ+o7MlpDrFBt0nVZdHriz3o2EgO/vNxnyZl+l n/moscgjFpLMdph9dlD7k7hb5aGvImNxNXOQsp9BuMj/DBKmlxd37zOoc XbywTZmseH5+85anjnmw4u/vGBXdnotgJCbr88YgdRTAIOkRmRiq2lunQ p+5DRSXP9LnVSjFOlC2YH5xWHhoaDXasdpig8DPp9YpX4+4ZGRxTeo8M0 361Jb+3tsZkBfGjJA6P+DOdBPvMYG2PtJeF1Pwp/b47BFX3SPcoTW4rYl EC396yi3oCU841W37UboGA3qcJwT+yf1lmams9x1GEXzeFT21HejRHgVF Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="251740390" X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="251740390" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 08:10:00 -0800 X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="548312807" Received: from vermaama-mobl.ger.corp.intel.com (HELO [10.252.44.244]) ([10.252.44.244]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 08:09:57 -0800 Message-ID: <16567e15-2ea5-60cc-74bd-97475b793a57@linux.intel.com> Date: Wed, 23 Feb 2022 18:10:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] ASoC: SOF: pcm: Add compress_ops for SOF platform component driver Content-Language: en-US To: Daniel Baluta , broonie@kernel.org Cc: Daniel Baluta , alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com References: <20220223153849.84471-1-daniel.baluta@oss.nxp.com> From: =?UTF-8?Q?P=c3=a9ter_Ujfalusi?= In-Reply-To: <20220223153849.84471-1-daniel.baluta@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/02/2022 17:38, Daniel Baluta wrote: > From: Daniel Baluta > > Now that sof_compressed_ops initial implementation was merged > we can enable it in SOF platform component driver. and fixes the following sparse error: sound/soc/sof/compress.c:310:25: error: symbol 'sof_compressed_ops' was not declared. Should it be static? > This partially reverts commit > 8a720724589e ("ASoC: SOF: pcm: Remove non existent CONFIG_SND_SOC_SOF_COMPRESS reference") Back at that time there were _no_ sof_compressed_ops in the tree... > Reported-by: Peter Ujfalusi > Signed-off-by: Daniel Baluta > --- > sound/soc/sof/pcm.c | 4 ++++ > sound/soc/sof/sof-priv.h | 5 +++++ > 2 files changed, 9 insertions(+) > > diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c > index 137f8ed71677..a312ed855f1a 100644 > --- a/sound/soc/sof/pcm.c > +++ b/sound/soc/sof/pcm.c > @@ -922,6 +922,10 @@ void snd_sof_new_platform_drv(struct snd_sof_dev *sdev) > pd->pointer = sof_pcm_pointer; > pd->ack = sof_pcm_ack; > > +#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMPRESS) > + pd->compress_ops = &sof_compressed_ops; > +#endif > + > pd->pcm_construct = sof_pcm_new; > pd->ignore_machine = drv_name; > pd->be_hw_params_fixup = sof_pcm_dai_link_fixup; > diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h > index 2c8e556cd5cc..886787a9997f 100644 > --- a/sound/soc/sof/sof-priv.h > +++ b/sound/soc/sof/sof-priv.h > @@ -556,6 +556,11 @@ int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev, > enum snd_sof_fw_blk_type blk_type, u32 offset, size_t size, > const char *name, enum sof_debugfs_access_type access_type); > > +/* > + * Platform specific ops. > + */ > +extern struct snd_compress_ops sof_compressed_ops; This is not really platform ops? > + > /* > * DSP Architectures. > */ -- Péter