From patchwork Mon Oct 15 06:54:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10641209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8CF7013AD for ; Mon, 15 Oct 2018 06:56:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 779FF29593 for ; Mon, 15 Oct 2018 06:56:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AB1B2959A; Mon, 15 Oct 2018 06:56:19 +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=-2.7 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 3C9D929597 for ; Mon, 15 Oct 2018 06:56:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 912D0267861; Mon, 15 Oct 2018 08:56:10 +0200 (CEST) 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 13885267864; Mon, 15 Oct 2018 08:56:08 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0077.outbound.protection.outlook.com [104.47.42.77]) by alsa0.perex.cz (Postfix) with ESMTP id 1C1B82675CD for ; Mon, 15 Oct 2018 08:56:04 +0200 (CEST) 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 To: 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 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:KOT78SiyC1UMhrE11d05CGH2ZK5BBw53P1xvWt85VdF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yBO7RHa4mf/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?= 4xCV5uSaHQpX/Ceqk2unFCuRsNBYkGHxRwIM7i8XtRFWKDSoCtdikjOExdAz4L0fM4EluxkdNfRj2m3jPw5GLUuSveX+WBvPa1xLyspV9uz2s1Zlngg6jDPp5QtvMZOE9UXqIukRyHduoFYaEgL5Ok6Hla8Uu15xNL1GIxMeqcIIgwo9Vaq2t1fBdJDW9WRyt6ep7HJfilj5buykX2q6etuFrVZVs+Z+e67oy3Xkg5SZdCLOlHtfqtw5P+BcanvJcmgzQQQy5M2g60Yzs+U8Pe7Wn71nimibUfIS7hNUtcHAUsb9bOiR8ZOUCBCFjEA1ks/7+iMExau39U+a0vmiR4QjM+iNNaGRUuS/KO/ac5NRcKYVxFrfPwKznw9TnLUq9EdEh/ZwK61dJI38Y50mZxBQhNg+nAA3agKjuqil1QuqV3TjE1DP5ZAhmpjU9/RXqnv5sgM/iJ+R7HzOuzd2wzG/EVFbi4FaO+IVR/FxkHjRCU0tfm5EAbuxfWu5Z+OmmLZjaecZuhlc4epBVBOdrRUG6/G1eyzu3YLtfA9hlWZrLJi0pw8XcKErWaAy0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TF2q1xo= X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2364; 6:H+aaSb8xnxnQ+lP/TP6SnfTKv5uKufZnUFbRsC8w6S4V61q9mZ7mE7uePxItGuBTiaRSxriByJHq34f2jO2kpnkQROGzBVUxSG2CJ/uXltc7wP3rXqr4rBENFIJav1O8jUmkASmXL7Z8IUKvnYp/rGrk4naTrJ0EGc+dV4HGKVRIT7ncEkADkC1n5/679ICjWnoY61MdrFfANnQG1MoTpkoXwWyMLzw4bS9mqAJynqZ0eOvYauHODsMPaFphGgZptOJyqKs1jqFTwsCpExEtrQ/LXy2L2U76SZmvQ0Rl+QAYhvuv/2ZmerRBi1VG/yE7YCDdF/EROudKlBb0S3cAaJUlgspY2QKXImffZiYfjg9Y+VM4C92Jwx+NgkJFizk+6aY97QzGoGIfwzWOe90plTVROGXvpxkfbjplxTjd9+WuwTt3l/u7bwxx4+NOxgi6UTH1Ru/f8q/5R0X7cVCrJg==; 5:zzdDlg97TlAyYcof8AFKuoRrwLU0dgKGVNe7sFD4qB9b2ClmwXzykGuuXJui/vEsA/7NO1TwebLk7JL6bTbJ/BOgwQtwj+WZzVrvA1bk+J2n6v0BHLqVHpihaGiGiWgGT9uF2S2bZ1KVRgvUAe5fLbbk0q7rr5yq+/1CdXLrmhg=; 7:7celWMb9/aSrvpU46SIp0HX7t7dap+uxBh5JjIl6wRHp3kub6oBqCDov1x8j3YTZGZR0vbp5lc1N9hPdu6onYHf92FZqaH6kaOOWSBmZKvlIKa7sikf18yJQOsGk9T1kSEP6Ycnaei52/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 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , open list , Takashi Iwai , Liam Girdwood , djkurtz@chromium.org, Mark Brown , Wei Yongjun , "Mukunda, Vijendar" , Alex Deucher , akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: AMD: Add SND_JACK_LINEOUT jack type 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 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);