From patchwork Mon Mar 19 06:35:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10291687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1870602BD for ; Mon, 19 Mar 2018 06:33:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B221E28798 for ; Mon, 19 Mar 2018 06:33:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2AC029144; Mon, 19 Mar 2018 06:33:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9242328798 for ; Mon, 19 Mar 2018 06:33:41 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 59A2A2672BA; Mon, 19 Mar 2018 07:33:39 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 35E5726731A; Mon, 19 Mar 2018 07:33:37 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by alsa0.perex.cz (Postfix) with ESMTP id F2E6F267299 for ; Mon, 19 Mar 2018 07:33:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B4wRu8xOqnnNv2hqmoSSeD8+4cRRIjKITel8O/9WVCs=; b=PxEexhA4KF7DJPwILA88bDiRV50jaCEehvRnxYsHx4jCxvJ9R6pMwBZFQ4bqv/Z2Ml132abokhkPVq0B6GukOVoaoTvhyIVJHBpcx0qEw3UW0CMsqzo0CQ7ygk41mbw5Z4Xe0BTunhmS2xkb13qYhVt9DssG1/WT/qui5XYXCVc= Received: from BN6PR1201CA0003.namprd12.prod.outlook.com (2603:10b6:405:4c::13) by DM2PR12MB0032.namprd12.prod.outlook.com (2a01:111:e400:3c11::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 06:33:30 +0000 Received: from CO1NAM03FT005.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::205) by BN6PR1201CA0003.outlook.office365.com (2603:10b6:405:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.14 via Frontend Transport; Mon, 19 Mar 2018 06:33:29 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT005.mail.protection.outlook.com (10.152.80.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.567.18 via Frontend Transport; Mon, 19 Mar 2018 06:33:28 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Mon, 19 Mar 2018 01:33:19 -0500 From: Vijendar Mukunda To: , , Date: Mon, 19 Mar 2018 12:05:32 +0530 Message-ID: <1521441332-18821-1-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(396003)(346002)(39860400002)(376002)(2980300002)(428003)(199004)(189003)(305945005)(316002)(72206003)(426003)(336012)(5660300001)(53936002)(50226002)(36756003)(51416003)(7696005)(48376002)(356003)(16586007)(478600001)(104016004)(50466002)(54906003)(110136005)(8676002)(26005)(6666003)(39060400002)(1857600001)(4326008)(6346003)(77096007)(86362001)(81166006)(53416004)(81156014)(47776003)(2201001)(105586002)(2906002)(68736007)(97736004)(186003)(8936002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0032; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT005; 1:6LJ4ikTOvLR8djxrtE3XDv/ED2Refj5Q7Daus18Xd4uBacTfMOnDz77TD2mEvA3FudTC8t5CoZE80MMtXhDdF6VRHo+6vidKat3w8Re1YawmeV44wGpJOQDjfSEgCw9S X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 727a1772-a357-450e-e73c-08d58d6353aa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM2PR12MB0032; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0032; 3:z0cIRbbKQPa8ZZG+2aCkHCeJ/4qz95qkQA85mq5MUxlanZqemZWZapbNh6+640z8NFFFPDljUK25b7/UgOkGg4X89sDs5it74K5faOO191eB70O7qHovNjF/cOKlsZjcJEA4H3wlufNepgi3EMDRUVQs8J3Dr2uG+RZbk321AgW544S18MVTzBuqwPCaq8BXodXv2zILipFUtMSruEWcdVPzBmH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FTh77dZFZOTVf4WY1f6IOd+spOnLIAJX2ADhU04NdR6OWaBke025NClcL2wKfEOmFVRLBaqXhS7hKZAiDA823e/yXzmdJlFP+KpwOS4TK1onuJAX8vlj7EElKaUu95O/5+KixXWhtXxkKpOkEhtS8GJaP1w67o9MzvhsWSjod11pkP/nsEAnv9viaKwP2uLDfoackSX+UpTK2DkQMgKQPOtIVobdMUY67+gtsT690Ln X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93003095)(10201501046)(3231221)(944501300)(52105095)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM2PR12MB0032; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0032; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0032; 4:s2fR99pBpZXZT5valamXsTrdAWJ3i/joQVE6lRrq+3skM8TW68GYaYro8vczugYHzGN2Tc9omevE9Ruwxcrf7kM3JqmL51tC3XJ7/dt8rs7E54IMStjz9PW7Q7zIt4lkZFaKo41QScmKAnPQpOuFplwN5CmRMpcXlwk/n8U4utqmf6P4zdcuKTngNjV3KZ0drm/vAGZUYk3oE+cin2j7R/Ew7IVXLevCpuYiPKXyP6i+6iDxAKweYFYy7M51bbTmYTR1JFFEEg1XGLu3X20G9jYZQGurg/dk89M8X6jLe4z7apVDQDyVOvJkchB5sawv X-Forefront-PRVS: 06167FAD59 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0032; 23:7SuuCNr4gvBqFwKHJAjXZgA3RrwFNbW6iOyS5geyq?= =?us-ascii?Q?d/jlsoG0PvvPidJfFI0ndrsrNdrqMShdUqAE5T4mezvoevUJKlxObePU/sig?= =?us-ascii?Q?ARcsFKa7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GKjWrkRKOP+28NCZXi9xBpRCAJyNoOuoqs/U=; 7:e73A0IDh6AM2HqMzqBVQOXv07rydTp6WS1UpAqmXvgnFG/mqJAozaHqYh3eFenrjAk+fWUPaCcKmOKRA6pG+adkCWS8L2cyNRZKFD+GwNKvXtrrn740YjJ5hCwUVL7HukGfZ/TBiRVvsiF/bTniwUyNOMXo4F11mCkKvKciVOUNCiPGVir34PV6ThIznWNnd2DgnoGwq2YrEK6hFEU6eBs/Xy/Q8keQJ19W2Z9j4cpckL/cGjHDuexUzVJT4kdHZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0032; 20:2QjHvm//ygF9Fd/VYwijv9D+Xz8clH2Yu34A6jkBaxyQ1VcD8zycKUwrQc2pTIdivpjw2FwV4ebpKyHal/wAmymZXuVEWYWJ53KwcJeentrseaTc0RAT2bc6HmfHkcgwUcLzgYS38tsuQAt49c63CKmMRfBi+DWlLQTgj+AoCDBRX8hNSQXbQlwvR3ztz5FYCTqDUR/r9ki4amgdI6Iih70+gTlfeppQdF1xYS2oXQpW11AYCULP3DiPswtJ3sSy X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2018 06:33:28.4968 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 727a1772-a357-450e-e73c-08d58d6353aa X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0032 Cc: tiwai@suse.de, Alexander.Deucher@amd.com, Vijendar Mukunda , lgirdwood@gmail.com, Akshu.Agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: dwc: I2S Controller instance param added X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP When multiple I2S controller instances created, i2s_instance parameter refers to i2s controller instance value. Signed-off-by: Vijendar Mukunda Reviewed-by: Alex Deucher --- include/sound/designware_i2s.h | 4 ++++ sound/soc/dwc/dwc-i2s.c | 1 + sound/soc/dwc/local.h | 1 + 3 files changed, 6 insertions(+) diff --git a/include/sound/designware_i2s.h b/include/sound/designware_i2s.h index 830f5ca..2a94e7c 100644 --- a/include/sound/designware_i2s.h +++ b/include/sound/designware_i2s.h @@ -44,6 +44,10 @@ struct i2s_platform_data { int channel; u32 snd_fmts; u32 snd_rates; + /* i2s_instance parameter returns I2S controller instance value + * when multiple I2S controllers instantiated + */ + u32 i2s_instance; #define DW_I2S_QUIRK_COMP_REG_OFFSET (1 << 0) #define DW_I2S_QUIRK_COMP_PARAM1 (1 << 1) diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index e27e21f..20145c0 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -549,6 +549,7 @@ static int dw_configure_dai_by_pd(struct dw_i2s_dev *dev, if (dev->quirks & DW_I2S_QUIRK_16BIT_IDX_OVERRIDE) idx = 1; + dev->i2s_instance = pdata->i2s_instance; /* Set DMA slaves info */ dev->play_dma_data.pd.data = pdata->play_dma_data; dev->capture_dma_data.pd.data = pdata->capture_dma_data; diff --git a/sound/soc/dwc/local.h b/sound/soc/dwc/local.h index 91dc70a..e89e464 100644 --- a/sound/soc/dwc/local.h +++ b/sound/soc/dwc/local.h @@ -98,6 +98,7 @@ struct dw_i2s_dev { u32 ccr; u32 xfer_resolution; u32 fifo_th; + u32 i2s_instance; /* data related to DMA transfers b/w i2s and DMAC */ union dw_i2s_snd_dma_data play_dma_data;