From patchwork Tue Jan 18 21:27:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 532875 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED870C433EF for ; Tue, 18 Jan 2022 21:29:32 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6D1EC315A; Tue, 18 Jan 2022 22:28:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6D1EC315A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1642541370; bh=QSCR0rUcbKvPmLDnrcAnOi6H3tY8pnW/bMENqKtK0Jo=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Blq4Hc3H2CPw4CSh0bdTlYiQesfhbnN7ZN30kidRI2RAnTxPnQ48kdtA/QLJVOnf3 M9RHfUEIQa57lkJRfeBTi+qbImDSAx5Cy2fJQAozXpVyti1blydFTPqgs1kTx9jLNw 7G4ntcxWF0g4QB++AEo4dD/dFbEYJuqRRKiPv/CY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 09BABF80240; Tue, 18 Jan 2022 22:28:40 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4210EF80240; Tue, 18 Jan 2022 22:28:38 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2052.outbound.protection.outlook.com [40.107.20.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E66A5F800D8; Tue, 18 Jan 2022 22:28:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E66A5F800D8 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="gQjlj+aO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f53bmPVyiJ/dcUBX3JNmhCEV16S4OoFA5+dgNyS0AabedhZe4DVsMZxYF4k5ex0YvgzAu93gIdKKtVxq9y/S5pgowLTdEcQ9DL9IQeZptP+I91H+GSrhozs8OHo+VBIcE3YsFYZg/nXkiguLurv+YUcUY0qkogVrvBppd0OxWD5G+n8/YI78kXiW5CFrWshbcOir7YONtxiqxBvU17lrMyz0dMv+weeIPS7RQZPhlyfNk8XCHICN9kFOZsGc0Ur+AxWUO8qBBh6aXh72LwEbSuvw5b54QQYHLYgReRVg6hNsa3rKR9HV0KDZRzryk4l+tLr7xZANBOhxdCYjavm67w== 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=4cDV/bE1FRbuUuIpmfOXhLyQ0Kvp7jSwUlO4d9L9Hhw=; b=brdNTmmXkh8eyq4m8UMX3X1JyO3WLeF997ytcaEyi7aN8EHM3UAONq0phSMgzp9j3bu+Ek2zYczLKRqpErzQJY54ZgYaScV2fhq2XxGKRm7PorVgVvdu+VbKjCgd+7nm1ntKA3WEdoC+np9w2ireN9B8/0qmN3lMUMdymeYJXYolcEFb2N+9SFrAACKPiNz4sQ+wSW22SHfZXeZaBNhRtdqgGC52APdXwtPzoiuPRfewILcatw1/bB+R2AuXmNitoaHB9+9ZJsKd/QiYNTeZM6LCJLnv2Jk3lLaCo7JG0Uc/D+EDrMakoEiH7uCKUGSJa3YLLs0oS1yzt8+zbh2Lgw== 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=4cDV/bE1FRbuUuIpmfOXhLyQ0Kvp7jSwUlO4d9L9Hhw=; b=gQjlj+aOHtPUVd5QfFIFLyfomcdK0zJ7Ohci3oYN7AsfI2nI38SDIIcV0m4bhQcBaafViOrNgA23P54nkejc9RCx3pgyLewEAaowm0LpdCBmKulY/kowkI9uHD+cNlqJgOZJUhjPVuFagZHeTgx/MTAFTZepGiFrnx9WmI1WWeI= 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 PAXPR04MB8207.eurprd04.prod.outlook.com (2603:10a6:102:1cd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Tue, 18 Jan 2022 21:28:27 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::3de6:806c:e71:2a2f]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::3de6:806c:e71:2a2f%5]) with mapi id 15.20.4888.014; Tue, 18 Jan 2022 21:28:27 +0000 From: Daniel Baluta To: pierre-louis.bossart@linux.intel.com, lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH v2 0/2] SOF: Add compress support implementation Date: Tue, 18 Jan 2022 23:27:30 +0200 Message-Id: <20220118212732.281657-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: AM3PR03CA0063.eurprd03.prod.outlook.com (2603:10a6:207:5::21) 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: fb0d8b2b-6635-4acb-1307-08d9dac97738 X-MS-TrafficTypeDiagnostic: PAXPR04MB8207:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SJFlP5LgiJ0SYKq3zRw4eYkfDy61tilIrThewHMDTM9uduZuQuv9g+NlEMxOUPjZ0i54q11+R7oMvTEDyYe8mubZMkiKD4jSgt1+nZ8OBEVa6JIjk3rQCtQ+Xh+U/9nMrKB1sYz5fNsmVmn7sHTnXBUH9G307sRoqd6APQ6V2Ds+A212CrWXRc9dgo5swWI/kGyE+ENDIstrTPXmz1PTZa7eVht/F1ROeFfv32SrmHK9UPcA7QoGjAkM5HAftYeDV5SRF5EvbxJdcG4E1SfRBSWfwlZQ5Dre+r5IEuUE/FKT0D1n6QYtA5nafN4Yf13gmlLCf0HybZ6d2gfc5cPXRmAevlH4OD/6ip61nEyV6f0pO6fWf7zQTtgOoIS2s//BW2j8t/u+WXZ03KNLibuc2bqKhTkoVjnb9k6H8gT00oK/A1q0l4q5aSvMr99sguCazrDTr1+no1b/f6k2jEOm5xljB0QSWSgK5knyY4IR2erx+zCFAbMY5yL42cUhjYRl9s/7iGmvFDaJkTYG0VEgFC+zt6vhKMUB665MArdy2QKUszwB3Fp4aoGjdLoKy4w694SlvJjlM9h/UZipcZLUg3pzap0gU2yrjIizlbxAuz1Rr1I2i6nXbssjwSrKGRJy53lbwHc2mtUP+9KCg0SAzZu0QpswXwFWgT/YQK9tbNZTPC/Vl9nfJUK33nn8gpA3H8dwGaYj5M7spqCj5e8zcNJxZDMvwWN8q6Y7EWhVzwk= 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)(6666004)(52116002)(38100700002)(5660300002)(86362001)(8936002)(508600001)(6506007)(66946007)(1076003)(2616005)(6512007)(66476007)(316002)(6486002)(186003)(44832011)(66556008)(2906002)(4326008)(83380400001)(8676002)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bGL5H+Zb8xCuMORZ5UG3VovfrFIT?= =?utf-8?q?qW9SF5hDgzC16RNufY+bueYV0pvKRls+/BG5VUWzddJwMW9prBO065POFrUmvgucs?= =?utf-8?q?17dTlkDMk/vuq2K79N/pfogucIDVOBH/Pj73GdE1k94lhTmpZ/skWAk2DPRWAgKQh?= =?utf-8?q?b9rGUCCgiCIV5vmNvzB2Hu1PZGaIVX/CBR41GXlVThG+fnJ6DGoADlij8KGFJ58Uh?= =?utf-8?q?tcM6mZMX6hWIASjQDi/k65YgicX8+AlwfZz0+HE3fnPm4xUjaQyjOqEcnn1+dCcIP?= =?utf-8?q?vhrjds5Iach98lCeFhHtTmw8BE1zKn0Oy1qPKY0S/M83z8Iu8y4WeCZ/3P91Ybx6o?= =?utf-8?q?q0Hr6lsUtOu7UelFzVqLi75ttcb10eHLuO0ngYyPkZBMlz4P5JExMhcAy23IwQuXv?= =?utf-8?q?JOXDultVXpuaRB7h8PM/qioOh8UwrO/exjpw+xJ0Rw7qyEQGA+s6wZ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w9tF8gfmExdbRmrfOg9h?= =?utf-8?q?9GzuGMeUeSgm0/Jw/Lqc5dkAHUxGkDp151tJt8MKQOVeFQ+g5dsrhZQGuVJyGg6my?= =?utf-8?q?FShnhN6D0nKfzcsfndlTTGJVoaeRnWt8TyDlDZbFRG5jmRn7umb3WqYeDH9J+7CZG?= =?utf-8?q?CslULgLODbs5Rcn/dJ74rxc3NcfzRGkoauCN4dbIginU3ykpv60mWJlERgbHxJUaV?= =?utf-8?q?x4VtxiuVN4wKZE47sle93iHGl5K3/7IdXPf/3GVHkgRXvE1VLLo1HSL1FmRocv2Eb?= =?utf-8?q?5ldmPw8empGWDbTjUYm9HrAhuYeu+gEQRDcEOJQshbQRm9AmdiTyCA=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb0d8b2b-6635-4acb-1307-08d9dac97738 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2022 21:28:27.5209 (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: oTZTAd2SyGUij5/Tc/FbQVsh3sInwD9mMBcdcUOB4jjYfV9LZxEwxiiO7ZNJx61h0L9hmPkFKuxyM/ToEmk3hQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8207 Cc: alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, cezary.rojewski@intel.com, linux-kernel@vger.kernel.org, ranjani.sridharan@linux.intel.com, paul.olaru@nxp.com, daniel.baluta@nxp.com, sound-open-firmware@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Daniel Baluta This patch series adds compress operations support. This is tested with SOF (codec_adapter component enabled) and i.MX8/8X/8M boards. Changes since v1: (https://lore.kernel.org/lkml/20220113161341.371345-1-daniel.baluta@oss.nxp.com/T/) - Addressed review from Cezary and Pierre - fixed layout of declaration blocks to be more consistent - avoid using rtd and runtime simultaneously inside a function (always used rtd and crtd) - check return code for create_page_table - completely remove sof_compr_stream and use snd_compr_tstmap instead to keep compress stream related info.ยท - add get_caps and get_codec_caps implementations (in patch 2) Daniel Baluta (1): ASoC: SOF: compr: Add compress ops implementation Paul Olaru (1): ASoC: SOF: compress: Implement get_caps and get_codec_caps sound/soc/sof/compress.c | 347 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 345 insertions(+), 2 deletions(-)