Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3442496imm; Sun, 10 Jun 2018 16:53:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKBVvGdVBF2EysuKWLUzRGSf2g7nas7Fyp0Q3fGy7inq5ukaVnfmAXaSQlNu1AZrraERjby X-Received: by 2002:a65:644f:: with SMTP id s15-v6mr12816412pgv.228.1528674824238; Sun, 10 Jun 2018 16:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528674824; cv=none; d=google.com; s=arc-20160816; b=LWsdnl2iwx2DcbxRAHi3t/EGaEeUD7dJNk+fLKa88yLH9I6tYLQ9yX8BLiGYzS0gcs jpLYc1blMF7cLWVIXudycaARuZurPUQ5Z1cbrAEbVbzVIboKVQgyFmGdZCVCgQMS5F9Z hSSMlgGliK0NSP5ufx32bo7R/RX8u2iiIcz9xnDyPFE9iUBKuivIBpHNrtEDmbEQ4pnU XutHhgggYy3QCwgnwwyCL1KkjJTVWdJTd4nwN5ka6HdNWLx3Y1AfSBdGGvN0iUXZ5qQj 9YIlOarhoQg2S33G4cc3awuOdPEx3PcK2WlaqKp3R8qoM4R02K83fyEEtIB/PgJqztan pxuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:date:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:dkim-signature :arc-authentication-results; bh=SqaDKNpuSJBtZYT4xTMm12dqUVDUGlz4rU1X9GtmIIM=; b=RI6RPgfGmzWiVK0E9SZZqGYa6KJMLd24mPblA9Yp9ylRT2G9Aq2GVQceBcu9eo96ZN P9HOJZGyrSHKK/jyYMU5H9eeuC9qksVyjBdpxRmt+cf01tXkDvbYoLJc13oiO04LScbf HyD3ya3/7JoFsq+8JzEVo6LuwAnNXrc9uteP7Wo/IbgUklGrndPl+bL6zxM0se+1o2SD bMEPCVZ/SGtLk8psPXosckSKRIFt90eNjpmf0tqt31bbdwF01sDnTgTy0mJcJiej4ggI HBuKRgOu3LBryHtUo+U1S8/PDBJ4bVILauU55EMoziCveQYFl7MR53P8y3JYcx/xD+vW 7nGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=eBZKuSAc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si59892228plt.421.2018.06.10.16.53.29; Sun, 10 Jun 2018 16:53:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=eBZKuSAc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753671AbeFJXxH (ORCPT + 99 others); Sun, 10 Jun 2018 19:53:07 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:46508 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753531AbeFJXxF (ORCPT ); Sun, 10 Jun 2018 19:53:05 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 11 Jun 2018 08:53:03 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 1B8374773F; Mon, 11 Jun 2018 08:53:03 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,499,1520866800"; d="scan'208";a="283605896" Received: from mail-sg2apc01lp0244.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.244]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2018 08:53:01 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SqaDKNpuSJBtZYT4xTMm12dqUVDUGlz4rU1X9GtmIIM=; b=eBZKuSAcLZlC7whOm72lXATPXbhoQ/P+FKNmoUS97/C1s5xUnDe3p41PwjlxPI5e4d/N5PnGU45FnRUSWTjlD0kp261DJpSYG26eW2YVx63jqouYLmZ3yjt1ZCZL0FPDpoKd9HVX5V3h8F/moc4HePW5zJADTjrxHt2DCvAn884= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by TY2PR01MB2076.jpnprd01.prod.outlook.com (2603:1096:404:e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Sun, 10 Jun 2018 23:52:59 +0000 Message-ID: <87h8makxt7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Katsuhiro Suzuki Cc: Mark Brown , , Masami Hiramatsu , Jassi Brar , , Subject: Re: [PATCH] ASoC: audio-graph-card: add hp and mic detect gpios same as simple-card In-Reply-To: <20180608080843.11097-1-suzuki.katsuhiro@socionext.com> References: <20180608080843.11097-1-suzuki.katsuhiro@socionext.com> User-Agent: Wanderlust/2.15.9 Emacs/25.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Date: Sun, 10 Jun 2018 23:52:59 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY1PR01CA0170.jpnprd01.prod.outlook.com (2603:1096:402::22) To TY2PR01MB2076.jpnprd01.prod.outlook.com (2603:1096:404:e::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:TY2PR01MB2076; X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2076;3:FIore0RjB43sUDuMw6mXVlt2Fu9F6f65fohqXZLYp92a4A+0ZkD9PmkVfal+21Yj0GxOAy8bB3SsP7aBtDDIMX2XfEhDZPO2arPJtJKq4WY7l+qhhD2nWjzPkOWrYMyQLBt4bLzCESBguMlwz3/f3Y53HBT0FfRa/GgZxqhWRSmBsCNFOk3Qr+ep4d1NRzknZ31iTwmW7eInseodqx+voQvZ8PVqcK6MILL+/X2HwFlnfaAue3Ry0Fx9OaWlxRlq;25:eoo0jP7zXr8nCLedcqJqbH1LWnI9Ky1nKbSndVaILG6c/EcbPWwWIun8M/2Y6TC71FRfozevemyGj88U2aXCJgoF23KjMMkstNNfzQ1h+6Z9KCCPNJGV2HCYLyJIR4pv0P04KSW05E4gk1wl3amYzBeq7JnHzGgA953ebrr5zQB5bF6zyAe/KgnjGYabo+3ZooFUgV4VOVTls1jCT+pPe4JXHeQ4Lszo6dIYBT4XXyIIoRCUUwHw8bGf50wcoVUNn2qGQ9XMgiv7/2TuPKBvF1WMkgLMVlG/Cy7LKHVJz093Dt4FvYSQT8wnSQFWI//MkLBDKtfZkkBYD3UZPe2opQ==;31:bguaeo/e8re2pGw2c326g7gQais92R6qJyC5LpZioSJ+MmqdTAKmNkgWISMGlvoXs6Ril0M3yrRA6VWTeDu4cGWQa9eKhAnh0zi2ynfbD2AwU2iDBjHuFOIYshGFpseIYhs+7P5ND4B8BUtIaPLf3FlJyGe47AbZKqAcmcziduw7aeCPpQMV8zKGAkJDVsX1kc064u+DTHF1yOOOQSARnwk4Zfdu55BuvIXN79pv2HI= X-MS-TrafficTypeDiagnostic: TY2PR01MB2076: X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2076;20:3PmQNY8lmvr9IU1xI4ijONSrCXQEhq/pxtOmBl9xcO9GlB65I/IOA1du60nDgIz9FB/5MB14YTC2wdtb32ZbKc5+yNfGfJY/9DwuF4r8JNCMhpvLiVU1s4j5LnXze2KqkocYj4b9WFMmdg5pN6pcjNvCvBa9cPh5y1AXQQXHSXbsIl6Bjd3jVrNuKpLhlEErL6JoWI5EspGRNWp0T5/quVeBBeznkGg/lCZbAeSJQVWV1K0B5vIwKFg/Nb+GtSwTvhAM7g8ie5bj+V7UMZQvJuPDVYv9Jf3JE7E5C6SSYSgPXDn1yFEDCcl4Dsdm8FVoIfaSpRpoYhdlQ/u5lGRrbI8PJKrcXAG1b9/KcuIPu1ZO3l9/mXXwblWcj1ri3j3qiVaV87vH//DIm4ftII93oZE2EcF+zDpCpXaEO2mbcIHBEc50kL73QQC7qVFCuvbWAZTGKWXx55G73qPjXQ3fKQX7vmVIN2vmL7Ypko/nbvUyk4G36sXdLUBjBsKO1h0a;4:PK8i4tSVltebh20BQkaI8sZJWHFQjBVvEO/cvvqDBSrLJSANSAjJdqxPp+hVEbMuBa1PiQjk62RTDZ5Yjcuu9yk0IfqNPzkcXJJTa32WL+aK1bwjC4riblfk3ToWzY0P4dWMToOxboqc05SHyXkyeStcHUo/YIiOysZxukbzbnSbzq/iLcQvJ3vy4tGR19rF8MO5qTjciXc4e0Hd6A4WRosQf9ZRG6pi1lIpd+L1h3nv+1ZyVm3S9/GMXQGvCguKFFHItW3sXGNnC0KJzx4mbw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:TY2PR01MB2076;BCL:0;PCL:0;RULEID:;SRVR:TY2PR01MB2076; X-Forefront-PRVS: 0699FCD394 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(39850400004)(366004)(396003)(346002)(199004)(189003)(478600001)(106356001)(105586002)(53416004)(6916009)(305945005)(5660300001)(7736002)(54906003)(50466002)(23726003)(3846002)(6116002)(86362001)(316002)(16586007)(7696005)(11346002)(52116002)(76176011)(2906002)(68736007)(58126008)(446003)(345774005)(476003)(956004)(66066001)(229853002)(186003)(26005)(53936002)(16526019)(2616005)(36756003)(8936002)(25786009)(81166006)(81156014)(97736004)(8676002)(6246003)(6486002)(69596002)(4326008)(386003)(47776003)(486006)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:TY2PR01MB2076;H:morimoto-PC.renesas.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;TY2PR01MB2076;23:sCfXU0bZ9O7DvWGvfnEzUs3hlwgzuVJFqRLn8tDeN?= =?us-ascii?Q?JmzIcFUbeXPy+4Tv66y1g0REgvpi3e8LuFJZZA/4KF+ogtANpQUCznJ35B4g?= =?us-ascii?Q?VLUKMj1r6DwQ/CGyD65c1HpVJD++pIjZTC430BhPU9cIxunipwMhC9uJUKNs?= =?us-ascii?Q?u72DS0flILjY478Xl/x7BkhPcvaE/je45VxryZeD3ZdsE/njLjs+TmT0qZNA?= =?us-ascii?Q?WZQPoN4BmvKJvhymikSgGbuf13TKH0gTVysjG8F4PJDzxbgnOuy9lQflu83S?= =?us-ascii?Q?hPGBsIyrIzBqRarjRetQFRHTHxJZ3271HtzzsOyver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QjgGcAQ3e42nnf1GGHjdoE0hI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;TY2PR01MB2076;7:O/K4nASo5BW7fJHbk2DlDhnQmIe1Vml4CtXwS7yI/spQls13LCpfUVMDUhpmFA8mPFgmePE6E1/R962nxd1ggK1v1Y5GWXD2hMywfo+MJeWX5w4I2AfY3V2QsmGUj1dHDd8hjmAV2bxD7EpFmgAd5Itc22uQWbX+8YIE+Hcev89caxYRUi68UtumMvBX7CxFjjZxdmqtwRoj8ZmDmp7iZvzmV6Gcr52QqqSp2i92Z77cljCwGrlhJkSIs5kPEFDK;20:kVEoJhS3t7E0J3pjQHkfAVzwNQVwURJ1N6neu0o3jA3YzNj+ylk+QZUupgYm757KGMlj2XZiju0N5kzT1hLdbtCVyCSzQdU9IJ8+BijHjn/JP/mjrwoF3mpGGPmk55imHCkp02qU7a8BnR9+hcAMo6/ADECpBlyyvX2z3ZMRnN4= X-MS-Office365-Filtering-Correlation-Id: 966fb8c3-6e4f-424e-dd5b-08d5cf2d4be4 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2018 23:52:59.5623 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 966fb8c3-6e4f-424e-dd5b-08d5cf2d4be4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR01MB2076 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Katsuhiro-san Thank you for your patch > This patch adds headphone and microphone jack detection gpios as same > as simple-card driver. This feature move into simple-card-utils from > simple-card to avoid the duplicating code. > > Signed-off-by: Katsuhiro Suzuki > --- I think it can be 2 patches ? 1. move function from simple-card to simple-card-utils 2. use it from audio-graph-card > +static int asoc_graph_soc_card_probe(struct snd_soc_card *card) > +{ > + struct graph_card_data *priv = snd_soc_card_get_drvdata(card); > + int ret; > + > + ret = asoc_simple_card_init_hp(card, &priv->hp_jack, NULL); > + if (ret < 0) > + return ret; > + > + ret = asoc_simple_card_init_mic(card, &priv->mic_jack, NULL); > + if (ret < 0) > + return ret; > + > + return 0; > +} > + > static int asoc_graph_card_probe(struct platform_device *pdev) > { > struct graph_card_data *priv; > @@ -319,6 +336,7 @@ static int asoc_graph_card_probe(struct platform_device *pdev) > card->num_links = num; > card->dapm_widgets = asoc_graph_card_dapm_widgets; > card->num_dapm_widgets = ARRAY_SIZE(asoc_graph_card_dapm_widgets); > + card->probe = asoc_graph_soc_card_probe; Current simple-card is calling init_hp/init_mic from asoc_simple_card_dai_init(), and audio-graph-card has asoc_graph_card_dai_init(). simple/audio card are doing samethings in different style. Thus, I want to synchronized whole simple/audio card. Best regards --- Kuninori Morimoto