From patchwork Mon Mar 19 05:37:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10291665 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 BCCE2602C2 for ; Mon, 19 Mar 2018 05:53:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8F4229121 for ; Mon, 19 Mar 2018 05:53:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A96429125; Mon, 19 Mar 2018 05:53:38 +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 67AF129121 for ; Mon, 19 Mar 2018 05:53:36 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 136762672BA; Mon, 19 Mar 2018 06:53:33 +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 1091626731A; Mon, 19 Mar 2018 06:53:31 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0064.outbound.protection.outlook.com [104.47.34.64]) by alsa0.perex.cz (Postfix) with ESMTP id 122F2267294 for ; Mon, 19 Mar 2018 06:53:26 +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=KzoMl1xjejImzNzI6YT7XG2DUk//scCuOPtqWlH2s1rZns7NiIIpoNCJWVMAxQgnUQPCIIurf+byA0JU/q98Q4AX/SKbo2XQ1ARmMeWgyXLOJ7j2D8cPU+Sc3YhQ72K/1su+nMSrV8rpDODTc7Wh18QyLgxYZDOERiiZ3PZtP3s= 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 DM5PR1201MB0185.namprd12.prod.outlook.com (2603:10b6:4:56::9) 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 05:53:21 +0000 From: Akshu Agrawal To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Mon, 19 Mar 2018 11:07:41 +0530 Message-Id: <1521437863-12389-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: MAXPR0101CA0031.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::17) To DM5PR1201MB0185.namprd12.prod.outlook.com (2603:10b6:4:56::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8470785f-11c8-4919-6bfe-08d58d5dba0f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR1201MB0185; X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0185; 3:82WBOrpvhhq5mUysKi8JlzE9G0Ku+jLr3NAh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dYdtzVDlQmZ9BKx33jbFNfFSjJnPagZy3b3udzBOTQYaJMPha3BWWdvFmPeVdQRicgI2wsv5PRsxtW7VCWo6uMp3Xt7u80oZ0G+Gzy91v0IPhZoklLTtgeX9OlUwCcP7gr+tJyZhEa31r7/ifYLn53YsOhEMLLw8JeFIWe5kMZiQj/Sp4UByHsjRzC9xLEfVTy+OMQeLjR+nYc/AQxf/swQCnTuN8+DZXwrHNVTLlovMnQGL4jZWBegOwRTj+S1euNojyrC4uM0Dw/w/zkVTgxnW47RvBtJq4LgknFUOGl76pEGWAT; 4:mmC4NHhmJw1oevA9gB+VRL2/MrVsycUF8fVsvf7hkFacnCt4drOn6S4rodBX8cRbbDaF9odRjqxCQqP2F4eTptTKKZNuq3d9OmzkORAtfukSAk3grRBMmgKnXooq72SyRKJGkUdPHvH+ql+ubL76Q4DTnb++oeqTk2fN092Gy5OtrzbyKPEab/OJ/NKqz50JH/PNlDwSJdCMPQl5IG7IxVY5dtvPU8aByV99HYp+gsCLg2snUObVVUAVHP+3m5f/d21K587/uok0+3+BRYq7IrIXehqtTTiU1BlTWErAYVG44lUPwubCaTqLM0W+Dt5L 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)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:DM5PR1201MB0185; BCL:0; PCL:0; RULEID:; SRVR:DM5PR1201MB0185; X-Forefront-PRVS: 06167FAD59 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(376002)(39380400002)(346002)(396003)(189003)(199004)(66066001)(47776003)(53416004)(8676002)(81156014)(6666003)(81166006)(68736007)(97736004)(53936002)(106356001)(48376002)(50466002)(16526019)(26005)(316002)(305945005)(16586007)(39060400002)(4326008)(478600001)(5660300001)(186003)(52116002)(7696005)(51416003)(36756003)(7736002)(72206003)(386003)(50226002)(6116002)(575784001)(86362001)(2906002)(25786009)(8936002)(3846002)(6486002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB0185; 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; DM5PR1201MB0185; 23:0BBK4mDdCiBrL80Ex6jOB1M6w9T9lErCUIJVFOk?= =?us-ascii?Q?ue22hFcKwU2pjsPQzcIQ21Vv3qDm1Cb6AHIrazLg6ElJt9HJ1s/tuiUF7/rq?= =?us-ascii?Q?KTKpJOBojvFSlbHB5QuBwD4Req/znT5owK945JyJMY7mjPaZoJfpgZD3kXYC?= =?us-ascii?Q?jdulAb+BhFKBGPR+kpEsv4UUg3HXhXiTC+4J/8kwIxvNlqpsovdvjcEUQMWW?= =?us-ascii?Q?nK2o8X+D6nOOAB7H1NqngJnExh63A4n3g3PQ/EloVAm/2JDBrNBLxxnkMDE+?= =?us-ascii?Q?Q7jJae/lrNHn7dRnUUbXWjAYo3LM1TFSewzLlN4Wk4bCKo4Y0uHk7+2PNkz9?= =?us-ascii?Q?fH4fZAvr7OlHSXvd8U2N0Z3vACgt1oTnWtYemVh+wey7uzbM1aRiGFg8bxk/?= =?us-ascii?Q?DDvs8HBSHf1Bs/9epT5o28DLmLyAAN+zzq0RB8z0N3f8YULNGOH3vcSWcjuU?= =?us-ascii?Q?zk+qRfbs5fNffeU6bn3TVkDDStSHUykmfZUDX67Q694Ule9rxdMNE0zolso0?= =?us-ascii?Q?B8VDJ8TzwtMJNhExmv5ktWNO+66fSYndgUNQFlQ0aXa3hwnyYczGGh1rIhoX?= =?us-ascii?Q?0fK1M8/O6CFBHsWIO7yXqSM3GLEl8nJBQNANGjTdXm4IdHJwjpYXdETlA294?= =?us-ascii?Q?ZfNc0I9pfQYsadiPnCgNbSqymWc0PJtSjWTjvOsXVypHkrW1YQ0MU+65tmJF?= =?us-ascii?Q?UtbtQvdA2hg4vsEOXkUJwqqjo0LTvLMC6mvbSnGz9dsF/NtuEL7q8MkqxEex?= =?us-ascii?Q?a22zURJYLOpLHNZ9R+RI9HZyBUbxmtBAme4dhOQlJqugRdRRePj/vDdM499F?= =?us-ascii?Q?J+snAdmC6byttIGQEmguf+dgNh+W/zI11ImAnRMs13EwKmj0vNrfckM5gbzu?= =?us-ascii?Q?FZEu6OADrW+2Fbod6nKqBqlJYco4KNVU/r4FcsAQ04sZ+56CPacjG8kpGIBp?= =?us-ascii?Q?IU3OBGJ+MrA4weg2/SklNlQZL4fukmwXdJ8EDoIzS7KUaBqFfeN8vAxVsBu3?= =?us-ascii?Q?Yq9tRmNiL/LvFC6RHSqmRTAs2ASoa2XqC5LgVKJa4PMsc4I8prjT1la0fvhZ?= =?us-ascii?Q?QQkV5jsHdcQA9d4YRiy2QacvZOlmTxsRMwWmhkbTJoWcnW5wxfUGAOhofcmo?= =?us-ascii?Q?DQ7i4PzmRDA0=3D?= X-Microsoft-Antispam-Message-Info: zq8gb4Ami4WSXiYsQTPtRkPet9NKXgroz3E+V+tybVRlVltLEf8I7f0T7llqDmoylBZFXe2SHdXTfzdikwl9Qfv2GGpBZNGFul0Us1thi4I3E3HvUqhjkGEGhLc4leo8n7CcUJ4N7o5M1LQGqp3VjAZFG7qwS+NXjkoMRmVEfzD3eckmt9Iz99907odDWdmw X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0185; 6:ZGOdw6bAvN2sg/wWolY+slgg3lQ/Y0WVx/3NNM/hzM3DoAgUT6wpF9eHapPjbtxl+GgUy0Sl0h4L8sAOoBLrSlc99mL5jualXPq2DGPI7mNcaonGjAdwZ7OGs/sdjuR8B5LZ1iyli5nhSYYyv0peKVL8P6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Bo6prwXWGYDE5SH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2018 05:53:21.4152 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8470785f-11c8-4919-6bfe-08d58d5dba0f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0185 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, },