Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4554226rwb; Wed, 17 Aug 2022 01:53:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR48VN4eL0k8N9bBj+/ZRedyz7PUIMCa0AguMSqSDVCJhSrpBWSplWj8qhmeogy4lRdFRNb+ X-Received: by 2002:a17:907:a0c7:b0:734:e049:1af6 with SMTP id hw7-20020a170907a0c700b00734e0491af6mr14088300ejc.439.1660726385395; Wed, 17 Aug 2022 01:53:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660726385; cv=pass; d=google.com; s=arc-20160816; b=YkIFZhGSyFqKZMgU0DCoBYPIhC+1qjFN6dJEw+Eq2E07Y2SBCa9BjGJ+LyCtQdnY9u Z8ZkJAiWHauKAVOqEEUPvu8CMl8h+ynQHAvAKF0ZCLf4MmaWTBvKb8992QNnOBkdzmxs GQ8L1vxm9grZNjgDVwpIbpwSpZ3aPgxzq3/LeMYGQf7zB+CCvEVDaSad3AbK7P4HqLCV jnYvVN9u2BBYxhjIhwDfWn8xHnDKC7/Lc/exFICb7lQks0MsHqt/klnW5DHipisvBHGX jb8Ps/q3GsZMvqhHCq/pi+8P+ExEGC7E99HayyRmVgANrpJS+nd7M0bg+YC1phGioLMc 4G6g== 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=NG39sixHT/VtiPIj09X5GfsAWVD+xnGUiYFdDkV16M0=; b=Iu8PY6cHlSpPd1IgJP3j/c+iMTEXxkqU08/ljQMPwcX9xYrJqS+5zEUzSI/l3curqo NMn4SUGq2R+LbJDz2TBbTcxD42kWNxUJbz3flyGu4nF3ra+gO58t7xX9+qGen5CH/yot A/y3p2FVceGugUr9r/IE5I68XS5QneXJ0d119Dr8TZSk9MMIY9fLOyv0OqaQ22l8MUo4 XkHjm3QzKFg3rxV8Vf+ZNsULPlyTNLRnRpcYFgSQFEMQiJB7bcaOjN5jIq4UCuSzBtxY 1jXUkWbEmlyKyaOF5qB++xKOPiuaQs5odSURqaNYqdItyPFmD2PfTf/1qMbz/76+7Twy wKGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=YlDtK6MB; 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 f6-20020a056402194600b004408bac1e00si10292256edz.103.2022.08.17.01.52.39; Wed, 17 Aug 2022 01:53:05 -0700 (PDT) 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=YlDtK6MB; 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 S230500AbiHQIF4 (ORCPT + 99 others); Wed, 17 Aug 2022 04:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbiHQIFz (ORCPT ); Wed, 17 Aug 2022 04:05:55 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60060.outbound.protection.outlook.com [40.107.6.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3853D3D5A4 for ; Wed, 17 Aug 2022 01:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R7VEKbNahl2MVgJk6VTrhoVMZCXfdUJfF+gqR+Y9yBHWPVjdsnGxNydXR5FgqDR1CDPbooalvNKGkzxDzYSG08APdLCOjvU8PRQmh1mxRXfPLvXRUiKceBFJVeFVm7X7LLQV3r52WRPm3lUr+pA15zLMiE0dUnpV5Lyocp+IXNVufMwk2YJCjKEf7bUEZ7W8DCRdNb4j9JO6Uo0la3eMvY/UhnyIGDvMdZ4A2++bLjPUFetKNT9lFo5FbekSzb3QV6a9pGrA8/6r/gx9cKMxJSrXGQqUBmFdJ1gJU2QD6Azw1bnLGzSAJhKAvlT1RJYDpdc7npSDejTanlPyM0DWAA== 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=NG39sixHT/VtiPIj09X5GfsAWVD+xnGUiYFdDkV16M0=; b=ZoPtYcLofnH4m4q/XxEz666KMKChYhkPACowg28x52s7BDl/akCwagyVGp3VQxl1wmiJXqJzc86YT4bnW9E7ndlDF/BluasgbtDM26XZ/b/32frXGcFkWjujfbW8ltR/JkwA+IqpsRooQDFb0DriNcgSdDFA2lVsWiTB3fTuzMIKR8L3KD8NLiKxYG48XRpi4YzQttFPcxVEFNc0sushzMo42lpdXe8sNGamj4rChPYCJkJYrgZXIEAsRh1nZTZ9owpGCJdUcWHLoP1i2IMAQP3zA5oa+pUbe0p5HZ2+ouctUPq8FGeABRejzeDJc0YFAKeBAKenfK+AMl2EbhuTug== 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=NG39sixHT/VtiPIj09X5GfsAWVD+xnGUiYFdDkV16M0=; b=YlDtK6MB5GVFWI8v8t4oRrsFMLsqNcGbT4DWkWcIy102xC2DfisxcNENGj5vWiD2Twxvqwk9spgXSdP+D1fDxPS2UGC4kazqouKWaqYbc/WpDr7ACRGZ9zSgYWdJIJPahTYmveC1EDHYxMDC/YRVg45SJtD0t75WxxTAZBlt+3A= 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 AM9PR04MB7617.eurprd04.prod.outlook.com (2603:10a6:20b:286::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Wed, 17 Aug 2022 08:05:51 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::68e3:e10a:8232:10e5]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::68e3:e10a:8232:10e5%5]) with mapi id 15.20.5525.019; Wed, 17 Aug 2022 08:05:51 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com, daniel.baluta@gmail.com, laurentiu.mihalcea@nxp.com, Daniel Baluta Subject: [PATCH 0/4] Enable timestamp support for SOF compress driver Date: Wed, 17 Aug 2022 11:05:25 +0300 Message-Id: <20220817080529.10864-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: FR0P281CA0145.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:96::18) 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: a45bf736-7bbe-49c2-1133-08da80274cc6 X-MS-TrafficTypeDiagnostic: AM9PR04MB7617: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: ZDL0u5TmD197LAvUjt68kEI127ZFuJeLDcKpkwPIwKuWZpbbILOfEWiG2fqsbphh+bW8JnvycyMc1AIaoWELTeoNao8lLy5PTAext+TvX+6+kQ/FgBiGaeIKBmgO80aKp/CRkCVNN5Wnx5uV/e7fgPsxoteKdv8GScTaSYpsP9bWKu+/iDOaKgdNb3BmZoGvsuxIdi/HoIRqdbsZCpwoPYEl53HN9IbTSbO0kGWrcpNxwecmRFw78HTJR3cifVPVW0O0SvYvw/6DhvVif7hBvHDFK92+h3fD0zBQkamzbiX95nrc1SX1CDe///MVC+lpv1VmdDBL4rW4VP8GE8GpdPHMUheNrmEoT1HPvPMYZ1LX2JqdAEb2AhO0A5DW2jgQKgqba4gcVX0sh8AWsqGaXqZEMmZydDvW41abBE2/uziLtdPYVEGQeu9Ty30wtcI5RPaOmlHhQ6B7Xi//LQ1pn6D5GsXhHQX2SSf3Ovjl7h9HPhXX5Q7SQ1xj1ZxTmHSu4Z0sPgJyk1lxJXDYO+uBtZ8g6KNNCGYfWO6B5MG4I+yMjDDq0PFVZz7ir6BfceWP4rYyr2COHFEv6soRcWM5aX6PBPmwE9jiigDlVejMk20u0901cvBB1f3c5tq7Tm4QI0GgwS0fmvTaoLqgZgBR2FEWvV022xrExvQANlDWAxaaOtWPA20/MZF+VnJ37r6Ci8lSr1tq/CFZu+yTp7P5L4ynbC1jEatx79EOCG7Tk5m3IvtM5VU6sZ9eAh8o+RzOHv2+G/Alo2QSbcp4wSvxPydg/YMZy4OniQb93D1Tj0Q= 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:(13230016)(4636009)(39860400002)(136003)(346002)(396003)(376002)(366004)(8676002)(316002)(4326008)(66476007)(4744005)(66556008)(66946007)(2906002)(44832011)(7416002)(8936002)(38100700002)(5660300002)(38350700002)(86362001)(186003)(41300700001)(6486002)(6506007)(52116002)(6666004)(26005)(6512007)(1076003)(83380400001)(478600001)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?aJQqsNJY54ieNRUUUzTDuBXeS99y7rCjZk5BhFdQKGNtpIwy1Ohl0tTXmfuW?= =?us-ascii?Q?OZz52di9CgMSpyKhj/TF0T9NaM7RoHayV0svMm6WXWxQD5AahYP8BB6aCFF0?= =?us-ascii?Q?TbrcHXq2ZcSdUKmTI3A+aYEBexIR6H8zsPfTzxBlOBL7EUDX6a1lK/8eU0ZE?= =?us-ascii?Q?9+A8Q0BXozqUT2o2KcjiRODan9FKerIzRY8WT+XsCm6b+MXdANHWC3Jt4jFQ?= =?us-ascii?Q?NKin7CUa8PnUG7xQpxz23r3YiHA0UA4at/qrNS1GgiC6quPQ7nE8d4XaxquS?= =?us-ascii?Q?E+ICTSVMVljrxo+otvqGKlm4qNKNanNPHIzAp3vQ3xxnnwk53LJ1JjjvMfO7?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HorG4DsCMjnHyoqo2HEUYB4?= =?us-ascii?Q?J/jsSwbfhWQoerpGwrzISLv4XKB0OV3vb20oD+aNNkC64SWZtjU6HEstwJ2Q?= =?us-ascii?Q?8kowyNpnarvy3OZ3dGBQ5kSJ3y7Rv7sCHbVmWcuFaG2tLJoBvQE9bSzOQNIf?= =?us-ascii?Q?QT8OHVrQrZYtR2bEY6vBFUSqypKfSAuArVqsPUuFfEQCphWpcoyIXXrg0rk/?= =?us-ascii?Q?cau8XxE9NFqN8IMO2YFWGWhty/WQs+ZjqznJ2WRpoUR/OG+e4X7DE4yVH99x?= =?us-ascii?Q?T9tvRp7/bF0eC7mSrtn4wpRvM9XA+1aZbU8lnFMNlevjV4EGrVjyn0KIvJ85?= =?us-ascii?Q?NX7YcwzriAQ/zkMDPhT0jduuMaJxKYVZTwhlBC9r?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a45bf736-7bbe-49c2-1133-08da80274cc6 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2022 08:05:51.1162 (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: lsm9pelLR+ALOVD2hBvAcoXgLAORYUWb7G1gAtFIjiP/d+CFd9nRgqaQp9OJdWIx9SYIF7IHQ4ukTVAy8Yz6Tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7617 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 This patchseries computes pcm_io_frames from the DAI position reported by SOF firmware. Using pcm_io_frames userspace applications can later compute timestamps for compressed stream. Daniel Baluta (2): ASoC: SOF: compress: Remove byte offset computation ASoC: SOF: compress: Introduce sof_compr_stream Laurentiu Mihalcea (2): ASoC: SOF: compress: Save channel count and sample bytes ASoC: SOF: compress: Add support for computing timestamps sound/soc/sof/compress.c | 54 ++++++++++++++++++++++++---------------- sound/soc/sof/sof-priv.h | 7 ++++++ 2 files changed, 40 insertions(+), 21 deletions(-) -- 2.27.0