Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp997477pxm; Wed, 23 Feb 2022 15:32:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJySRe+qXWH1cvCO5emK1lTAqjCrp7QZCT0OPDGSYbkrAlhANg+9NhMQEw9h9inRUBCmrM08 X-Received: by 2002:a17:902:a98b:b0:14f:ae28:c660 with SMTP id bh11-20020a170902a98b00b0014fae28c660mr9515plb.94.1645659141409; Wed, 23 Feb 2022 15:32:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645659140; cv=pass; d=google.com; s=arc-20160816; b=VKJu3IgLz44F4Oa4JZHhyfhaw61idudWvkjkkdCTt6harSEw5mBOuX4K6XtE6KLJSw if4L2dbnlElo5l8Qqx/QGu7/zMJBW2zfL8V98OALqhMh8Kaz4xfIp7U5GyXFbrKEEG7Q +GFwAxbaNUrUs9RM1zVaKV08wIPtHqk3iKVBycyoBTuMqiC4jqSiXsAzkqXujFXTfRzL 27oi+OD1/FFwIp+9/4XSkXd/eqXxcM3uhkwmrAJIAPsHS/rTsuQyBFSHwKXMpc65x6s2 /kiUtzwkG39+gko019suWkmJ66p3hSG4q4ZDkqpKio5hi3VMPblN3ILvU6QaYcy5g6/5 rKDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=sF0PXa2b3dhAQvdd1dGdtfmjUethHpEz+amFuKxOReA=; b=nzensMflPCmg7Xz7ETPeNH4SJ/Xq2ZMPs1sxQn1iwG1+a/Y0QgthZhAn4R7NevUTml VIpEAR+OGJclLDmuGUUur7N1h2EUXpb/t8PZUPJ7QFNx/cXIdvun/VKzKuXcWT3/hRQr bwKxqisto+D1g/FNZuGTSTdK/+5QJuMxwlhN0mJZIi2vDCoTN4Q/mUoAyEWZfRYRnHIC g2/Eawqukak51jblGDX9XjNtptc82G1CTqPVooCXGHveYkvWZoNZInr/Ie2BW/K9cEwP KbxfqQdfzw1+5wsuEZZKjlfZiUMsavK6a1FmTySCWx8efrB2cfYd5RlsM6HcDgEmxFT9 jhZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hE5MxCvv; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha2-20020a17090af3c200b001bc924ee42bsi3657367pjb.76.2022.02.23.15.32.04; Wed, 23 Feb 2022 15:32:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hE5MxCvv; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242153AbiBWPjl (ORCPT + 99 others); Wed, 23 Feb 2022 10:39:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235281AbiBWPjg (ORCPT ); Wed, 23 Feb 2022 10:39:36 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2070.outbound.protection.outlook.com [40.107.22.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58766BBE34 for ; Wed, 23 Feb 2022 07:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DOb4Ol51GDHysKFQrLrcw89mF/4zW+PCK6eNShZ0eEiJVplQD6nmN73+nr9cu43tG57PGlszzqNSIZ5mNHGdTapehpgVLfpoSQjL+qVfatW9G+AjFq9Zs/7dJT3PTcma0lskY5gNZiSS1EB01LxIcTpwIKxu3V6FUX5HnZY7lshFsvg1WrjogVaOjwqvmfveCAZSJcSfqf6r5omcSTOUbgvfjKgutumjh1EUFAR71Rsck14HzZ7a7SLLs6A7BCHE/qbtmbpnqIDazS+ngVDGeFYY/UULdQ3mfqnjWTBgKw0yTbbnVun6kKi/JpbsNMz1LdRJoODUuntfe6yE+cPTzA== 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=sF0PXa2b3dhAQvdd1dGdtfmjUethHpEz+amFuKxOReA=; b=W30ObyjtKPbdfSCV2ZTnQgd7EyBLmJ1bBPp6oxUlM9QED9CHbGGrbHMh5kBVUwHPUiD8Yezmgx9MJmlCnDhGXatJ9bKn3uILUnSrrVQi7maVLg7cs+PKtsOg9S5VZHM0MjhIPFBw/2sJP90MBW6O6+XMnunTY5k8qCSiK2VebzS+J7WYo7Cmx9EFoon5jn3KCc8H4YXiAjHtdRlVW5swuwhhKremdodG3jhfw+bT8zjf5vVOmHdk9kASzh17qRpKhP2Z4UP7llNnGeRMWsoERxnfb3fMJUE3RjZBaTFajnV8p0EnlLStrs7kHgZJFdGYxN0GDE+fEj/rgz/xFLaNiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sF0PXa2b3dhAQvdd1dGdtfmjUethHpEz+amFuKxOReA=; b=hE5MxCvvFpf3tPkjogF4O5S3DGWuBSyECuV/PcSsRN2Qfy7/fe3ZDHDKR83usnVP5LPYjvQR6J/PGHpmLgWIAxAuUt/EHVGIcPQiiYOQUHkkoYZKsDWGGv1Xw2i001KG2Vw3wJt2qtGUv8Puxir3npv66bi2B3R+aBhuRGdUkb4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by DB7PR04MB5131.eurprd04.prod.outlook.com (2603:10a6:10:1c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Wed, 23 Feb 2022 15:39:04 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::5004:926e:e5b:38c7]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::5004:926e:e5b:38c7%5]) with mapi id 15.20.4951.018; Wed, 23 Feb 2022 15:39:04 +0000 From: Daniel Baluta To: broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kai.vehmanen@linux.intel.com, ranjani.sridharan@linux.intel.com, lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com, peter.ujfalusi@linux.intel.com, Daniel Baluta Subject: [PATCH] ASoC: SOF: pcm: Add compress_ops for SOF platform component driver Date: Wed, 23 Feb 2022 17:38:49 +0200 Message-Id: <20220223153849.84471-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR08CA0186.eurprd08.prod.outlook.com (2603:10a6:800:d2::16) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a1023fe-5ea5-477c-b04c-08d9f6e29f25 X-MS-TrafficTypeDiagnostic: DB7PR04MB5131:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DPIMQZjz+SiMa4XhMRqfZi4B4Fny6aFlb4HCvQfOZ74lbbB6CotrRvqyMJTajPCcYkDxKX+4dBHV3YtHou5ABYbK/3Bvkq0dg22dn+jygu578PcuLHJvMxPBUylk6o9AsCOvbEj9gqJ3K5G7iQgTxM7hkx3Bg8LuAUEGd3Q/Kikkj3vYNjT6vkuSfQkOCqovYbkzWXzz3wOhEAC3rcisqrvC417neXO5sFLTemQWZ0eFOe3ZqQXCLRP8a38IO/SS9Zhl+41Cfq4VBZ3QY7Ap2LAnYnIHLVrMe9MoWhP69V1+lzSJBWxNYfuMD7Da4474Sz7iJtflu2unjN/wvx3G7dZAS6Wufx1div7aubs47PVFm6jI71Qqv1aSWjLvDINefJt6kJYexqpnWDX/a3e/OfxKUEIRFQnAhd553s21ztXtnWZqwrgDtKTFMv4zp24llse/ITjHJhho0tlbVgy2+U8dr6DnEx3WD4uem7vF1wiaQUF0xhhR9kxc4s1+zBxad79LMHx51/J1FoVRuiDt65RgYg4W3p29fC8Q8Qh5EnE02BGS8iAx8xIOMw93BI8skvChgxmzQN4ob5Fi55jwvhmRrVvW8fbrohwcaTKmI76/qEJEPirL43+LzWyjrwEZUUjMpllFNc/zousM5SFv/w== 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:(13230001)(4636009)(366004)(5660300002)(6512007)(1076003)(8936002)(316002)(6506007)(86362001)(6916009)(2616005)(4326008)(66946007)(8676002)(66476007)(66556008)(186003)(52116002)(38100700002)(508600001)(6666004)(6486002)(83380400001)(44832011)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DQ6dwGQFxYFZ7oGEPSGy2OLKTLcV7NIwfXTldBa0t/jLxsiMfVWjI9LEkUJM?= =?us-ascii?Q?0PFaEBNQotPvtNTb7zSuWwkbdig9GBaTv1+/Y6cYB+qZwL79PYlAVE966bMz?= =?us-ascii?Q?q0XW8ack/smbkMpkFb4bdseWGJYPD3kw2PlZ+5S2XFrqQDbq/fHv44ZgXomU?= =?us-ascii?Q?vjpX9fh7ZCFWtaZG66DMbIStJ/ujY6SEgTBJ1VHQRlNYCr4fOnYc8NWqbLuu?= =?us-ascii?Q?bGdjdqVcxIUeEdA/mwkbiyQJKpfqldrlnG33jYEF/1v74Edm6uorkaeMVJP/?= =?us-ascii?Q?nB03Qj4k3wBdTcUQdAmNsxq2mgspl01tWKSJ9Sp2OiDM4RNpE+GPynk8Lx+S?= =?us-ascii?Q?hwf4IYbHatRE595beLVrOPMKTkS5WgcBFe0/PGSAJmgPxkL1klu9F2cU6mlD?= =?us-ascii?Q?xv+O56lw559RUF5SypEYlUfFe2cq5DnK3wLt7o0bl3jk5g91q9KWKsRqn2c1?= =?us-ascii?Q?DT6Xbnu24L+4pV/6NhmoxtFoEmQGlTpng8Imwua1vpgeB+aEYZVKH4dS/lR9?= =?us-ascii?Q?yxWmnMK4Uw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sbXwcvatukc4Q4owb5qA?= =?us-ascii?Q?vfNIO5Y7G+ycTf25lL2H9KRYaVh1RLWGUNsg6o05HxuU9uaHSK60MXcpqjN6?= =?us-ascii?Q?RbXdmCimxNPP92WJxxVGqqniJiYMDc0eJcEX/nurtD/IbdMqO9C+sv/gpcKJ?= =?us-ascii?Q?PjiJdKrUFnRxuceiPyFNK7cS5uYoKXSjqian3FnYt+X+AYI9hofZxoRC5GrI?= =?us-ascii?Q?bbtq6F0rf/btSnmbqSAhLW96y+2TFhdddF9x19fkWUUZ89o+m6Vu9hnPu6nf?= =?us-ascii?Q?yIITp+ZtfK+V8MXyinF7lmhHyj6tWjTeRvfGepQzws91zKS1?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a1023fe-5ea5-477c-b04c-08d9f6e29f25 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 15:39:04.5849 (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: /WWk1GgSu9J8gq1vzzstkutfchq3SjPgcsA1cIogRHbq+kJ8gVqKXyzfbjLxSNSMcVgIzR0HXnQZw9Mlrz5e8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5131 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Daniel Baluta Now that sof_compressed_ops initial implementation was merged we can enable it in SOF platform component driver. This partially reverts commit 8a720724589e ("ASoC: SOF: pcm: Remove non existent CONFIG_SND_SOC_SOF_COMPRESS reference") 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; + /* * DSP Architectures. */ -- 2.27.0