From patchwork Wed Aug 17 08:05:26 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: 12945618 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 617A5C25B08 for ; Wed, 17 Aug 2022 08:07:22 +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 153F61637; Wed, 17 Aug 2022 10:06:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 153F61637 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1660723640; bh=Zp+JAGV1Z7HYlFwwnE2hhGH10DXPSjPxUGN0RsDQo+s=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=c3TUU7JtxNY02p3XYi8qIYD4JPVVVO+phaWrYwW6XE1wR5lWVjAbT4GMeCOXIzug/ TqBwbV0VMyevWdT6hjttw2RIf1XaPJyGImZujcO0G9WzMjz94pqG/oTLrrRos+3rhQ A5Pr/g6A/Ge7+CnHO/xGEi0EW0Hbi7TY8y8cR9F8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 28AC0F80534; Wed, 17 Aug 2022 10:06:05 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 73E14F8025C; Wed, 17 Aug 2022 10:06:01 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60058.outbound.protection.outlook.com [40.107.6.58]) (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 6F7ECF800DA for ; Wed, 17 Aug 2022 10:05:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6F7ECF800DA Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="G2+VU3FG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UtrniIcLMtfC9GuHc7o2d6rSkea9eyevxUzToOs3b4+WgGVHJN5bxYjh+aizdVkNiIDNf/qOi38TWSO63z6MZ/OCB4jQAaDqUURZMlmsbWepo6GdlNv8d/3gPmOMTCva9T/4FUqxzjYI2N66HvKQ+xBHXAFVky2tGBq7t/AZoUyR7r/E4hkPAnL5miOyjtb/QGtqKgQp0JpKq8fYi9QE3dhDSu7p195q5OAEE4LEW74KBLh4gDQ0TKd0F2C5+FFVSNcQDfE4TKmrQGKOLAODM1bWrHiZzOxh040ZeVVjTo/TVg9cDkDoSZoHZshWDTLy7rZ9psrsF29R0shhp9AHJA== 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=+29B8g6FWmsRTmm8MhWkeccZoIlYvU93XqkN5sZP7EA=; b=ER1tVGIE4Yi+jGYEcpjvj6L1Pin0g5A2uZi1yoOzqqRfPdzOiHDC2NBTMwSKIpL+3uopePWhcYzyqmBpebUJUJkMgsNzKn2YcKk+tBaNIjNZ3gk5KwW1nkmoOMG8NrlqEgvLPMebry1Jm5aU0pcMU96t8lgQhzlGLAbufzga/bnCwk4ndkc0dF+78N6qa18763pB17b6ASYLs8tJ/AN0oAsZphpwuf9Awow9V+a66ItOguNHOPFoIOHmCLSq3pkzVf5Ks1nQpEvhBvTuJTr2QxRUXcQwUQWOMWoEANT0ZD1g3spNu/kM5sQbyoLHmNk7hRtAz0IGEpuI3DxwQJCwqw== 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=+29B8g6FWmsRTmm8MhWkeccZoIlYvU93XqkN5sZP7EA=; b=G2+VU3FG2gQuCSS0JaEl2l6TfCQNzmnu2iUqqHvDZET0/d97Sa1q8LQZk9bB439X3GC1MWSCI3tIcGt263t9Vxeo7/+nbTLYCGdwelqzaHNTQauZo/NRrcGHsNgCCIF+Gw3CqatgVYB8lMfxNrPQ4cebRJQqART8vKVFF/rf6n4= 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:53 +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:53 +0000 From: Daniel Baluta To: broonie@kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 1/4] ASoC: SOF: compress: Remove byte offset computation Date: Wed, 17 Aug 2022 11:05:26 +0300 Message-Id: <20220817080529.10864-2-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220817080529.10864-1-daniel.baluta@oss.nxp.com> References: <20220817080529.10864-1-daniel.baluta@oss.nxp.com> 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: 698d4801-70c9-4ae5-44fe-08da80274e67 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: v7EkhFj6AT3/9t9zJJw9bZr71baUQAfHVmBsAXVt9U2qsNRuB6Qy+x2DSM68Z28cPvLpOZ1uauVSvD3edU6+Bxw9cde0sqjvfkf0lA219crt3avDFj8FD6w1DrOrejX/VnRfpToqlcNSdvRUwAL0/GS7TI4S7/xMqMLUP1nz/wX42djg/ULrhioUcKk3fTa4xSGGtN9bYIGK6x5CbI7IzGuiWZG4obDFiLWosdjB9OKuixptykYaRdqj60j6hp1dIUdnEB4BTWtZsJ3zoOUamiVUgFxXkZv2kpBFEl9CKjcXQpsrrDyYu9T9Ma126JfHw9Si6GRO/hyF5KMlfAwLyoWSU3gpmJwZQQCEMu9yU7BdZIWe1h3VVxBhiiFo7dvvKG5mIiyctKCl1KizEf/q3Ts6vtSUrzDXaJoAsPlljRh6lFX5Q1YPHJgXE2Rte34ehFD70Mm2aTXwnhBX8uG68bg73BIyK86A5pyq+MhEfi1MphBM1xDi1aFFIffgrtxslIk/uqMUfxKcDYBJX5QyDXLyhpDB49v4bErqx3hXxWHCC26ZsZVtSOze0B/ZR+WLdpDAz20LN3WJfxxTEnmIEvIukAs/vUkSzw9FPiDKitnbYMo+uFvLOSnT81Mj6Xj0zMdmq5M8bPtvPDbGsB6aHpUyssSYlOgnB2fNWavyh3D7VXEtypz4O74jTv0UwT3FPLgD0NhtPoOkpFYw9OWn80g2kO++OIiE+8263YZLjJl4U6FpQyLwCa6Q5ErJhG+HisK3/0LkevvhB0KEmTFwSaakunQ5WPZsEYPpbveAfgL6hzYLW415AZaULOL/Jy15 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)(54906003)(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: RUtGX8t3clGgr+Jwk2dQ+iAK0JlLUUEf4Qo1OxYuW+D50bjt0YfxfGGukHuS3nG3Fi/Ef4j3BYAbuPjpa5CWF60ymdrYfI2Cbr+9LUR/yTglSbHgRIK1hWC6v5UoOxZFJ6SG5LmbsMrgtKLqOCFXh7rpzK1za1LAhwPWSKYV7Bc9FlZ/2whgnPpEurzVWh65629XEenAPwOKBjWN2o+7yyn3Sal+wV6tWjLvd3gC4stpzHd8nm+Hm2LyPU48Fv8Noh0blfym7QNONloj12GMLMFFRZD7d1KMhgLsRHQqjcVzQ9aGqgFpUgAu4ta3Lwndqd8VEGQj3v3END40jp7hthXsLDKIuPsU54Y1PVyYqruBi9KC9Ogqxu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tkcLe864VlFyb8JWNGREEnPfYUk8gzWCvK20NZsz+42umeJXd8bEzgA8oCHj5cTxr7Lj1zxrLLxSk3tbdlTqD8KKzUzXgcCdgtWHTMobhhZuiOUn9WzjSlCq1hn+Qg+LSosmK7T79oAdHGKF8L X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 698d4801-70c9-4ae5-44fe-08da80274e67 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:53.7879 (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: Pmtk9pDi9GuFZAZ1fYfVUW+xjFDxaDY2fXGlNO/LFR+iDNwa2iESngPfvDKPubXtKL3jWU6Oz5f3vPeYEa54Rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7617 Cc: Daniel Baluta , pierre-louis.bossart@linux.intel.com, daniel.baluta@gmail.com, kai.vehmanen@linux.intel.com, peter.ujfalusi@linux.intel.com, lgirdwood@gmail.com, laurentiu.mihalcea@nxp.com, linux-kernel@vger.kernel.org, ranjani.sridharan@linux.intel.com, Paul Olaru , yung-chuan.liao@linux.intel.com 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 Byte offset is the offset in the ring buffer to the DSP while posn_offset is an offset inside the stream_box where we keep position information. Reviewed-by: Paul Olaru Reviewed-by: Pierre-Louis Bossart Signed-off-by: Daniel Baluta --- sound/soc/sof/compress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/sof/compress.c b/sound/soc/sof/compress.c index 67139e15f862..760d6a4a5253 100644 --- a/sound/soc/sof/compress.c +++ b/sound/soc/sof/compress.c @@ -237,7 +237,6 @@ static int sof_compr_set_params(struct snd_soc_component *component, goto out; } - tstamp->byte_offset = sdev->stream_box.offset + ipc_params_reply.posn_offset; tstamp->sampling_rate = params->codec.sample_rate; spcm->prepared[cstream->direction] = true;