Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3661729imm; Sun, 10 Jun 2018 22:44:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKzzN97/O52j1lhjrtlsGqSBXUyG+OEy3WfP4x2ubmrCarpfmtr61l2WUVSMhe8Js6POhaW X-Received: by 2002:a17:902:c3:: with SMTP id a61-v6mr17070688pla.149.1528695869296; Sun, 10 Jun 2018 22:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528695869; cv=none; d=google.com; s=arc-20160816; b=quPLHVWRIHh9KEXyx6emxoSNUhHusZlk/3vFZWiTQ1C6uzTonUBHPCjpuRGoF33mU+ YZ8gMcWRf0lxwptaiAW+e/oGDSFy/2dBRxqc89Q6WRHIdDN4ojpIirxKnMxyUdR+t5Ia VXSyP4Z/Tf/RvfFrOD/bHSlx0JVlQwcHOkHYSu/Qnh2K2yJvaD4QeI8GiBgFVc5FtHoA qKDW7d5A7ROKx4hq12ka7LrZffZpFhO5iKZR6TRqWBdE6Orm0vumObqgL1sFfNiaHb4X Bxh6Bxz5ByzKBI2qe8EDYqIpTme71P98JZfQZY96Qtq0kO4eT6khV+5LFiLoCnEv4XRD ES3g== 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=Fj+V7pF7b6FyEciYG2Zkp6FhcAz3RxsZBtc6gx6UaPg=; b=fjCqWo5oQpwaovqL1ud1VyT+l3CVswec06hbB2Fsj/TYD5fPFaGksGjxLYbpDfqzbS CmQt2ukxVeDj8+vqQ027lnwNXQRDqLzGg5XiTbHCDmu+f7twVKILaHpl47sDDwg8cx/x fObaUWbqqyDfgOQXf52xgvyVBvDbYpmkIEQUSnmpiuKkQyxxG+DRa/Xb63ojbvGfQ9IY lJzTQ47+4+oMgE33kYOWs81nV3GIgnb0XMFlmtR2od+nSfmw/cvCcdwJeVze2EMylu68 Sa7X8R7wfRyki9DhrKT0FYov2kpgzGqMvjhr5MoYEoOcwtoVargxh4To+rUtFl/2Pmkq ziyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=MrOTEJh9; 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 r4-v6si6432361pgq.583.2018.06.10.22.44.15; Sun, 10 Jun 2018 22:44:29 -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=MrOTEJh9; 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 S1753988AbeFKFnV (ORCPT + 99 others); Mon, 11 Jun 2018 01:43:21 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:63246 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753797AbeFKFnT (ORCPT ); Mon, 11 Jun 2018 01:43:19 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 11 Jun 2018 14:43:17 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id DCEAD79148; Mon, 11 Jun 2018 14:43:17 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,500,1520866800"; d="scan'208";a="283643234" Received: from mail-ty1jpn01lp0180.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.180]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2018 14:43:17 +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=Fj+V7pF7b6FyEciYG2Zkp6FhcAz3RxsZBtc6gx6UaPg=; b=MrOTEJh9MFLrD1WjpLpSJP2CJIVft5uujP/U6reEfZc+QXlS/61zvvrDd3fh2R8Qqp5oWEKzmH/B4cQ3uY1tDzAo/LCpSTWnCU9X+bFrd56tFwxZXQZ+XapgFREwOtoTq7AgAcZdKnBARfYIaOBA+pfUGoo+H2aaUotSv4y22fQ= 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 TYAPR01MB2079.jpnprd01.prod.outlook.com (2603:1096:404:8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.14; Mon, 11 Jun 2018 05:43:14 +0000 Message-ID: <87sh5t6fwv.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Katsuhiro Suzuki Cc: Mark Brown , , Masami Hiramatsu , Jassi Brar , , Subject: Re: [PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe In-Reply-To: <007401d40146$9ddaaec0$d9900c40$@socionext.com> References: <20180611051559.18082-1-suzuki.katsuhiro@socionext.com> <20180611051559.18082-2-suzuki.katsuhiro@socionext.com> <87tvq96gnm.wl-kuninori.morimoto.gx@renesas.com> <007401d40146$9ddaaec0$d9900c40$@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: Mon, 11 Jun 2018 05:43:14 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY2PR06CA0023.apcprd06.prod.outlook.com (2603:1096:404:42::35) To TYAPR01MB2079.jpnprd01.prod.outlook.com (2603:1096:404:8::11) 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:TYAPR01MB2079; X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2079;3:wxlUbgl6SkvBP/YZfnjj+rySebLxHLFbrbllOnAujpmIYitynuuhuFGICiGspV8M0rJ6ZhTAN3dpFdmI8gzMSsBzkBa60d2/R8UfEyW2SGcipE5nrTg6N19jjQog94t9PeHrmmKMryUFzLCf+tjckvhm8Hmse9tl0LRFgYzxzhOeANukz9W8rLgPygjwqfjIJcW7fCdCVJClq7vdVTcsnsjX8M/jysp0EwgZBEeUyeC1dLn8U0PEwDPKHHQNXEKh;25:jeE6DxfRgTnqavXoc5EZrk+EEBnMwL8yp71NjdCy07IJFS1bUgiZ70iC9zf1h2+VtqYrQI67YkPqGfGng0YkTuTFjxHmKU7j+tbtPNuP5ApH6X3XUi2BuQzw2M9ly1Dp1e7wAVCN9ho9JX3qkMzC8sr2RnL4nid2hahK1tlB2lhSZVKrUcevpjJBA6WyE7d0500z3YOLUlem5p2eo1DAqzcIs1ZSjj1KwZwAKf6qHRbz5FSc1ZNVRNuHkHmUbyGhchCbUEXBUWcMsESX1O5/3Yd6yHILcJ+tIqsO8QCBEfoQslm8z/T2qY2QFnrun1ngA9Dx/nnZpnfQPIOXWyPYcA==;31:wUvH+p/jmq+z1GDRUjNCsFuowJZ6TldiMmJVAxnCThMjFU3JYv6lLA7x070r6qDsur3xJXEVevI36QfhqsYqBBDg4S86aqbLCmtlocASUaP9k4MzCybTJ6VbhDlLT80kgwRWEyA6GBv7vGWtc50f5gKj0sXfkJHJRjo1OfLQDZkANAkevDADI+Zk2XMGuOJ/rh3Ny7pktyOLlGUD8SNUW0CIFPlnkPYyiBvQm9oKa6k= X-MS-TrafficTypeDiagnostic: TYAPR01MB2079: X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2079;20:+5OSF1fFVowRz45xpDSqWBQ30zX2Lm0pYWlbq5RhZ/ey4GpE1VxluM93VCSR8UyvlQRb7v/hAbU2ZnbI04Y53nIleTPoVlTbI1OWN5cJEqw9qDHvIiQuAZWosy7nkIO0yka5DdK0i6Tz9nXlcXi1jTfNYKPuhl0U8rzIeHwqGhyGKuo66bCKzgOrxkvMHkLkwHlUuS/1RdF/GWmayUYHaKJtm3B+n/ulALtOPl8pIBCl42xOOMyHRFB23dQBnhaYAaiFGX7hiPS4pTcyYXw8ShA4/5GdO1c3Yxq8KKw/Qb6heSVY5qkAvAH2g9joaWaoGGIabgudFjUUbwQZOniuj7PISwJTM47OjiNsEwHoJkkSkDL2BJQOvOcgUp7gjEFMjcWQEmhOd7PmD8PgdAHSivsn4FZYAtqK8HpOHFN10PQCmJta8+JV2bGBnR+IBUZlsasc9Nf5YlSATLzrP3DQM3gznwG/Y9aLRaVGNvIW2PD3v+bfH06GKeqIMFGj3U8A;4:Fg806bR30InD3nO7EymSjfJX2RwSzE4f8f5nBoU7uv2/nMYFwpBZCIM0H/s9mbiA0e2YmHs3DCebGWAdp2drJkeepS0wdSQOgESu6oKmq636HZOSZi1zC/5m+EULL2vuJfI0V8ifHUJSnCJTowZusVbe/krQLzDvs3JmyhXLvCK9aHS2Y53ZGykvVGE/UKOvoDVrx/qlcKLlLq7DLwN05O+z2PKZMW/mIT/kadQkmf8a3lpEei2QXenF5W5N34G+ydo4z3QOPRh0MlOpFSPqkw== 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)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:TYAPR01MB2079;BCL:0;PCL:0;RULEID:;SRVR:TYAPR01MB2079; X-Forefront-PRVS: 070092A9D3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39380400002)(396003)(346002)(366004)(376002)(39860400002)(189003)(199004)(229853002)(386003)(86362001)(53416004)(50466002)(36756003)(8936002)(2906002)(66066001)(6916009)(106356001)(486006)(5660300001)(11346002)(956004)(2616005)(446003)(81156014)(476003)(478600001)(93886005)(97736004)(76176011)(69596002)(16526019)(4326008)(7696005)(68736007)(8676002)(52116002)(58126008)(16586007)(186003)(25786009)(316002)(47776003)(54906003)(53936002)(7736002)(3846002)(6116002)(305945005)(6486002)(6246003)(81166006)(23726003)(26005)(105586002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:TYAPR01MB2079;H:morimoto-PC.renesas.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;TYAPR01MB2079;23:LitzxRVooIX4OEjJrarDZfVitQPAbJ4/TyYAgPJ4A?= =?us-ascii?Q?QnmEhXI57PbYsnSfu3GHTovAbMgRHD3dAPGuu4kMmbgOZxneEQ9L+88YFxAD?= =?us-ascii?Q?bz9JXLTzWeBPFj5SIMWRWO9bD1ry2vyxx5McbLXC7JE8MbLNnj1er4OX0hsl?= =?us-ascii?Q?kZsOJm+8TFVE1I1pUw0qHbvJv4COT4omf4UUAM8998hdDLVrro42MrBVQFxw?= =?us-ascii?Q?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jp/aEE3oc2Sx+D2+I0OkUx5HWK4mCZlSMdsnGxecvtYVScwjSMSOStiaGM=;24:IuX65QbHlB/l3CKJbsskZ00BqKFKTR8fvvNLa1hsNpHse19CCAgksYC0t41+QtdCDAj5ifHgg5qh8J9vCmwnDAFes4pes6BjwODhWsEc6ZE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2079;7:XlFsUDJpNptsyaM88bEnL5rLRNqJjEKlJaeZq/hndhn+59ga5/4P7CY6vmrU6D8Dd3JN+MKhH2dZwqSVLhMOfaXLoHc1DHy+epNXG73IncE3nQcejwuA0dqsxXSSqkGua3LFbpMsiIGgdD63unqekr+cMOt9VYQc+ZHFAoXb2EkwCQktHmDZpd+LPnGBO4V/VQ5aZDiYQ6CjskHBo5GdAcr8QvHZEDXb5b1PjHLyJZTkXn/B4kr8PDWHIMeAmBRp;20:Ta+P9HtgrygAQnuK3fYDZTTiXM4tUKC2AqtgtXBfkKs6la2e/7xltUNwWGT0xk9H+Af4PN5G/CK5NEf4OxkUE5FAcdLv8yhI8X/XcCxzp33ydB8PqFRtn/a2zbQ/ubHYxCvduyIpM3u6u9MOAIk+p2BrAQh+bioSZOoQyETNCVQ= X-MS-Office365-Filtering-Correlation-Id: d1ca09c1-f965-44a2-160d-08d5cf5e39a3 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2018 05:43:14.2737 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1ca09c1-f965-44a2-160d-08d5cf5e39a3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Katsuhiro > > > This patch moves headphone and microphone detection to probe() of > > > snd_soc_card from init() of snd_soc_dai_link. This is because init() > > > is called (and an input device /dev/input/eventX is created too) > > > twice or above if simple card has two or more DAI links. (snip) > It seems if simple card has multiple DAI links, it creates multiple input > devices. > > For example simple card has 3-links, 3 input devices /dev/input/event0, > event1, event2 are created. Is it correct? Oh, I see, fair enough. I'm sorry, it was my English skill error. Best regards --- Kuninori Morimoto