From patchwork Mon Mar 12 09:11:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10275709 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 C3B9460467 for ; Mon, 12 Mar 2018 09:26:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C696228B10 for ; Mon, 12 Mar 2018 09:26:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBA7C28CB5; Mon, 12 Mar 2018 09:26:51 +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 EE1A528B10 for ; Mon, 12 Mar 2018 09:26:49 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D7E61267332; Mon, 12 Mar 2018 10:26:47 +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 C833526767C; Mon, 12 Mar 2018 10:26:44 +0100 (CET) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0042.outbound.protection.outlook.com [104.47.37.42]) by alsa0.perex.cz (Postfix) with ESMTP id A04322672BA for ; Mon, 12 Mar 2018 10:26:40 +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=YVQb98lAN9hfomgSNUO7ANDRAzk8uL/QNgVh11Vz6ko=; b=QQ4eYmtEZ3EZVhqZ+47TfH5EO0rDwYRoHMWKiiinmshhBhgJDGMTz/MBCf/uswzYnHPaDaIi3SbHwLkdj63VWTtRGtgiU/Y6F8wbzVmFKbDneRrzya5999W6fuyM+iaoMN6ZYtEthZWezwYFJegOQKy3eH+xi3GA08bHyuKoIuE= 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 BN6PR1201MB0180.namprd12.prod.outlook.com (10.174.115.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Mon, 12 Mar 2018 09:26:36 +0000 From: Akshu Agrawal To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Mon, 12 Mar 2018 14:41:22 +0530 Message-Id: <1520845883-24062-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: MA1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (10.174.56.16) To BN6PR1201MB0180.namprd12.prod.outlook.com (10.174.115.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f5e2a15d-402e-451b-ae2b-08d587fb5b79 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN6PR1201MB0180; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0180; 3:S1hZ+awnQenNi7g9ghVxBpSjwKkkjqmn4D8IlIah/D2l9C/OrQLfWSyy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Esx3b3ajum/msh/QYn9zSkLU+oSeLhO+KJ6jBLV4H6JPS/0FuHNyBVnDGWaizwR+mnlz8Ntdz6wWzQ72XMhBF8tb7IQqRRPiuP8TBeH3zh5It0I32isRENsh93Rihc/GB9+504QwXoG6Ch3dP4TOlqyJbA4xffcIporRW/aTZw8eFrVvm0fKRKb6NJu/INbPOgrzlDZdEkyV73SuUeYuilL+vFEI7ZxvCDgcGBrwQ7wy3FzFL2cmZ2FlqiIX/XX3Q3hJptQYhrwbh3k8Bm7lWIgox; 4:ewEjPvBHNPhuzyib42lMATMTnqOrtfFPm1FcIFJx0AmTOQfV+VdObolHLQ59rxH2kWY3YUrnbVA42J4ipDel0DEuUcLrpf5yyyTls8zmHcda0cEiqa89hHLkUndXUfKgqkaeqrCkBC0o6oXwJb5cdc3aeK4x7805q2cSBVgMJRDP8pnJ/vY07xwYl8YjzFXKydXluL3w024AXvNkIQQ6jiv78jHGEVcfhIujNkHkvOy1a2QgYxlfYMvpFv96VrHV/27zOkcQHleQe/85UzZDy0q7GZ1Zu+y40EYcCICNql5WoBDgueTZIlpr4tI1XyT1 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)(93001095)(10201501046)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR1201MB0180; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB0180; X-Forefront-PRVS: 06098A2863 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(376002)(366004)(346002)(396003)(199004)(189003)(7696005)(36756003)(6666003)(386003)(8936002)(305945005)(186003)(16586007)(8676002)(26005)(316002)(81156014)(81166006)(7736002)(6116002)(51416003)(48376002)(50226002)(97736004)(16526019)(105586002)(39060400002)(52116002)(68736007)(72206003)(86362001)(575784001)(53416004)(478600001)(53936002)(106356001)(3846002)(6486002)(25786009)(47776003)(66066001)(50466002)(5660300001)(4326008)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0180; 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; BN6PR1201MB0180; 23:xAPPd33gxNjC8uLzsNUFZ0SnmCQBIfyuXd9sOhW?= =?us-ascii?Q?/5dM7AX9I6qTLJ5GlX9JKbeLHuBgYSjgCWSkNFDfGR8Ms+sL2piomr6VBgFS?= =?us-ascii?Q?57YGQiUuEleaFDhR1ihoydroml5xNYpilniTQlFV+QSf+dJMlVcjepV2Hgdf?= =?us-ascii?Q?NgPzhfZ8jvr6oxQz96nUDtTlPV/5kBIbakXU8jAmH1GnPx7X86z6PL0at0hi?= =?us-ascii?Q?TutUbs9d1A2RPCr+Iw/OluncljCa3PTC9HbINtKJq76BlhVKuTNQO7khWXP1?= =?us-ascii?Q?GwJfL3FOgW0x1u7vSTzyAWpTG1fYP/rCuGTtOGc5kmPNgHT8SwLm2s2kNypx?= =?us-ascii?Q?0CIRISzTuAOqT6Xc1vu23OgV/iVPWhfw1AbzrTveOs9J6gYdXdG0konkfpjs?= =?us-ascii?Q?Xqwa3pyDZn9gdu3itZb4HQdvbBEDvIeKH9JIgBWGtEjcJOtnZuLdeR2Y4dQq?= =?us-ascii?Q?RHrznPpek2b3b/dafHFk6TAs6jGjmFF4xS6o3IHAx7Eunt8MXL14fJicN8ld?= =?us-ascii?Q?4l6mH+D6TkPehoTmvxdG92dJE4E5ljLQORdZfG+Z0pyZEJ66RWoGtch9MfdH?= =?us-ascii?Q?70rIP4QkR7jmR1iIp6hb7AfQ/i/eczlVu9wInctecd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BRkfj08o X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 09:26:36.6066 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5e2a15d-402e-451b-ae2b-08d587fb5b79 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0180 Cc: tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH 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" 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. TEST=Build, apply grunt_mixer_settings: iotools mmio_write32 0xfed80e40 0x040c40c0 iotools mmio_write32 0xfed80e28 0x10000 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, },