Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3574406imm; Sun, 14 Oct 2018 23:56:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60JsjQz7/6z0D8ggihU6JX2VhbIalNNhUPcRhiRPsok9jfc/tzmZlH6Uqmcf/D3oqg19yWZ X-Received: by 2002:a17:902:b104:: with SMTP id q4-v6mr15898236plr.238.1539586599731; Sun, 14 Oct 2018 23:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539586599; cv=none; d=google.com; s=arc-20160816; b=F2LTaZeP8eA1U8Iv3/yeMSH1I7jR6LRkSKeK9eBnqIBJyJMnMbOvMPpVVRA6v5kTy3 sbaM4pEkFP1IjuIG/L4YVtnyXKQnI/e7c9yOhZJTsAvPfNkPL2fiFVfUj6f7kDUpyCTz xwFK8vcS49/NwO2jFCvicCZWPN0nA2z3wSC5CSPlVEGyKCfQLtI+7kjoMgtaH+qW9jOG ORzhbj21EDFlwGbVpDK9B63xgniL7MWjD+KC0tTeuK9WruaCovP1zOwzqPafmdhARpZP QupfFbhhC06QiSlA0bvKEQd+oOYJxaSp7x4nr4z2uQgjQZ7Fkl2kvxRAeBSWnRLKcTKI 0uhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:from :dkim-signature; bh=RfXo7VbJ1klA+IlzNFsdqcX7tDhzErBLdPsjOyw4V54=; b=NzaMzUh5FCdsJ//FgD6FXWcj2o/OjJSWiET8QYnXF19IxXPQJ5HJ9VmVLMXsyX/tFZ NHt7zLhWbYq1IrJrvqFE+HcZPnZ+nVTZyNDCOBEaveJhBGyCQ03gLUlAv7AwAewUMuom ac1qroayZUPTZv2VTLhxKGAyh+8AjhmjG9ymLT3I5Ql1LPXxb3kJBjhwRMEcebgFOLuW JOLSw1TlqffUCeYSNPwIO5kzQyueDOs7bJL7YPO4hRNF02oKDqRaK4e3Z46BivVR9n75 4HKlNddk+zAGnT4edq8/1wWabk3aM4w6YiLP8cSTP15UlhXikExM58DdOGknuPc0VoFA RFGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=h7Lv91ai; 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 m37-v6si3242266pla.421.2018.10.14.23.56.23; Sun, 14 Oct 2018 23:56:39 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=h7Lv91ai; 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 S1726615AbeJOOkB (ORCPT + 99 others); Mon, 15 Oct 2018 10:40:01 -0400 Received: from mail-by2nam03on0056.outbound.protection.outlook.com ([104.47.42.56]:21305 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726404AbeJOOkB (ORCPT ); Mon, 15 Oct 2018 10:40:01 -0400 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:X-MS-Exchange-SenderADCheck; bh=RfXo7VbJ1klA+IlzNFsdqcX7tDhzErBLdPsjOyw4V54=; b=h7Lv91ai/jXD76iv9kjkoSAtCPpqfkjwM0HDZp9JQCusObGZaZhlHI6+6AgfEFg/obU8zpx8EYQymbUUqkflzd8jCtXe5KQCuhFPam1L/jUp4afh8FpMCcVUkgN8u3Rgd6OHMjos4uk2HsWcykMe1jAtPhe0Ef0r3GTXuwHBHgI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from amd-chromium.amd.com (165.204.156.251) by MW2PR12MB2364.namprd12.prod.outlook.com (2603:10b6:907:8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 06:55:50 +0000 From: Akshu Agrawal Cc: akshu.agrawal@amd.com, djkurtz@chromium.org, Alexander.Deucher@amd.com, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Mukunda, Vijendar" , Alex Deucher , Kuninori Morimoto , Wei Yongjun , alsa-devel@alsa-project.org (moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ASoC: AMD: Add SND_JACK_LINEOUT jack type Date: Mon, 15 Oct 2018 12:24:44 +0530 Message-Id: <1539586502-12516-1-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: PN1PR0101CA0064.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::26) To MW2PR12MB2364.namprd12.prod.outlook.com (2603:10b6:907:8::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bdf34b51-7b38-47f5-1198-08d6326b4456 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:MW2PR12MB2364; X-Microsoft-Exchange-Diagnostics: 1;MW2PR12MB2364;3:KOT78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dkXN49ZCr427OgEM6K34OVkskkZNHhFZSMxfyBO7RHa4mf/KvPUwwvoamOo9Am4GqjREWvR7KxkWmVpa39Ea7YicVlupU/ReC4u67ybD25SWl53jfkQepfUzAQvVoB90tY09o/7LNMWArFTo1DSmGzbLc9VezDOfli8sUZx4/xFKQhxTnswxXlK1c0sfsvtJ3uNl3IjHPfBD+dbl45dkO8/ealfeN+IlOfcTx7Gaotr25KOkKTCVN7JaqkgRNAyunj9+GB9EcpiI8JOogQlXjb3c3oh21yoHMrD7Bb1BkcYNTw/96C0wPOr7l1CX8UAhwuKXTKlDBXFx/ojkEHHG3ExE;4:XjSodF+tu9fencjIdegY+qS0oj+dz8IENSRhTdBN6sl31gXnPrsSrAa2P8qYNdYbcazDwI7gKHIdAjIFaC0yT8rY+XP/u1h8+zUBE77WTKhXzAgGTZHIFhDkmwezydIAVlUAUuR5uRHGOGhqhvlIiiSx/dKyoQ5+3RAUC7cIa5oK/QYb2ynLIkyHYJgYHzCrUL5Cf8kuOZUZRg9KsZfvjHSosBwpSk/gyjlYs8vWKZYUqnwi823QE5nk2QzvEeUzzNglIGndKFC/ugjmnOz4WwgOrV01knUjWr9Hxh7GDSbnL/oRN1Yd4mKU1M3+K9hV5wiKpij3idLH13RCDYGAzQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(767451399110); 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)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:MW2PR12MB2364;BCL:0;PCL:0;RULEID:;SRVR:MW2PR12MB2364; X-Forefront-PRVS: 0826B2F01B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(346002)(366004)(376002)(396003)(189003)(199004)(36756003)(478600001)(14444005)(68736007)(2906002)(97736004)(386003)(105586002)(1857600001)(106356001)(53416004)(6666004)(6486002)(86362001)(575784001)(16526019)(26005)(956004)(50466002)(5660300001)(186003)(48376002)(2616005)(44832011)(486006)(72206003)(476003)(47776003)(25786009)(81156014)(50226002)(53936002)(305945005)(81166006)(316002)(7736002)(54906003)(4326008)(1671002)(3846002)(109986005)(6116002)(16586007)(8936002)(39060400002)(7696005)(66066001)(52116002)(8676002)(51416003)(266003);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR12MB2364;H:amd-chromium.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MW2PR12MB2364;23:iO5P4BQljDKQspNRBFix2eBaHFLfpO2XGi/uB9bLK?= =?us-ascii?Q?4xCV5uSaHQpX/Ceqk2unFCuRsNBYkGHxRwIM7i8XtRFWKDSoCtdikjOExdAz?= =?us-ascii?Q?4L0fM4EluxkdNfRj2m3jPw5GLUuSveX+WBvPa1xLyspV9uz2s1Zlngg6jDPp?= =?us-ascii?Q?5QtvMZOE9UXqIukRyHduoFYaEgL5Ok6Hla8Uu15xNL1GIxMeqcIIgwo9Vaq2?= =?us-ascii?Q?t1fBdJDW9WRyt6ep7HJfilj5buykX2q6etuFrVZVs+Z+e67oy3Xkg5SZdCLO?= =?us-ascii?Q?lHtfqtw5P+BcanvJcmgzQQQy5M2g60Yzs+U8Pe7Wn71nimibUfIS7hNUtcHA?= =?us-ascii?Q?Usb9bOiR8ZOUCBCFjEA1ks/7+iMExau39U+a0vmiR4QjM+iNNaGRUuS/KO/a?= =?us-ascii?Q?c5NRcKYVxFrfPwKznw9TnLUq9EdEh/ZwK61dJI38Y50mZxBQhNg+nAA3agKj?= =?us-ascii?Q?uqil1QuqV3TjE1DP5ZAhmpjU9/RXqnv5sgM/iJ+R7HzOuzd2wzG/EVFbi4Fa?= =?us-ascii?Q?O+IVR/FxkHjRCU0tfm5EAbuxfWu5Z+OmmLZjaecZuhlc4epBVBOdrRUG6/G1?= =?us-ascii?Q?eyzu3YLtfA9hlWZrLJi0pw8XcKErWaAy0n8av4TSkD8dh9M053eDBRlRTFh0?= =?us-ascii?Q?gtOfECyoAmkS9BHvQjnIuuy0psZbAT+p8Zl3UbQCxGqne8LPrqWVqySs/WVV?= =?us-ascii?Q?6yB6kflVSeKAcd+JETAL2BVW4+6hF9GzzjAtyjLnrDyty/jspsCujl1X205X?= =?us-ascii?Q?0FnF+LSSwB31fDooFKjOG/DCmPcDGL6Q4X+Ou+tIaA/GZGkorrciMzLYve5A?= =?us-ascii?Q?S6/paOUSiWd7fjbyMzi7eQVuKw2oOd4ugznCG5InDpnG4C92/Pj0gVOih0GW?= =?us-ascii?Q?SXzOgSyGYivB/OZYID9SorN2lqf4ecRG92azjGoayiBZOrglra8VkPHZhsAH?= =?us-ascii?Q?0vS8VKWbqUbTOic54U6PgpieqQg6Ol2DrvjQmOfwLorFllO/zYDRjKMYptab?= =?us-ascii?Q?zqtzWaltScRbI4FV+ZVJMau3fD+V8NrVGsimM0C2+Uw4MBQfkiGQl5GptRL5?= =?us-ascii?Q?Z5R9kBHwPrGwGDFl2dOnxzGDiN5plZvYOooP0ZCqD10TE2A9zCxaL6kO5Csj?= =?us-ascii?Q?M+WFxARFXZyNfomq+9BZ7mHrtEe560nljw64AjBeUfjgO4BS2tmzAn4io8QG?= =?us-ascii?Q?oXTsEL25wwVtD7qolMJAJlV+9m3etFMnlrmQZz8Z9RcGsHzjWT1UzwQEaTS+?= =?us-ascii?Q?furnH2pxSFduAeYmZRCXissBIAfdQx1c+k6w7/KYuVkXul9hX3p3QnDxoL6S?= =?us-ascii?Q?ii8LRKVrg1StI1NOnwsslY=3D?= X-Microsoft-Antispam-Message-Info: Tlsqu49TdTB+vq6BV09fukfI8hY5+bV2X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ub6oBqCDov1x8j3YTZGZR0vbp5lc1N9hPdu6onYHf92FZqaH6kaOOWSBmZKvlIKa7sikf18yJQOsGk9T1kSEP6Ycnaei52/V0fBpujkBWGO/GcPbXWJayD8NTU1022mOBT5vKbDykTpOB4OSx7sSxiL4Lu7/nOqNJTT4hkAV62OEOVN8bYrzUUD5bI/P/No+C4mRkvEgK+M93xGQlh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MW2PR12MB2364;20:lfmSawuDKt1WcoV5tJ2rcoim4DFkAzw8YDmAdx8ep5Z8X44La0S2nubdju/C4Gg6wT2jTvBownuRdUZQudDXpcIoYMyW15KsYB+OA9tIY/MmLFTIBXo1TMhov0p5csyGr4dq4yKQeXQL7dqvi6SLDuLraz/dlsPlZ4rFeJnaqo3CPiHnystGIwmdoLjELn0F9OkLCO0Zz7s3yapYx9SGMC0MuxKRBmedVGktQJJIWrXGd6g1NeJtHuaItTn2m10p X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2018 06:55:50.5750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bdf34b51-7b38-47f5-1198-08d6326b4456 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2364 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some 3 pole connectors report impedance greater than threshold of 1000Ohm. Thus, da7219 reports them as LINEOUT. Adding the SND_JACK_LINEOUT type so that we don't fail to detect any 3 pole jack type. Also, changing SND_JACK_HEADPHONE | SND_JACK_MICROPHONE -> SND_JACK_HEADSET Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 0d97d00698a0..eced4820b0bc 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -75,7 +75,7 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) da7219_dai_clk = clk_get(component->dev, "da7219-dai-clks"); ret = snd_soc_card_jack_new(card, "Headset Jack", - SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | + SND_JACK_HEADSET | SND_JACK_LINEOUT | SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3, &cz_jack, NULL, 0); -- 2.16.4