Message ID | 1520921250-30124-1-git-send-email-akshu.agrawal@amd.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 E5A7D603B5 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 13 Mar 2018 06:23:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0155128AA5 for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 13 Mar 2018 06:23:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9F6828B00; Tue, 13 Mar 2018 06:23:04 +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 C7C3828ABC for <patchwork-alsa-devel@patchwork.kernel.org>; Tue, 13 Mar 2018 06:23:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 71DF02670A1; Tue, 13 Mar 2018 07:23:00 +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 388BB2670F9; Tue, 13 Mar 2018 07:22:58 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0073.outbound.protection.outlook.com [104.47.34.73]) by alsa0.perex.cz (Postfix) with ESMTP id 3DD95266F0F for <alsa-devel@alsa-project.org>; Tue, 13 Mar 2018 07:22:53 +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=0YLbvn2pYWVXITxnuDEG8o0nuDRqQMSFFEmRgH3s4+Y=; b=xMSzusJgKF/PWHtFA3gS2iA/pzZYu79jQfGYFpzjl00bq65UidIiC8vuMa3Z757ymZf9nrLtSFyHUTBIz8OV4qLxe41Rw+KmBFq4TKb/rMz1udaT6W2xly0opxMVWCBPW2ZYUIoQOY+JElHH6bbXrpTdeTwGEP3YNqGFN7QyvWE= 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 MWHPR1201MB0192.namprd12.prod.outlook.com (2603:10b6:301:56::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Tue, 13 Mar 2018 06:22:48 +0000 From: Akshu Agrawal <akshu.agrawal@amd.com> To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Tue, 13 Mar 2018 11:37:29 +0530 Message-Id: <1520921250-30124-1-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To MWHPR1201MB0192.namprd12.prod.outlook.com (2603:10b6:301:56::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 18810340-5514-447d-f22c-08d588aad882 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:MWHPR1201MB0192; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0192; 3:/E7dqAcp0SPfZCdFyuIMh1Ux6HoJLy3O9xYyypMjCWybyPeQmuEDCjs/F8qZLflWQDzUepsl//dRRklgj5GLkCsru0Vmsyy3ZGyk/oTQnuREvHkAsdDpIHkoY1n7MThS9GyBJaQPaPZHUVlymLAsWoFk7AQqLKW550BuLsrfz9By+IXU2dl0I1jvh+HEOKHTAxWuHCn0JqEgY7D38nh/Vxu45dk3Z9EN3cuperhga4dO3Nhqo6QduSqms99D+ZRR; 25:cZnZSi5S8cxtHLe9w4bTrucjl8/Jgfinc7MkF8rFtqFX1jUWezqlzzCETIcNKnsdtGV9zwE55sfSfLKogT8Os3M/ze7/MIJekWB2LqxcvGzqRUGPiT78ofb36Bekmsl073adpMGx72wrsAEmGec9oZqazKWtB2m98gDRpKPdiRB4hmupfD5aYE9IBta6GHFLI/DOkVn3z5+YvrObdBA8xyaf1AANf2LFFefct8byl0/5D8gnuAa8FTLX4mHIkq7IwA1GlzWuy1nm2me1CunVlgG+wWOdmmq58+bFvBEARpuLpeB3YxrxKq7WX/c7/ZmcQyJ6Kn0Xs8Cec477jx8LSw==; 31:+lkLawfHRXTYzdpg68OvsF2gg6Ko5fJFk0hfj+E7HF8RelxI6IX5cIAMrf82pJnJtRtUZMNi/OuFkclkOw7qSkY3UbC/TlnWVLUlFIWd5vJlv4JlnmSF4f66+hct8QSrcLdWjuvulHeVkihKxLEMXGEUdUTtHLlO6l8GfNUDYo0p9dsiERuTihBCZRH31NQBvZDycq5cEZArwhXl5Aa/FQE51u5vtdKZXeRng6dgbfE= X-MS-TrafficTypeDiagnostic: MWHPR1201MB0192: X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0192; 20:3xCxdzZzHuqV/3oRI3D7Nl7J8NBAJm/WnmSh+ztkQZ21F0IyCVOvh19RT4UN7++zgEGHT4x35ZAXgeoKuZuGh3YSI7E4uZ6ccvQktmwPp7SI57bmUdT9lwdtbBe5O4/Q69yPHoXl80o/vPzjyf9B0VsoeMY7ctLTYZZ1ha4ritAQ8F6QuFJJDsCOP9QmTKKIHmebokD/FNk45ULWUWOYHyofEjulsTFBYy0m4wj7x27hNxeTAgfC/DDHuHIAL1/flsWfQabwHYZpheF+NOZPwu4BN+ubm0/NBNGVux+ZW9qVNeLVOr9bDXClX6SEhsScHzYeFFBHjtXrexo4REN5mkTQ9AchDI9QPpiD4PdQVIbrD9xRvN7rOfDwrzHbQOubTFOMHXN41DfQF/VR6YN+DtfnvjIgjuEuo/JpFaDtmNPrGvQ7qqEVlvcrOPls4kQJoAJoUYI9icG/xqpbkPDO4/ngtwKomB+LG5Pv8gZmGvyf5JNH+ialxaGnAofyqmcH; 4:vF36QvxjnBXiNfrEIPCiNY7t8U6equ2Vj5y2zEaGnTdQ1gRdOesuO3rBgNU9wyxBeo3VpeCl3ZGsq1iyJ1XZf49hNt7eBNetM2fH1oELeJG+k/X1OnDoe2h8z8GLrIIgxTKmTxXuBeUaZLwaER2evDu7H4vH9ZxwVoTv9RF2WvZPIlBYSCxAnAOwUIsCBrQASlQUl854hF3XBC0R3780wqwEvA/wQsdaAnLjqVFoeodQkdMe7vgklDcb6EmdAfa3m+6fYb1Bg1maYzqxNAeR3bWrQ+vG0K30ijeGFx85VtqxK2zPHXURq8lPN7+5bDzP X-Microsoft-Antispam-PRVS: <MWHPR1201MB0192F2198E154E962D801EBEF8D20@MWHPR1201MB0192.namprd12.prod.outlook.com> 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)(93001095)(10201501046)(3231221)(944501244)(52105095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:MWHPR1201MB0192; BCL:0; PCL:0; RULEID:; SRVR:MWHPR1201MB0192; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(39380400002)(199004)(189003)(3846002)(8936002)(5660300001)(25786009)(81166006)(81156014)(316002)(8676002)(575784001)(68736007)(86362001)(6116002)(97736004)(106356001)(6486002)(16586007)(305945005)(2906002)(50466002)(386003)(53936002)(51416003)(53416004)(36756003)(39060400002)(105586002)(16526019)(52116002)(7696005)(478600001)(7736002)(186003)(6666003)(72206003)(47776003)(50226002)(66066001)(26005)(48376002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0192; H:akshu-HP-EliteBook-745-G2.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; MWHPR1201MB0192; 23:C74fAGHLO0quol0cfxs/TQGK4varSh+vRsMdrVF?= =?us-ascii?Q?h16vmtvAXQlbV9WVYj1wyajE5O4m+y1kn18XfZYW7vH3JhxDV9s85SovL99i?= =?us-ascii?Q?v9a9qKQcU6w4ZGPF0+1HfG1G/bFoW5UmxkI9YlW1t1YunDpFtXJaMqRLkPFm?= =?us-ascii?Q?lnDnZHJVLsYHbaXVrpjg4T/B8RdfuXPKezjT1MtOILXsushbULge+J88ryjf?= =?us-ascii?Q?2c0YvhlIMk820JcPui1kPAArHV5FImEJ8HYUvnBDE8CXtMbBWJsvS0xJNAZ6?= =?us-ascii?Q?jglHIpP2Rnt64BaXyUjBM7DWoIwlyYnZA/lMt3pxSvcc+YaadthYtWu0GDK8?= =?us-ascii?Q?xN2jXHb4mVayuG2uEumkefgI5XrjSYTOXJljNehJu+1/Mvx9nzVh01kol/Og?= =?us-ascii?Q?wfQxQocI2LhUzAKmfQ6ythp1A5xu7Nw4sJKYPGn/smMK3I+4DEGlfg0gRjOl?= =?us-ascii?Q?QJNz+tiuQNtkzw/vPWnBMlfja73y6ktC30ih04gsredKVSwyKtaPJT6Yu2Lt?= =?us-ascii?Q?59tbuFJiRKqaKIgQwJcq24G4oz1vgT6sWHuVoo5hutMQgEvTMcj7ZnSoOti+?= =?us-ascii?Q?feJClljRc6XbEo1wfPOJfXDoWJbhWEs7g9WzDVodyndrJdrse6VlXIOXqpRW?= =?us-ascii?Q?UQmoArLCLNKP4FaiLfKIg7Pj6btBdx53Z/ALnCxmipYxLVV6WNqH8robjwvp?= =?us-ascii?Q?xc59XeRlj9hYEhodnscJbSDDp8UIan5tXzTRxENqd/O0N2E/5MTw7S8lV7QM?= =?us-ascii?Q?vXEjhJynsn3mfAT5m1EuUz1s1/yBtggDLyS6vF1de/WdMZVg6JljMTgFYAA0?= =?us-ascii?Q?5Kj/FhpY5kDbeLsUcBlLLDA+nsa4y3z6ML7J9Jf32G+k0L90/8fa1qjGckxz?= =?us-ascii?Q?XyPE+JkK0FHUS0QKrw8bQCy2QwDw8+RmM41xM4hBDsWir7pTUDa1bejs7BGx?= =?us-ascii?Q?jBZwkwCR1qrPSu0hkxX3YwCyGwmiEeIe/IFpiXOmNuOuTzY/Agk38jPhUa7Z?= =?us-ascii?Q?NNvEAX8Aa/rSuUym/d6iCnAdZPi/VqyV08ZXsdcPSys0l2F4RNMr3v1VRlox?= =?us-ascii?Q?Nd/+LAd1N7K8Zg+bfn4xPgFcrYm2x0G9L9/Fbx+3MuhJuO1DeGK6VO9sn0HQ?= =?us-ascii?Q?Ty4V3HQZtcYM=3D?= X-Microsoft-Antispam-Message-Info: owKRu3pSUfcL/vfS483TtqRTQTNts5dqoFyj2cKagiPlWzcnouVWvZGhqZM0kPqPk6zsZvI+DA4DUobR1jSVHcg81jkR8MsX4EkUCHytBSPe3VNNRtiMSGT+ccgqDHZpVmC3O+gXnXlw4h5fUV0fYg4+piOIXKccsIjFD7nsdCMNlL6pCwbzd89/g4nwlRkc X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0192; 6:gJ40FG+us7WkWj3wxl8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i5Kx+S51BNQDr3vaAvIoxrmtdWuycPfeJnLyWIWIFkxE2z3wV9uuJZ/2fejtp6sWVU6pOMJ4+8BwEEAyy6thLBvUPG53UmZZIlsJ9uSbMBuv+FXM6J4+eNUdrJA3KXnee8FJ0G2GVC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 06:22:48.3016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 18810340-5514-447d-f22c-08d588aad882 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0192 Cc: tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH v2 1/2] ASoC: AMD: Use single dai for da7219 playback and capture 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://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: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index bbe0f10..d07c2a1 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -124,8 +124,8 @@ static int cz_fe_startup(struct snd_pcm_substream *substream) static struct snd_soc_dai_link cz_dai_7219_98357[] = { { - .name = "amd-da7219-play", - .stream_name = "Playback", + .name = "amd-da7219-play-cap", + .stream_name = "Playback and Capture", .platform_name = "acp_audio_dma.0.auto", .cpu_dai_name = "designware-i2s.3.auto", .codec_dai_name = "da7219-hifi", @@ -134,16 +134,6 @@ static int cz_fe_startup(struct snd_pcm_substream *substream) | SND_SOC_DAIFMT_CBM_CFM, .init = cz_da7219_init, .dpcm_playback = 1, - }, - { - .name = "amd-da7219-cap", - .stream_name = "Capture", - .platform_name = "acp_audio_dma.0.auto", - .cpu_dai_name = "designware-i2s.4.auto", - .codec_dai_name = "da7219-hifi", - .codec_name = "i2c-DLGS7219:00", - .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF - | SND_SOC_DAIFMT_CBM_CFM, .dpcm_capture = 1, .ops = &cz_da7219_cap_ops, },
BT I2S is a bi-directional dai, we will use the same cpu dai for playback and capture. V2: reworded the commit message. TEST=aplay -D hw:0,0 -vv <file> arecord -D hw:0,0 -f dat -d 5 -vv <file> Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)