From patchwork Fri Feb 16 07:41:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10224145 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 97AF7602CB for ; Fri, 16 Feb 2018 07:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C7A029350 for ; Fri, 16 Feb 2018 07:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8160329360; Fri, 16 Feb 2018 07:55:13 +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 EE6ED29350 for ; Fri, 16 Feb 2018 07:55:12 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 956C7267D81; Fri, 16 Feb 2018 08:54:53 +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 A675A267DBA; Fri, 16 Feb 2018 08:54:49 +0100 (CET) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0059.outbound.protection.outlook.com [104.47.40.59]) by alsa0.perex.cz (Postfix) with ESMTP id 47BA0267D81 for ; Fri, 16 Feb 2018 08:54:47 +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=mtWRpc5Fi1GOERg/4hcEcNg6XZ95qy+9vPi+axjIXTM=; b=qMuWSSB1mN+66zzb/Ne5p8e0PGZlGTEJhtLUizX0rkumfaJMr+x+w9ACoWnmtby1DhvKSHEXJFon//ydYGYfeOTiVL0YZATYYQZK9mJsjLiGaTDTGSIRDvGTcUTzOR1P0x+vTTm9HldNB+zKk8rnmPKpATs7DP78p+7JC8c5qjk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from akshu-HP-EliteBook-745-G2.amd.com (202.56.249.162) by BN6PR1201MB0179.namprd12.prod.outlook.com (10.174.115.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Fri, 16 Feb 2018 07:54:41 +0000 From: Akshu Agrawal To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Fri, 16 Feb 2018 13:11:15 +0530 Message-Id: <1518766875-15164-4-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518766875-15164-1-git-send-email-akshu.agrawal@amd.com> References: <1518766875-15164-1-git-send-email-akshu.agrawal@amd.com> MIME-Version: 1.0 X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MAXPR0101CA0053.INDPRD01.PROD.OUTLOOK.COM (10.174.63.15) To BN6PR1201MB0179.namprd12.prod.outlook.com (10.174.115.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6945a9b8-3305-485b-c471-08d575128a73 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR1201MB0179; X-Microsoft-Exchange-Diagnostics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Cj2j/OddHsDO534MTIn7uHKssYzJkZcjZon28fw7ZlVPN9hISy9zcFvflrh0O7Zg1z7TxZZKZV7ZyfUrHijTnipe77Lcn+Zj+NGff0U8EsHmmrj57tTkFx57oL7EffjJyTKSBZxvQIU1IUhdLhHopaLQ1cXo/Wxpr2cUszKFOrAJNl1C8ZEjgRZlg6znEoKtE/xbzIG1Y+u6m54ipCSKgbvlrQdPCDlpHk5Ekq2yOn970nNQcoMetOhV1ZadvHaKStgqP/YXDQHIrH9niqTCLzfkufZsSMH5xWY5A/NS8x9+W14l+ebDzrLFgCzFwfJXSTTjru7MdIR2hD7eMRCe9XFSWNEoJE7syQpCv+qkxlfbUXKcllhA; 4:RcrWkWLEQwn8BN32Ze26dS7siBeFljOWvqDnVbinszMZM82mFybsZFXPfkMP+spFlSDH56/xASmhMmy/PRO7q32kJM2eRMuYXnCVKP+1SkgETc7IQ8g8oC6EuVWM4tpVeg/1Hk5Zo57chYdl+hWMQmgaA5dl7bwxXMtUfpkZ8ImMlR8s2m9wgUpstIAT277OXlI8S4YsQjzSAHqMpSkmFd4AalKebt+6/D3C+u3pGsgML5/WDmulBjUrySKhCQWe90L8nTu3yTz+WyMiTAa8GZGaeTwO+b2uZafdC6EHwNBCPe5p2Uo04vASy/mb8g7d X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231101)(944501161)(3002001)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR1201MB0179; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB0179; X-Forefront-PRVS: 0585417D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(366004)(396003)(189003)(199004)(8676002)(15760500003)(6486002)(51416003)(81156014)(81166006)(105586002)(4326008)(2906002)(16586007)(316002)(386003)(478600001)(50226002)(76176011)(53416004)(7696005)(8936002)(52116002)(72206003)(66066001)(47776003)(53936002)(26005)(6116002)(3846002)(6666003)(2950100002)(16526019)(1857600001)(186003)(36756003)(86362001)(5660300001)(25786009)(39060400002)(7736002)(305945005)(50466002)(48376002)(97736004)(106356001)(68736007)(70780200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0179; H:akshu-HP-EliteBook-745-G2.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0179; 23:UKKZg4iuVfto6U5eTd1wu2rcEgXXmsnc0psiooN?= =?us-ascii?Q?s0FisurySLj+ApGd1poKkA5X+6ctz6d3VusJ1TEzfVOPidKJBBEZ/aFbRxRb?= =?us-ascii?Q?ECAD2+QM6hOseo4QJpVKlX5hERu4/lf0lYC/m9tQ6JxK4G2TNTOjAA3BRoI8?= =?us-ascii?Q?lXw7JtGq07ncM4H8dGZg+IXaPAMC0SbgTRkNk0xMc4jxD4pZFHDPZFCOI8qC?= =?us-ascii?Q?yWF8s42c4+gdDrQ8nLd4Pe7oR2DG2d3tlWPVpS5y9nB6YlT5Du8zMXRRDp3J?= =?us-ascii?Q?1HrO9Uc+Ze73zJi55IUD0xCR76oNO63D8a9ucl0zVIlUE+yob1/n/ILfUQkV?= =?us-ascii?Q?tyzNlPA0gXZkeWxH+ttP5/703HiB84YwjP+IHhVKU2lRhbfLEzCBA7gJw9XI?= =?us-ascii?Q?muH9f+15kjs1aVAP240r+BLOoBFOBND6okuFH64+Yvn2MeMdPZxDo074Afjj?= =?us-ascii?Q?cc8MkfonMEbpH+KMC83saRuGHr6MJ2teyws/6PdfMzqf4AstN9S43H/ONvPw?= =?us-ascii?Q?nC7u0mqv1Kr9700E3pNF14NLvzQmWjRb0du+FbV86Zri6FXavOazU3R2S0jT?= =?us-ascii?Q?bVh0yoFggQXIot5b2arQ+fdh1x8b3dfPU3a5PwO6Ios6b5Edi52iblcvss4o?= =?us-ascii?Q?oDGfCtvAuJCIqss720FZ9U77wjCMTY30JGFipEsVdpDQl2e/czTWTGTI8f8c?= =?us-ascii?Q?nDSL0mphY2AVuQbEgGUXp1feLX8bTfFCrFXSJnAaTJd9XFSXcdCMYGdUUYrP?= =?us-ascii?Q?9RbHF8CyCStj7V6VoHItE7q3yvtc61Nl4UdK6FFVmwxtUAMCJu4uC2xzOKYT?= =?us-ascii?Q?W9J/12Aol0wgOKFN8tWSbbTmJd2rUT395e/a3sF9KdcyMlhmRuVEhjm1knEg?= =?us-ascii?Q?3KbeDOez0rz0Pl7nep17fGrKh9dk38ejN/0NS6FZ/nKAv9PuDLemg0d0sieg?= =?us-ascii?Q?CipxgvuuANZcrq9muGQr2BzpkKjDMZ0AwM3GVkgu+CO8DQObP6YDuYq25Oa1?= =?us-ascii?Q?96AWwu5AcsQMJQSqp8Eq4jul0K9LJ9wRmmOhMNbb/wdxWLT8qaQGIPh7MxXw?= =?us-ascii?Q?t/aNGutD/0XeT514M4PoJkyYUZuViTMRpCyUKvOBAr5tfwFb0MqSUABX1M5P?= =?us-ascii?Q?PwgeADcfQ9r50XG+8jrqUuI48ofWwhuzP0K+f3ODbQpsulA9gvfAss9Q87rv?= =?us-ascii?Q?RTFRJPWXIXZda2/Iw/A99AUV3D/pCrAEOo1HM?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0179; 6:cZp+DthneA5omNaDvEkmX2wBDAcgVZDoF34q1K7UftUcgUJS4d73IF2EhaH57i5+yhU+vDqVe+SoCSKrOktDs8nD5k3pTMPfNAHMPITs8EO2K9LZKzpIlLmov7GFVTrsllKFQ3xkgkOKPc/bVA1CMG6P5cQXFB7hOHzP2LuABBpy6a2ogVprJeIbt99QB8sBiBUFIqn/Ghe0g1NI3g861WUOqLvNFjdcBrjK7cPorPHSoK540qo7qJ4hYn2ADa2002qU60i7+JDnKaE97/T7fvwUnMyjh2RwUapqGvFRBsgXsk5pCDScKk1xrNwZS+wlxjyLMQHoA4MiU5Lr67PRI0GX9NKAksFD/IxRe5nb8gc=; 5:QRCbw3rmPxAEnOqFQSIl7cxvhD5crx27lPXBE+00ecqoYup2W31FVsKJJKmeG1c+xuAMfU7aLDDOtf6LehgsiXwLrsVXA04uhxNsmjqO1vbxxT3ZO07PK9fiHhUhkrHlJCdtpZBUhhikmjtcL7ajyfzpcfPz7Rvrzod28eqJ/pE=; 24:ZTDiuJ/2vw8QLXDvgKqk/DS/YftLh52/gkusx+uHY42jAhE1PrFREFvzd7B1z1b9BSP05982j0fYGXaXPV8mQSCmpMTdhGjJ0KmRcLUgSlA=; 7:jRuOgJX0dO6CV2DViEZOwyKWSlZ5tFiLonXqZS3HICuPvlfWjk5o6qSDYccjfli8fWpkrqgApFXSiBoDJrVWLbJBfOIRwC1JXQ5avStCjNpFEFdjnG49q690qqjgzG3MQR7P+Y9IAkoQFKTXNNO5Rr98Mzv0HABV6tdwAmBqyyLfnWMOZ4myuuc+UzkrJLjLfC1VOMXY6RyWygf4x7HYmAtglBFsFfH+hogTRoWLRIfuI1HVh3B6j7F3wdH9VzEU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0179; 20:nHMseQQPD63K7isDkOhbmDpX3txxp5w6zJcXRVtztyGyzeKnSXLMblURns2LMG4EIp4SAkIkztyHWa7fC3VRrsw1G8Oz3JLVamYq+wWuXGVo0/+0MEELcDUDKyvFlz9bbrmnfbuUI9VQyyIvCVB1iPZWXgqukk6Odbghp9cxqHoyLx+C66p7Cgmk7pTqjhPoFA6rQA4ekteU9TI4FMw3ve3Xub5MZ005fV2sw7SIDEaSZ1BbC+wwf4OcNrKuycwx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2018 07:54:41.7528 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6945a9b8-3305-485b-c471-08d575128a73 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0179 Cc: tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: dwc: Extends DW_I2S_QUIRK_COMP_PARAM1 to playback 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 we have same register to tell capture and playback capability of a device and we want separate cpu dais for playback and capture. Then, DW_I2S_QUIRK_COMP_PARAM1 is used to enable one capability per dai. Signed-off-by: Akshu Agrawal Reviewed-by: Alex Deucher --- sound/soc/dwc/dwc-i2s.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index e27e21f..65112b9 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -491,6 +491,10 @@ static int dw_configure_dai(struct dw_i2s_dev *dev, dev->quirks & DW_I2S_QUIRK_COMP_PARAM1) comp1 = comp1 & ~BIT(5); + if (dev->capability & DWC_I2S_PLAY && + dev->quirks & DW_I2S_QUIRK_COMP_PARAM1) + comp1 = comp1 & ~BIT(6); + if (COMP1_TX_ENABLED(comp1)) { dev_dbg(dev->dev, " designware: play supported\n"); idx = COMP1_TX_WORDSIZE_0(comp1);