Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3650467imm; Sun, 10 Jun 2018 22:28:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLnWCa9P8MCaa7tZSTGCk48osa7nN9XvXemC3SZ1pDFnzE3xKyn1avURcGXnZGE/TvCpPju X-Received: by 2002:a62:3fdd:: with SMTP id z90-v6mr15982481pfj.216.1528694888152; Sun, 10 Jun 2018 22:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528694888; cv=none; d=google.com; s=arc-20160816; b=LDeI7syyxDccW6GjZ1zAymKkDX6c4sddL8VeFV3hi7UewdunhsoerD9FUq6nP0phxq Uu0hv0BW0tmDiU6vD+lXNhqX/ErspGCbkHssPEv4kDezZMn/KKgYEKyPUitBQ2mt+MNV oz+hST2R7PahKWsx29AFsWydRQo72RMyF3br6tSJPxEUcgXNix1w1VtHTFxd4ViHysZN ARoOWeNn4f8ateIQzGoQEC3fniQtvDds8bAwBGYSjaHHpC296xJPoi+7I1c9VkxHgkYW kIcarDz1KyCpHtp6r/3h6OGkQGryl9Y36J28wtgeod+U8Tf2E9pG8GZhmyCyf9bo9ALO 1fuQ== 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=hqS6e/BV4IEPgr+2Sbo+FrJNfNV91AhCYIXepBFZEV4=; b=KVRz2at13I7nlzNyC4l4KOaXZNNMP6twKJmCEQ++i/080/VcorpKyk9U2cdSZPHunq GDKamVpFICxbNveFOJCK1cvVANYUMcP9ojLvjmurXQCKKDfA7MazLIyrcfy6ebezzcff FFtWG9JGCNWEQC8hRYASGpMg5V1PSARq6Wmup3ZuMe4gnP3g/7apbjWoeRwSNxT5RXXC mheEU4izzjrJGkioeJooQYL8ziXI91Jt0yKAhgKLulFWo54dg/zUPS/eIITSf8+qGpl2 54tM2J+ytz60g3Mq7sNP3T5NhjyC4rH6PK+G5b72sI0r8MRE53dIWO0e+kL2iH0DT0Yl R5GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=jc+PU7Kj; 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 h192-v6si34491832pgc.540.2018.06.10.22.27.54; Sun, 10 Jun 2018 22:28:08 -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=jc+PU7Kj; 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 S1753875AbeFKF1S (ORCPT + 99 others); Mon, 11 Jun 2018 01:27:18 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:63064 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932386AbeFKF1P (ORCPT ); Mon, 11 Jun 2018 01:27:15 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 11 Jun 2018 14:27:13 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 92E4B731E6; Mon, 11 Jun 2018 14:27:13 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,500,1520866800"; d="scan'208";a="282164987" Received: from mail-ty1jpn01lp0180.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.180]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 11 Jun 2018 14:27:13 +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=hqS6e/BV4IEPgr+2Sbo+FrJNfNV91AhCYIXepBFZEV4=; b=jc+PU7KjEYXHnsOH1QlDVtJNvsvZ6wW0w29LE88sI7tsVff0s8pkrdc9hxXxMTrVENDq0OeuPP0e7IwbrdpBcMBP7LdQ/B8yEa8ynQ69+BmB6bXaLt9jR6JFenRQc5DV6DllxnziPpQ/EEn40K9Q9jhhmwJevdxJa/ps5YztUSc= 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 OSAPR01MB2067.jpnprd01.prod.outlook.com (2603:1096:603:18::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Mon, 11 Jun 2018 05:27:11 +0000 Message-ID: <87tvq96gnm.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: <20180611051559.18082-2-suzuki.katsuhiro@socionext.com> References: <20180611051559.18082-1-suzuki.katsuhiro@socionext.com> <20180611051559.18082-2-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: Mon, 11 Jun 2018 05:27:11 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY2PR06CA0022.apcprd06.prod.outlook.com (2603:1096:404:42::34) To OSAPR01MB2067.jpnprd01.prod.outlook.com (2603:1096:603:18::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(48565401081)(2017052603328)(7153060)(7193020);SRVR:OSAPR01MB2067; X-Microsoft-Exchange-Diagnostics: 1;OSAPR01MB2067;3:U/pl68Z5l1fDq8PatYPLDQtKqjBEwSJxRCMHODSLY7tDu+yhyw1BQ86dDS62RIhrDyyULmGixmDL0qForQ5/laEBbJoCg15kT0zfmVNRbgOTya8OqSN1yk/Uu5yW9Y1s3NYD9BranycIXlCGh9XNCLShcg3HJBN4ZF6HZR7uoy6he+D2fZl0hZHkzoAekxZIZAi5EN+9p0fa7c7TkzATEvZJz16cm+4hh3KGCOuePf1zO9688T/ApqGBQMzlivIc;25:cs19sgj1mnfFxeIMEELodViR5Nl4zjMPkubR8CEKVd3yd6KEW+DamMthivLgJbJQxreQ6z8+40zvYYcllp4rNHQUwH9b2K2TfeOJSYcYgk4TL4dgiTHgw+dAaNGLl1NEAei0S8Fbgjslr9I6SAWAZ7diy6sNttQHxhbfG+lhuHLRw+tJQ1z9NbHQkldfDbQLuBHY8FXFSK2FYnzoChTLAcXWl63b+pE2bPZ6n2Fbk1uW2QGxlhxwSv2xn3+DCnmKKexXLIPBm0vqhur9snIHjjZLmWuTfPxu2CGMqZl/qwT4uhBeA4g403pOJkp7QHcN3nEPpOAsCMpCFwdlbhRG3w==;31:UE16JHefPuoJYRHEKi3B4kTbX+AUJf2i2cInffmcVe7RF29xiNcgpayWg76CaXyLyWs0sk+Qo6eAeyeLqpXT5gpu1I7ISegZq8doIN0veS3TJ2XLh1R+qrwygBTVzD2HKJwWHAzgRhQ2Ph9dAtZ2JzLn5AF+vfEH8RDKEEcAbc5SQlqeVexzEkNnz2j3fWl7A/DE1UkuqBw6jBdeoNjoBC/wGwTRQX1Z4xUG7wArg3I= X-MS-TrafficTypeDiagnostic: OSAPR01MB2067: X-Microsoft-Exchange-Diagnostics: 1;OSAPR01MB2067;20:iEN+UCXEiRqdj8MJrsPrrNIG2DsD9zTMjJhDgGe95RsaPX4FMVH4l59bhqI6kZGR6DfhlNWE5/P6C3AIloeFFK67xDenFDfrnLHjL+vHj6N3SCv8tVJm7rmZr7D1Hbeu4EwIfZRqWqjf8qg0H1dr9l2S+BhgdNH6SO4fSLhGeak2nRmqNhd8QSZZzIiegsKD9+t2D37byI4DKHNi/DsOBBP0KQwmJNWrdGvcq/VK8VdGhKimWBaPLY9bcboczIlF+1epKjDtWslIYDdIwKNYixy9IAS9kYrjpe6mi51sVP5YCQ4LTwnKLxSrFYu5lZ4Ddtn/XwyJNTt0mxGuG/QGQn/t7Rp2cCjO+PRi06t4H2CVPoHRcsaFtZIrwctd9/59/GPKA4tkBQs8f1sNZo8kmLiUY7XleLUAW13MlppS3TEnlVbSH1Wp00QCAWrGklYd3g+TJCs26bUTclQGRlCqCejm/rST2bs7EtaOOVIlZBzLscuABIkSJHNFCWKrE9R2;4:bHvPJt8olAnwjb+TKs2e3mBwsL4Is18D3n2nat5wV11Ni9sAUkKatUt803dI+S7+E5QG1pC/HXP1dW/yNEAEl/SNr/4ozfnLjmzS6Yak0ORMmC+61Aed5H5939iQm0CuGgGdUS9dP9EDaknB1Q0J9OOrZiJvjiHdYuD/GMQ8LeYB9kYamAjtwXtCkbrd3menMZb7X2H6Gn1VNTC3cA44d7+1ZViVcmHMnI/oECSMtybxZVH0noUANBWyEDJt7K6ziuj3XiQ9q89RzfxVkGiH8Q== 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)(3002001)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:OSAPR01MB2067;BCL:0;PCL:0;RULEID:;SRVR:OSAPR01MB2067; X-Forefront-PRVS: 070092A9D3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(376002)(39860400002)(346002)(39380400002)(366004)(199004)(189003)(956004)(26005)(186003)(446003)(16526019)(76176011)(54906003)(52116002)(58126008)(4326008)(23726003)(105586002)(86362001)(7696005)(25786009)(97736004)(47776003)(66066001)(53416004)(36756003)(6486002)(386003)(16586007)(106356001)(316002)(11346002)(476003)(2616005)(486006)(8676002)(81166006)(81156014)(5660300001)(69596002)(68736007)(8936002)(478600001)(53936002)(6246003)(6916009)(50466002)(3846002)(305945005)(6116002)(2906002)(7736002)(229853002)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:OSAPR01MB2067;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;OSAPR01MB2067;23:oP20SYKRFxGSKd4xLaxymHsatB7HMDQ/ZdBQXJ3dH?= =?us-ascii?Q?M3IlbaIoTZYOGwjyWXFdCnNeCmdEc4SgnzVSjtEI0YEVyLe5SNmDT/vSuGxu?= =?us-ascii?Q?cWm+XUZhUZsQcB2Va0eMEb9D2a7D59QyzVYxBeDfeIjInZbaQyC26mi/anBB?= =?us-ascii?Q?w/s8dlQMkY0XcjVEgkItLmZwlnhE1tr+XXJYMnT3S24dRzdz0Dq1opFpAJ1p?= =?us-ascii?Q?QZGXFWCIZe5XOT7X32HDPRNztDXARf1OBv/JPM/YXEVSJakVLLHNdQ8KDTUw?= =?us-ascii?Q?LPpvU8rUwJG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X6aaAu/PQxLBVHVXc7z+OW4NK3RrQpL2BduWDQli/kgDEc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;OSAPR01MB2067;7:MFKzHkwII2cZUX0a9rzWbydplFRWe9Sgalnk3eoYh9XebO4HpAmZQdoN8avuxmrHk1EMKfnHrYufA/NNhd4TXAQi6VirpCiX13igkl+mhWkjhecYj8MeAcWbrYz3Cu8trm8dVFnGITvSBuN4pECPabvjZKlD7VEWG06W4Gc0nfmQy+U6dDWQGtQiNJjhGSrVzmiarPdOmYy0sHkd1Ejdtm7u4yBrdeAR7HMaJojCTnH/rJu6C+izaHateYBUmTUP;20:maWgRdAyfS3Rsk0kugRvLybR1bYF0SbI9wzl4rOCDPDPcdxtB3jlyyv46aNkAkQi28zKrFrUNvPvR0fDhEXrnvsNu9h8qQene2lZHFW38kmGNkLgeOCZ991HT9jhz/u7efI+XJkfZ+Lfv56LBhCoYgcatp8wKKrhv3YTvyyL/kI= X-MS-Office365-Filtering-Correlation-Id: f90f6573-9ce8-4f36-a4b6-08d5cf5bfbb5 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2018 05:27:11.2960 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f90f6573-9ce8-4f36-a4b6-08d5cf5bfbb5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB2067 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Katsuhiro-san > 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. > > Signed-off-by: Katsuhiro Suzuki or above ? > - ret = asoc_simple_card_init_hp(rtd->card, &priv->hp_jack, PREFIX); > - if (ret < 0) > - return ret; > - > - ret = asoc_simple_card_init_mic(rtd->card, &priv->mic_jack, PREFIX); > - if (ret < 0) > - return ret; (snip) > + 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; I think we want to keep "PREFIX" ? Best regards --- Kuninori Morimoto