Message ID | 20210917143659.401102-3-daniel.baluta@oss.nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=EuHN=OH=alsa-project.org=alsa-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0633C433EF for <alsa-devel@archiver.kernel.org>; Fri, 17 Sep 2021 14:39:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5C6CB60F5B for <alsa-devel@archiver.kernel.org>; Fri, 17 Sep 2021 14:39:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5C6CB60F5B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org 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 F3D92176D; Fri, 17 Sep 2021 16:38:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz F3D92176D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1631889548; bh=UrPxQt+jmWAQVogc6GjJqQTGdQvZiMuBjz1lxXfvkgg=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sVCGz3p8cOEFrnr2wmCVp8J7Rj7TSGf4QbOfCINXgz/CVNrTpvATBR8fid6vh7GvE mGSAA+o83bnbEfKUAEyyWcvWycFIvM0QtXk21XJjv7XLk3kRxX+SsQSWy2bvaeIdSK D5XtH+85vIdtllGFdnXq12fHb6dwEY2+M2QfPOeE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6637AF804E5; Fri, 17 Sep 2021 16:37:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 55382F804AB; Fri, 17 Sep 2021 16:37:33 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140047.outbound.protection.outlook.com [40.107.14.47]) (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 18292F80227 for <alsa-devel@alsa-project.org>; Fri, 17 Sep 2021 16:37:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 18292F80227 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="kTPVPw3D" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aEY8IJyct2TyZfWrgesCr6wDBmjZUWA3oGUqDjgt5X5wSOdAUw2KhhSkWYOtv5v2gHQHmYs97+vRNc9CMjlxrRmey1hG8YaxNi3HeKpFmCMuUZRVuCmB8omQQlVJhveHtHmV99+A2//aX7vCGs1u15mWS1NXRkL7twn+8IQqWsq7vyixt68yGKgCLA7oYL1GNHWuEopH02t69fNNqCNnwG4z7UEYM+MW1G9dIiikYsHulc44XcZmk/KxOyyOlsL0mSJ5WTIVihjHPfroiO9cynSbIy2b2+y3qym1UpOjdXQpu6X4AGzVqm6vMfcRfRfqcPGEVzzETCLnGBaQvs5GrA== 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; bh=8gLGWve3UvVd8jvC9XczASUE2rKrgol1jb5xFi620Vk=; b=VWNDiY0/u38ySHyq/wO/MdlangeoeTg5IotlmTxrFGMfKyH9wb7+jMESlPtSnmrdzeCUIwxkG2A6WSufzuJTgEcO8bUfX46zqS1Goy06Mjil4bxvqDZdCgQDisL8fnvO5W+bGrDFgRM8Z5uessfzX7ae4nQBteMTQf/SckmWaPnL8iFxLwZ+FnjyI0ahQP6fkBqFBfKx11o7BiBkgrcYAz8p5uqRxh3QmxODulQtX3omRF8a9it6bAOeE0rX6lyZh5CvH3lOq/oKsDCLNAvkvM5yYkNbc+gvi6ebjwYnfj6SS1sRPQl9vgEmmRoMUFaHZDkisA71c6dtz68R/1ZjJA== 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=8gLGWve3UvVd8jvC9XczASUE2rKrgol1jb5xFi620Vk=; b=kTPVPw3DwVLTvXaX6v+aXkk72rRdN68kHCTDS9k1jl5jcy4nTabVRT8vboLVo475lixj2OupgfJBRvjwssiBe9YiEI1cxvLXYsvN4iQb9e0OFQNiSnpcYgnbY11YyRh4CERvycXkso8bNnHB70M7da07Yxe1wh0rPtwmvjRlD/A= 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 AM0PR04MB5140.eurprd04.prod.outlook.com (2603:10a6:208:ca::21) by AM8PR04MB7409.eurprd04.prod.outlook.com (2603:10a6:20b:1c5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16; Fri, 17 Sep 2021 14:37:21 +0000 Received: from AM0PR04MB5140.eurprd04.prod.outlook.com ([fe80::dd84:b996:1c8:705]) by AM0PR04MB5140.eurprd04.prod.outlook.com ([fe80::dd84:b996:1c8:705%6]) with mapi id 15.20.4523.016; Fri, 17 Sep 2021 14:37:21 +0000 From: Daniel Baluta <daniel.baluta@oss.nxp.com> To: broonie@kernel.org Subject: [PATCH v2 02/12] ASoC: SOF: control: Add access field in struct snd_sof_control Date: Fri, 17 Sep 2021 17:36:49 +0300 Message-Id: <20210917143659.401102-3-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210917143659.401102-1-daniel.baluta@oss.nxp.com> References: <20210917143659.401102-1-daniel.baluta@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1P193CA0022.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:bd::32) To AM0PR04MB5140.eurprd04.prod.outlook.com (2603:10a6:208:ca::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2a02:2f08:5708:8600:8372:c747:541d:bbc9) by VI1P193CA0022.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:bd::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Fri, 17 Sep 2021 14:37:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78449ff7-341e-4d0b-f7dd-08d979e8a850 X-MS-TrafficTypeDiagnostic: AM8PR04MB7409: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AM8PR04MB7409E8116CC0F13C9BE61503B8DD9@AM8PR04MB7409.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +oQXWWRKgQzGtC5GYEbIZzr+M2stQ3xiTSQ4hfmV9UuZBhTBCutUjAkzmwVw37Q4N98Lh3NptPRrgb1d9nt+m8184mJ4w6cl6IqSffvgMzZFWOGeQr6TRBXxoR3E5QLEeFqB/aWoCblmA8WOkMmml56CkLoPn8O5Tzkee7hG8uxwQJemtXR2gTWMa0jckLLjvVtvp5W1Qcq1uUpfeG//PrK4hu0xSD+cz6uvr2RtQByo8Vh4VbNTbmLKDEksTpkFWm5JgxowcPHbe7pte9d/FKJR16awinmEnXXMkbxFoE3V7kyx3iAhbNxhKGF/fCdWXyvGok4Pvrp5ByAyW0RNG7pzm2ADcQHRqOGlJS2N2g94KdC6XjhpHb6LZ9cNUlp1hGawRSAVNdrjgISlhTvJyQ9ti35CiQD3AzwiTKTnS9c7ez2DEn5/ztcXCBEuPds56wxGed1fDplozTvdk+wgklbXn1MZ60l5PwRl7UP8rFR9268oJIKTfO9nn4tBX+LvFfBERjeuaXf+YPAyhmXnWPd6D7KvRkrq6nioj45/Zulb3yuScxQtk2VFKijUhSUCZanl/9psdM/FkpMiIO4DXIjMHEkLWFg1yX+GVWYHILZPO020pgtoVehaWIw1F/yT2xRrY+2/gOjODuIGcTDy8Q== 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:(4636009)(346002)(376002)(136003)(366004)(396003)(39860400002)(5660300002)(8676002)(2906002)(4326008)(38100700002)(8936002)(66476007)(44832011)(1076003)(6666004)(86362001)(66556008)(6512007)(186003)(478600001)(316002)(6486002)(2616005)(6506007)(52116002)(6916009)(66946007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5vIxmjOKrQnf7dvjgWclkmp2hfse8HvRJb0GHP6Pln2IR76ZDN3SOLckG2Mu3miCLFN3X+TZ+ya7JjaCPsHGpeGVi9PbihyWQds+vNDXEikU6E6MB60RIVA6l1WLZEmQbLxYz3hdQrs/ffKCcazMIXqEh1gJU4+0qmcQ9JEsqNGRoYrtfeCTKUDBftgVtFFstkEVme3aDlz/9af1+5N5Z0U5GKwkg0GGBjlv/KttGfkTHdkVl32m6Ddhnco3/3kBECFvMu8BmvSRW/i0slIEbzmJG/nSjNKeENj44tc4SsUhesdlS4cpFHc+ZnPg7RUI4mtVyeA9A+CB9GF7xgOyPvLLmTc8r08JckBw19neqU3Pc+s1fGXhVPCjsOs0vastkiNpO0nLzk8ObRJjIXulcEXTUM0j57Jet2VVywhA/XffLF0mGgaUdU5Iw7C8Fv6z6JGrAW43nS9HyIaq5TAcNMbLXTkd/In2a4OSLiJFPFdNM3gqvgby7HVFlK7IzHwSJv5YCIKXrpyk7pf9P3mo+L0iH87TWlEPji99dlWm+ZRW2frRlYGNctp3u4JAjFLJA/1PkdYWVhISmmM+I+0EoMGd6nKK1VfaIqpzJOcghGdaX93HHPiLLqnwVwr2/SqAa9A/dffvQl6ae9kXK8AjyS1IC4rWwEmHT1Bqh8HGCKGCyBFRomAqrIJH/PKdNgGYwWsot+aIDq0/T6Nmms9oN0obOgAl90VpWaGN0y0vBDi+Yu0x7JGKpLYxnAnaCnfEl2xN111ehGzdbJRV5MHM/JQ5DhgGnquA+iRFSSag4/tLHVecZH1J+kgdCflkQ4MfKCdOSglpGAS1zpXtLhlXvQskpG14CksW2c0WSvu4uxbOnerYzkF130iNSfylFalWb5b/IEOW63Sgp9GWcrgePZUZqm38gpDP+FYeFOKtjSsIFyLCHqLCZtlO/zzqiScNnMh/XhmiFTUxR/ME0bL/8bQuVHmcapMtAILEI07z1EihrInXJJJAqTyfUqG4x6twBufIzGvaOKAoiPq3PCeTKViu0LlMVU2ZrQ6+DbZLzhMzDrwvsweI2VZWtKf9uKLVfRDbIMIjoFJccgG6OrJvFxF66IyahP84zcUL3r2shXuHtwkrh642vTBXVE++eyXrF3QC4n3s2FKrztoRWF+nokKjXqxZbeoCULjjZzOrugSVPeYLWDxgo8La+7aO7rt5QjhhxdtwgFn4XoebwFB2phukTV1d8r/krEUQHHYo3cPxop6gP28ZVWgWDHrXMCngNMKCpB67AFv9vlcKYw52dMqPKEldcwjIxqJwQ/K/mGrUU3VQ/to/SuTriHBdFlfIBK+1mJJRjRmdzhgIgt6LVAhX0fClhGcg0nE6rXWlEbAIz103gKypOfkUpual1K/X X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78449ff7-341e-4d0b-f7dd-08d979e8a850 X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB5140.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2021 14:37:21.4517 (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: wqzc4/Qvpe7UNhMFUfWiCfW5hLtlrNKgnPQB2WCWjtgJ1WmeOQaB8+t8WHmTpBwIm8H662JXp184lrWzX4T6Sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7409 Cc: pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, ranjani.sridharan@linux.intel.com, Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>, daniel.baluta@nxp.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" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
Add support for on demand pipeline setup/destroy
|
expand
|
diff --git a/sound/soc/sof/sof-audio.h b/sound/soc/sof/sof-audio.h index 9a8d005e75a0..78a4a0c90a29 100644 --- a/sound/soc/sof/sof-audio.h +++ b/sound/soc/sof/sof-audio.h @@ -66,6 +66,7 @@ struct snd_sof_control { int min_volume_step; /* min volume step for volume_table */ int max_volume_step; /* max volume step for volume_table */ int num_channels; + unsigned int access; u32 readback_offset; /* offset to mmapped data if used */ struct sof_ipc_ctrl_data *control_data; u32 size; /* cdata size */ diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 96b8791f7cc1..d8f7b1edefc3 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -1250,6 +1250,7 @@ static int sof_control_load(struct snd_soc_component *scomp, int index, return -ENOMEM; scontrol->scomp = scomp; + scontrol->access = kc->access; switch (le32_to_cpu(hdr->ops.info)) { case SND_SOC_TPLG_CTL_VOLSW: