Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4006809pxb; Mon, 4 Oct 2021 15:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXMWRJ2/XaxCxEKTUtKEkG1nbWAqCeqOLhOi++OBrBXuFS9ks3Rx8zT2eiySyCPRneM8DX X-Received: by 2002:a17:906:84e:: with SMTP id f14mr3326109ejd.105.1633385044188; Mon, 04 Oct 2021 15:04:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633385044; cv=pass; d=google.com; s=arc-20160816; b=XGsuP3LvLhUWwKeQL7HWRoTyGbx7Z+aXbgGCtkgS1uNb4PMZJVAGEwFF2qDGlN7r0I S3ihRJnIfwIOwmnjOfjrkSEmSZXPc3r6bWyT8NovWDR0GvZLnENdEL3W8N+jPdB0bwyd MTm798+w7wf8NngB4vubAarhzUU6OcVKcYArpDsxspjwxIV604i4++CC92aSUrpnZNpN 3Wb3/amC7S91wWEChpdBbOHUIcKPym0EeaeStCGaS0AISNRZhmNDS6kFH1VLWNtqpIdj ZbxFigt6pPsS7hzA5ZgYDzur6/nCv9N+F+zetVLMMhI9NNblBd0zMsrrpSRsYz6AoGPV 5sOQ== 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=XyMqsA2CRLnSQom/YMzvv8G27U++lUgWebq/SHACYX0=; b=fe5i/2R+J6nLi2w/26KmSkoTk9yCCtVTUWzcUk4GAOuA0y+9RESquCI61Lii8xx49D cVG8CZaS6sDlvS6/ryq4gHMOcF6tGTigWcBGOEGqBPaLwSSWosOgzNZf36i4iMdMA7a0 8K4ZUW/ZeOidhZDdicoVuOUrUzQOB3lbmZTuLGm8kxznJ3Xr327VboEGa9FOfjDeqK7g /zsb2WBR2UwuS74lthadJq7t5HMqMHR9KkGPQZG9EpkF+sJkiDYZIucBtnqVxEaWlcw5 AqdrC2qoacA5ucHv46XrLOROApT50kiSxy9pXmcrTc5q0RBRfsWI+ZCfY8orYq593EQj tnBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=kxSm4A2U; 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 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si18533457ejb.219.2021.10.04.15.03.39; Mon, 04 Oct 2021 15:04:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=kxSm4A2U; 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 23.128.96.18 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 S234947AbhJDPYI (ORCPT + 99 others); Mon, 4 Oct 2021 11:24:08 -0400 Received: from mail-eopbgr130085.outbound.protection.outlook.com ([40.107.13.85]:6372 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233561AbhJDPYG (ORCPT ); Mon, 4 Oct 2021 11:24:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E/RqsfTbJjzJhDP/B1g3/q5w4a6GhMCY36DZTEi799LPlBB2yb0P4y+lAv7lmLKz4Zu694HmKnhRU6Ic+NxP/Em92+Lxivy/urRVK7PksWMamhvsEHf2Fh6R/FNa1AFPxtWXlMW31WfkN9TiKtyp96wNETxqYBSkeJrIRdCY8skgirKlzRFyZMueQ+JH+CVS/D58VETYZC2YQSj/RMfajPrq4HrTxd68fH4phqNyC0dD8RTxhObaRqYmellta+y+XEk/8uzGBAZbTItj+F3WY070ZSi1eOgYmOYNWX/3/ZXSLuGbc6tnVcr8S0y4MG8Ny0HKT2yqUWkRJXFe0zuGDA== 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=XyMqsA2CRLnSQom/YMzvv8G27U++lUgWebq/SHACYX0=; b=OJPLi/inAaUCucIiuqOBvaA1CSPHp1XyOl5EnZFDTZus7L4OdQnQd6NXtWAqpOiXSRFtxz8oI4vSbwT+ToUwQ2z5ldm3IiDC1GmZd8wMA7w4PCFl2RhTusl4SoDIGT7susrdi/L9NYJdNXZO3F7XjwilUWlIwhfrJuQRrg4Jskbc7u4sSBHtZFeD5GBR3c0vmju3VBR0AUbFsuC2MD5GwWv0k42JPtxQ03qxmdbZ7tSn8OO17MUkoUhX3SHWwRaqGdvO0W7wI5rGu/hUxBNtJ9d9zREMikS6Z4PAyME7wK76/JIXl0JrwdJgU46EhSpILxJbLJ71sBUIO1YA4i36mQ== 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=XyMqsA2CRLnSQom/YMzvv8G27U++lUgWebq/SHACYX0=; b=kxSm4A2UTdG2tD8U3IJFZR+zo4C0BzUhOpkNYgrJpWDckVeDsDnZmtKtGGONLr7hDssMxopDa+/OXGtKD/bbDC/6SKIuem/6JVfbMomCILDlvfiVWfauKrDQZCCmcE7JTN5+NMNqMI7AOLD+6sPpX6mpG7Vf4Pc0lyysxAimrKM= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) by VI1PR04MB7069.eurprd04.prod.outlook.com (2603:10a6:800:127::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22; Mon, 4 Oct 2021 15:22:14 +0000 Received: from VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::9968:6eca:45c5:8af4]) by VI1PR04MB5151.eurprd04.prod.outlook.com ([fe80::9968:6eca:45c5:8af4%7]) with mapi id 15.20.4544.026; Mon, 4 Oct 2021 15:22:14 +0000 From: Daniel Baluta To: broonie@kernel.org Cc: kai.vehmanen@linux.intel.com, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com, peter.ujfalusi@linux.intel.com, guennadi.liakhovetski@linux.intel.com, budliviu@gmail.com, yang.jie@linux.intel.com, sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Daniel Baluta Subject: [PATCH 0/4] Introduce new SOF helpers Date: Mon, 4 Oct 2021 18:21:43 +0300 Message-Id: <20211004152147.1268978-1-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: VI1PR0801CA0068.eurprd08.prod.outlook.com (2603:10a6:800:7d::12) To VI1PR04MB5151.eurprd04.prod.outlook.com (2603:10a6:803:61::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (5.12.247.65) by VI1PR0801CA0068.eurprd08.prod.outlook.com (2603:10a6:800:7d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13 via Frontend Transport; Mon, 4 Oct 2021 15:22:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9dbd0ecc-11bd-422b-5fea-08d9874abe80 X-MS-TrafficTypeDiagnostic: VI1PR04MB7069: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FsXE8c0M+3UNH6ZH3pNSoqrzYB1HAbhT7wZLyOPr24lAKbYijwIa70g5eJ/5Ze+Qj6d8ZTWvDfaYRAigWb//FKew1c8II7whyhYNzoITLRALJsNlxBo8PSS80CLJDQcJNhupeRH2Vb5xxa1KqUTljizwn0aW5CEM2isb6Hbnwr62SsxztRI1A7u8gNy59YDcNX8G6yIyFBd7mZELfIRJevtCEsrEdjZUzvBziqXBsXpYxC9Ay7+1CTG1QaZuBc2bkZC5vXXFWWp5CzYzaAT21MSNrOM5JqNcHfUM/Jhbv3OsE4QIyVrpGJoNqk+5UkaxfaP8HVoD7fHSPDWxh9mRmKIvCoL2i44VH0oRGtoaDZaGcoAgPfaEyJQ6rkVOzTILl0iYa+C3uPZZ8CbGwCK5szC9wYe3h5+a5e6jrzb9MLGYZJIcrEUcKbs0AhnS2hPaztUpqgujFtKRgt+JVadngHUCT2F5dY7JLKxxZnj+UPfu6ZCl3wefJXG7/TMTXS3muj5zTjEP7TDXP/WsS119d2DpJs4lhpjt5esOQRWDzHviNNQv/XXTWH/ZlUg/e3ZLpFaOHZTFPZFr63uEEKBAx+y40yPsPrViDvlPXjGyl0RCv8lpdxATabCmK3HmPiJZM7uCkcEPuwOj0M7drioZy5wIIRtojJWQCwv54g9740w2vEO/uuRnFHoGyGQEMM3uXDe17WM8WeFuc9Y8KH38aQ== 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)(1076003)(186003)(8936002)(38350700002)(86362001)(38100700002)(5660300002)(2616005)(8676002)(956004)(2906002)(508600001)(26005)(6486002)(66476007)(52116002)(7416002)(66946007)(6512007)(6506007)(6916009)(44832011)(83380400001)(316002)(4326008)(66556008)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cmZrd25zaGZwVThyQVNPeHhyakJUbUQySUZUZE9uR21oTXpjT013Vm9XbXdt?= =?utf-8?B?NGVXVUNOVGhEbis2eHpHUzE5ODdaQkk1S0x5YTh3QVNiUHc2MUEzRWNNeGtQ?= =?utf-8?B?SXVlTEVIUlhLRWcrcmV5TWdCcHJhNDBGTW5HeE13L0NTYU1zT2g2Uy81b3li?= =?utf-8?B?eGd5QnVqQkVJM29rUG9WTEV3ZnVkMWVNVzl6NkRjRFNrMHhtdkNSVTlIOTRM?= =?utf-8?B?alYwMjVsT0gvR2hlRWNDYnM0QW51RGFvL09LL0lNcW8yT2xZYzBIbGpKN3JC?= =?utf-8?B?a05tZnljQk1EbUZjY0Z6V3FhOUdPMkVQZzlKU1NzZU9qb2VkUFE4LzhlWnp3?= =?utf-8?B?clpFY21CT0dleGZaL25lV0x1TFNtRklyeFJlcG44OG9mNGN3OGcrVUFxZ1Jz?= =?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FcEtLRUxwSnR1?= =?utf-8?B?QkZBY3JQaHc4V3FUcEp2NElISFNJajZ4Q2FtVllZZUo5Sm5mdWQyMHlDemc4?= =?utf-8?B?d3lySzZ6VVFCcXRZcWhJR1hXTDF2cFRwSlQxYTJUQi9QQmVSWUZtVnBnV0Ux?= =?utf-8?B?ay9KeHR4a0ZqQlBobjY2QTYzSFcxUXozaWp1R21EaktVVlhxR0J3TCtDYzAr?= =?utf-8?B?dHpzQ1FJS290MWtLRXdGMHc3Y25PVXA4WnVBRHdPdEI5MC9yQVZML0NkR3k2?= =?utf-8?B?S3YzazZzaEZ3VkJLN2pISUxUcG10ZGRUR1hRWHJuTHVjamVKaFo1SFV1dXdS?= =?utf-8?B?V1lNWXNiNVVWK0ZadnlZVXZISnBLdzlSV1JDZHN0bjIyaURrQWlVeEtpbXVr?= =?utf-8?B?b014UzFmY1NhL1dMUDk2MzNmMFgvUFA0ZHBUcUpmay9CZ25CMVk4Y2ExL0lp?= =?utf-8?Q?JNxRO8g0bupDaWHTrqk/acJgu7SGNLtt+R48qRJ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9dbd0ecc-11bd-422b-5fea-08d9874abe80 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 15:22:14.4588 (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: gr1PjQ6IP9P1zD7skrvLaEIrmzL1k1I49VeY2aJqXinHoFqvaSmZC4M3XnFDcUyxWHq4S9SeBHMik+PZ8CRDKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7069 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Baluta This patchseries adds new helpers in order to reduce code duplication and prepare for compress audio support with SOF. Bud Liviu-Alexandru (1): ASoC: SOF: Make Intel IPC stream ops generic Daniel Baluta (3): ASoC: SOF: Introduce snd_sof_mailbox_read / snd_sof_mailbox_write callbacks ASoC: SOF: imx: Use newly introduced generic IPC stream ops ASoC: SOF: Introduce fragment elapsed notification API sound/soc/sof/Kconfig | 4 ++ sound/soc/sof/Makefile | 3 +- sound/soc/sof/compress.c | 51 +++++++++++++++++++ sound/soc/sof/imx/Kconfig | 2 + sound/soc/sof/imx/imx8.c | 39 +++++++------- sound/soc/sof/imx/imx8m.c | 26 ++++------ sound/soc/sof/intel/Makefile | 3 -- sound/soc/sof/intel/apl.c | 4 ++ sound/soc/sof/intel/bdw.c | 12 +++-- sound/soc/sof/intel/byt.c | 24 ++++++--- sound/soc/sof/intel/cnl.c | 4 ++ sound/soc/sof/intel/icl.c | 4 ++ sound/soc/sof/intel/pci-tng.c | 12 +++-- sound/soc/sof/intel/tgl.c | 4 ++ sound/soc/sof/ipc.c | 6 ++- sound/soc/sof/ops.h | 15 ++++++ sound/soc/sof/pcm.c | 7 ++- sound/soc/sof/sof-audio.h | 11 +++- sound/soc/sof/sof-priv.h | 28 ++++++---- .../sof/{intel/intel-ipc.c => stream-ipc.c} | 50 +++++++++--------- sound/soc/sof/topology.c | 6 ++- 21 files changed, 218 insertions(+), 97 deletions(-) create mode 100644 sound/soc/sof/compress.c rename sound/soc/sof/{intel/intel-ipc.c => stream-ipc.c} (58%) -- 2.27.0