From patchwork Mon Mar 19 08:26:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10291871 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 EBABB60349 for ; Mon, 19 Mar 2018 08:42:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCCFC291C1 for ; Mon, 19 Mar 2018 08:42:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D16A1291C9; Mon, 19 Mar 2018 08:42:30 +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 AB851291C1 for ; Mon, 19 Mar 2018 08:42:28 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 95BE22672C0; Mon, 19 Mar 2018 09:42:26 +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 0414D2673ED; Mon, 19 Mar 2018 09:42:24 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0088.outbound.protection.outlook.com [104.47.36.88]) by alsa0.perex.cz (Postfix) with ESMTP id 127602672C0 for ; Mon, 19 Mar 2018 09:42:20 +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=lvAr0fV0p2VRJS260hTwX2YLOeEIGbu/VSKzlsPvo8ZqrjDywiqVn6cnE4Qq9ZrbnXrlKIAurcP6jluNDrvUWmyJXEIub3JrCf/ChmAyaFr2/OciUunfuXwXCU18R25Z5cvlveqlryjH1yJ8qenXxSjfurvL5M8G55YCx/cX1y8= 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 BN6PR1201MB0177.namprd12.prod.outlook.com (10.174.115.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.14; Mon, 19 Mar 2018 08:42:16 +0000 From: Akshu Agrawal To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Mon, 19 Mar 2018 13:56:37 +0530 Message-Id: <1521447999-24120-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: PN1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM (10.174.144.157) To BN6PR1201MB0177.namprd12.prod.outlook.com (10.174.115.9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4704ab28-ec12-4f2b-749b-08d58d755292 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN6PR1201MB0177; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0177; 3:1mkAciZ7I5h0qGsVVS+cMa9srjsJPhHnHhH5JBuiJOBhzMpbbetyibgy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SdYSLElwirTa2BNX8BgVT2rGC0IDnaGCA1ZI9bA4z8BiYYGC4UWKedt+s/jLtqqzOkLqRPorNtbEy6ejHl2bT3rcgRdWqC9i05s6Y1ElGaEDNgU6pUEGfsxPCs+wQ52VYZhR82+QS+/n4r+05dyNFDkz7r44LDLyn4qxdIyLL8p/bGlbokuiB8XxCJquijNcYm6PliMTJITWpXIjuGvgLd9xLcWaY1XhVFO1t7us0IZnDC+L5Tqc9IV0NLGCMPBZADyEoaM36ZrYM9AnMM9vgfYUcsaFTHE5WTQETtuaBu0; 4:OSDdrXfV4CZ/FDLOmwPsBoY5jzxr3R2kuyHT7r/Efo6XXVAYvbAHZc/qlH89s0mg3giPz1ls3fbflRPHVmQc8p9F7Orf88djpX4jsMWxXaP5ET13TFGblmlsUU7E2Tg9z4biTfpp2JlwKsv9Gy5QDwnVdrxgB390Gsnra9v3QR5XuQyLeqXOC6tqLf6R8eTljKZVogmV3kHZBZNIZXsjDpZ7Zes5jn8BXeTsPa0tQ5qEr5cNd5FlLB9O2u7OhXZkFnsj0qzFYXqYmKgy3uqjCcVuLtOlS3jxLp0Sexeeek7+E6s83EW6/oHorvJlOJ2H 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)(3231221)(944501244)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR1201MB0177; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB0177; X-Forefront-PRVS: 06167FAD59 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(396003)(39860400002)(346002)(376002)(199004)(189003)(36756003)(66066001)(6666003)(25786009)(47776003)(305945005)(8676002)(6486002)(68736007)(316002)(7736002)(16586007)(50466002)(48376002)(53416004)(39060400002)(97736004)(575784001)(52116002)(86362001)(53936002)(7696005)(4326008)(72206003)(105586002)(478600001)(5660300001)(106356001)(2906002)(26005)(386003)(3846002)(50226002)(81156014)(6116002)(8936002)(186003)(81166006)(51416003)(16526019); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0177; 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; BN6PR1201MB0177; 23:mwmM9+Vpb1xfcf+eZKNsfLmb+wSUeL4Xdb+ozI5?= =?us-ascii?Q?u/LEAsYSY0hnYz3tbvyddQV/l+kJ4Ph35ic6T0qbQaapobFdSmQ0SX2pu8YJ?= =?us-ascii?Q?gAuWPfcgRRnQX3b25aMIdbb1qxtd+VL+VNjwtwDym/JteyEd3oiiqvJJrVUj?= =?us-ascii?Q?vFSxseUX2TvXuaoOFx3SCAKl8MiMVevhGT1IBDRhZuXZY7ieY8w7mlB5ASmv?= =?us-ascii?Q?EssvSZh2vM06CQnZXw77ZrfcojozpxDoS/VoPHjUpDUuGenkNcq+AdFWC8dM?= =?us-ascii?Q?Vc3c1B0De71u93jXSh9AEVrq8twqdnRMQwZJUO/6m7/3ONhpjj03h4HmDCIn?= =?us-ascii?Q?i6QUWxeefK+R/feY7fGem5T8btsz74HagD+B81aoS86zELsc5iEX1BX0Ua36?= =?us-ascii?Q?/ty98bTHj/+1HCFi3njqFKzKLyObiF7PS5p53Xt8/DzW8M7wtt7Dclfle3l+?= =?us-ascii?Q?juCMXTCr9y5rBG7g0IK82qeh+p0odtIJt/NlNHqshvMFgJ1+437jhcMz1DCe?= =?us-ascii?Q?IHBtAy4NZvErz9s5YxY4dvk+VZXMNNq3VI7vxGvXaXAuCQU70WF1P5LBFepA?= =?us-ascii?Q?FtZWOhqcv2sA/TaRnIHEX180RDz8YGsdENBgF2JJbDevkdueTecUzHGFfHkQ?= =?us-ascii?Q?CdxFFUVvhXeYN4Kq4ZM/HjXsI08ej2Sg7X3i4Er5AmyQoHvlooYjpwwm0GOE?= =?us-ascii?Q?3RQWaR7Riizc0Jr31HDy5XfCp+oqCtnQmfj4j+t9+4ek6pzIuHtLPikxNTY7?= =?us-ascii?Q?KdLNlylQ68OaZ7nTe0xqk9NwICAJo4PUS9NsR3cbUi61BhGejcf1NkVB0bh4?= =?us-ascii?Q?9EmPhnNWx19xRXuPznoBqtV33kgwUzMOevUOJkMQM/COX0YHRYCYYOcZGQcm?= =?us-ascii?Q?KG4vGh93tCs+LRQbTo3+N5Gj/rOR0aVb5YdpT+zMNH2fhuWgcsjx+XbJ8nrg?= =?us-ascii?Q?wSgOd0y/wReJCSA+8dEvVI9ONmUtRnJcWV88V7fM9odStTwv1eqiTKJUNpeS?= =?us-ascii?Q?MYhWG8gm7IbUmJrVd5M+mqN7tiTss1jePr9zO1twBOq7vzSlcB2PwPm68aV+?= =?us-ascii?Q?EU1xg3OgC+xHG/DI6L7hCyQH7Vb/rSdzsxPdp1tj7AHnMucsWVLCe1gqpDaE?= =?us-ascii?Q?0F5iNHmEOblY=3D?= X-Microsoft-Antispam-Message-Info: ODTo5Z/aGVetovLxJu2wWIoCk+4lHU7Ex9tXPyOkb3wQCDE6DD3uEccY8lnEySVLtW2omNG9YwQLvmtagUlOEsrLYV3ndIOU3jw8z29+OBz5aX8EViKU6XPU/Xf6q+z0z2SqAxLVPb2N78uk9voQeEeJn7HAVE7n3HLnJa01F90qB4BdYE05Ejrd9xowqdtI X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0177; 6:5GtphvPdNxGIk0ows5GR60yXZ7kqvnkuwnohgr0jm73cIMVaei2F3Moj51L7i7FwxmoX9rePHsmRbmef6DZ82GnAUF2LPsiPPAxrds2Dj0jbWJIYg6P3ElrCie51Rk9aPQOtKOXdaSPdqOJXp5R9h2L4wuI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BdDLSLaaUdHo X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2018 08:42:16.0097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4704ab28-ec12-4f2b-749b-08d58d755292 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0177 Cc: tiwai@suse.de, lgirdwood@gmail.com, djkurtz@chromium.org, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH v2 1/3] 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" 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 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 arecord -D hw:0,0 -f dat -d 5 -vv Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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, },