From patchwork Tue Jul 12 14:15:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 12915029 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 77C6DC43334 for ; Tue, 12 Jul 2022 14:17:46 +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 5CD9316A4; Tue, 12 Jul 2022 16:16:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5CD9316A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1657635464; bh=8HEau/2c4y1liNQFM50owqv5pyK1RYdv8W3hGQ46LGs=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=req3UeFacFlnRDAHrRgORt9uc3kiG6rNdiqk/B6BH1JzejB4MYoQdxxzJTOduaJ4Y 4Se8ScfV+71bI3V3nocOhr6KRNx79Z3JNoDdePZmAzIuEEU219hgnpEPBVTgztF7r/ dkCTFUkpMAeGdJhjPxeYObcnKW7aLAukSZAhz7p0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3EF09F80549; Tue, 12 Jul 2022 16:16:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ADE2DF802DF; Tue, 12 Jul 2022 16:16:18 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2044.outbound.protection.outlook.com [40.107.104.44]) (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 33480F800BD for ; Tue, 12 Jul 2022 16:16:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 33480F800BD Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="S3DtQBsS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OHVj8TXcsR4XbGhcStWsdVicFheXhVfftFF+5GYXpia93RJbHTCoo/mY3SZArcb5kIrWGViMGFsVG6ocbesfavmHF50EhZVbei9W9WLU1E5pZjQ/uWYzqo1K3c/jBp02Ue8HsRd3GGe3zzhB89I9IKfwsoCo3QJ0FPNXlZqnR0R7DLGO3fSFkpRuYrS3HCyZg0I/nzQSIZ77MakyjSHAFahprSwdDgRXOORpMoi3j0Y32MvnMMr8neezjOFJ9c30YPWe5jxqMlrBgnPwA7Md1f/W6NjzUj58L2f7t2fa2g5bI44GNcBm91dS91ffz9JdnOcI3wEignmqzzlmaOXHUg== 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=aDmfWaqhvgQANkRWW3TzzefsrcfyMdiQ0DBxXgXmTrc=; b=YFnO81GLr+pRIOuyjJmcyENS/KziRX+8YEyL6EZqL/pAUqkg9Ln9Fr7FD8yMF8o1I+JRi0xqGj3wTxK7FHXuv2rtlhvlfpTG3S9puy/CKB3IOpmyEu5tsFsRUom5iqHzpg1vJu4u2Zes4D+rnqE0ranOrA9rGemex+eeL1N7c1IaKGJmdHvs6jpdv/yJu/v1dBHPl1kePWHRQIX0DeL+Sd+DHbfdFYzT9jqDSVawsHDaMFJN9dWcFD6AHGH++oEpabOfmG2cAT70/59bhNLph6URj7qvBLfwk2b/91beTLydkn+eBewUPicMi/PPDNCNtgjMmjQgENXDncpa9OYnOg== 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=aDmfWaqhvgQANkRWW3TzzefsrcfyMdiQ0DBxXgXmTrc=; b=S3DtQBsS9ha63k2ThWu7t6UFgCcyhd2U0e/GIinG5CZbhwql+Dk+OqwlPxpkRvRFmKcw4IfzmzvERcB+u85lp0WMqTgjKQjpxBDtmfJUDEFSxU0/vxjJjE4MgYmRKKO/UpVz+I67ntaDsYtfUaTw0Rxgt5FHt7uXkfuX+tCjGZI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM0PR04MB5140.eurprd04.prod.outlook.com (2603:10a6:208:ca::21) by PA4PR04MB7885.eurprd04.prod.outlook.com (2603:10a6:102:ce::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.26; Tue, 12 Jul 2022 14:16:06 +0000 Received: from AM0PR04MB5140.eurprd04.prod.outlook.com ([fe80::15ba:4274:2df4:8928]) by AM0PR04MB5140.eurprd04.prod.outlook.com ([fe80::15ba:4274:2df4:8928%5]) with mapi id 15.20.5417.026; Tue, 12 Jul 2022 14:16:06 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 0/4] Extend ipc stream parameters sent to DSP Date: Tue, 12 Jul 2022 17:15:27 +0300 Message-Id: <20220712141531.14599-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: AM3PR07CA0141.eurprd07.prod.outlook.com (2603:10a6:207:8::27) To AM0PR04MB5140.eurprd04.prod.outlook.com (2603:10a6:208:ca::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5d39462-3f28-483f-af07-08da64110f31 X-MS-TrafficTypeDiagnostic: PA4PR04MB7885:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eAqP0A7cdWoAZNuFsLojGZfFCFItnocfkv6mKeGeRgnJSA7BKovLMZDk0/XUPR2BkIk6G9I5H3afO9YFOXw0jQxdnL0ge+ZahKUTV9+UlCQeTWWUmDupn+cfpIWFSYyk4xtVodb+VE//sLIsQJBQKVoc3tUdZUFEhIufrc9G5jit9bWJRvdqq7Q9Z2cNcDXvgbtWwVCIbbkRx/qDJeLAfxL7IgYxw99oIub9lLX4IR6uhPRvePwOPt+DkJVHmNki/LfRfZZs9fLiGFDD0uwEN4WRkIA6y2blGcuVjWDo6SVmcvOu25ND6XgBN4sMHx1xo/ojrlNyyCPPMze/kg5eBh33gqwpEWn40rsSPDeO9HxVbBJ+XC/5t88LEHWVE0m6Sza5ZDwYAOwqH0RfUNvkt5kSXtZtwoc+8feaMAOZ5HbXWoAgwBAHOi/e1a8m3sRXvDRkCKRW0TK0NmAt6Kfkrd6XReJ9rGdABluGC8vIcC7LIpHRbU0+CVmEiI+TbrOgFAp9i8mgx6CwUEFIeb60NGU3LANf8vmoiEqFeqqELR/4nSMxOu9EBmMoGhAJ6YBkEev5RMzIThwrhrkOik9oBq+TdmpQ6ZcDlrahdUZZb2jB84D4jIRaVcfbv8hSRlarXrtQqmZy/i4t1D/BKAeqUqJvUkcBJEs+lgQyEZx7KY/zJOQ+/PT4A1lkfsGQgP+UeQskNMGo0uS4K2SBQZEcrs2QAPdeeSmFS25o3ByyxrQCmyFImzsnm0ghz0Tb02cmWLcpZuPBbgs4ynX8CGN9ey3NLwV9tiMGMjMUKmHB0DjeWhzAa6Mm9Mnh4euLG81793+KLvlD5t50tZScz2J8ng== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR04MB5140.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(136003)(396003)(39860400002)(346002)(366004)(316002)(38100700002)(478600001)(6486002)(8676002)(38350700002)(2616005)(66946007)(4326008)(186003)(66556008)(66476007)(1076003)(26005)(6666004)(86362001)(6506007)(44832011)(41300700001)(5660300002)(8936002)(6512007)(52116002)(4744005)(83380400001)(2906002)(16251815004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: elAFcDlqHRTsEC6sqMesBCAab/GYCbkGpBvgfO6mBB4CTV610VLOj7KEBUBDzPxOr2C28Ynb3QkZj3fNV8qCwmXL/OJWhX+ol202LB8xNrefen67V55X5nfLAnQ0n5K8VSO28uOQNIbjljseufD6/JI3a28jQ68uJnhphZgj1s9VQVnsPWn4rE2cooJmWNsOyriRIlK3KlTnh6hw0ao+jijQHISbF1su7NoQ4ZoAYZxYBKuv365a4ujKWt/wQxI9XzhDS9ewOC7D4cdibFKPxWYx9thj8GeUnNQINkdTIQEvDV/CKdzJ0W4mm/WtAP1+o7lMxRcii5pKhS/1LTbZwnm9iJoYJDzSsRTg06xm3jRkbbJTy9kUc8g62DwpNc8P7JI81CoOxv8lQ35sbv557GPqkkIHu5Sj5V0p1t57OzjBMSJwHZGCNzKeQnlZm6DFK+1hTkWogLRfR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lc/d8fug+r4lX655cr2e8eZ91gTl5I8iDy0ic6OnRgS7I1IiDvuGbGP7YNH1xBJSO1N3EFSi X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5d39462-3f28-483f-af07-08da64110f31 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5140.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 14:16:06.1450 (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: qqudAM261wsGvJgFHLM99aexKZggpF6edKTZH2lbdv2orc7kv6dsAs4jO31L0WXHkyuyg4YtfF5qQ70gfxLoJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7885 Cc: kai.vehmanen@linux.intel.com, yung-chuan.liao@linux.intel.com, daniel.baluta@nxp.com, ranjani.sridharan@linux.intel.com, lgirdwood@gmail.com, linux-imx@nxp.com, yc.hung@mediatek.com, peter.ujfalusi@linux.intel.com, linux-kernel@vger.kernel.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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need a way to send extra parameters to DSP firmware. In order to do this, we introduce ext_data array at the end of ipc_stream_params. With this new addition we can send compress parameters. This requires SOF ABI bump. Daniel Baluta (4): ASoC: SOF: compress: Dynamically allocate pcm params struct ASoC: SOF: Copy compress parameters into extended data ASoC: SOF: compress: Prevent current kernel running with older FW uapi: sof: abi: Bump SOF ABI for ext_data_length include/sound/sof/stream.h | 6 ++- include/uapi/sound/sof/abi.h | 2 +- sound/soc/sof/compress.c | 73 ++++++++++++++++++++++++------------ 3 files changed, 54 insertions(+), 27 deletions(-)