From patchwork Mon May 29 18:19:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edson Juliano Drosdeck X-Patchwork-Id: 13258866 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A175CC7EE23 for ; Mon, 29 May 2023 18:18:04 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 56019204; Mon, 29 May 2023 20:17:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 56019204 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1685384281; bh=U8RMlYeZ35FSJ/6bIXEQZoHNNKg5xrD1MW/A3wPZ7NI=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=kMBvGPT6VXnQOo/XegyeUiWDpiC1+gAx/WSwExHw3cg5sOglIeGq/on9n4dO5jH1h aPmQOmKFkOrfBMlAFh1S1iDUubwyYelyQgr4gEzPErD33OYk5CoB7xj06yLsqu0wkw uYqot39N5iiEym7eUGaeS++2z5YRHMN3YwwXoZBE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 94C8AF8016B; Mon, 29 May 2023 20:17:10 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id EA082F80086; Mon, 29 May 2023 20:17:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 09811F8042F; Mon, 29 May 2023 20:15:19 +0200 (CEST) Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2058FF8016B for ; Mon, 29 May 2023 20:15:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2058FF8016B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=AcSDTu0N Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6af6de9fb74so2673304a34.2 for ; Mon, 29 May 2023 11:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685384109; x=1687976109; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7Fz2odnwoQoSb/f4/uwxLcGBzSZobAqAudC69cDyIVg=; b=AcSDTu0N7NdMN4gpxfkOdVF3BF5ZTv4A7Sb9Smnwr40A8Q4z9ZFuICQfKl8wLphA+p 2mp9VhPL45dPc6B0JW04e6NCVauWBel32Xt7U13N7tEdjdrbQU2b9z2ta5iXsfsPzHMP b4ViOhhj3iaIULCK+2QtZWWY6KNc08nYSTzmPLpkJpL7N6TBDSLe84MClPmkJU6kLN7u jV959AruFreHoyHZ0evAZP59HB7+33Is9BZv89YJXxiQLNCCGBoqn1gZ4nOcKvE23Mu7 kHlMWMVeE16v4juKqZpT2JxvDj1KswDqIDNquDGy5eQNNEy0ZGCU+aIWcmn4BNnn1WKw gaOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685384109; x=1687976109; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7Fz2odnwoQoSb/f4/uwxLcGBzSZobAqAudC69cDyIVg=; b=fqQaI/GyfQilYBQlOovaxj+x34iGnIEHf3SeKvqunOpQTrtj5wpRbhyR1zDg+h21Dl kSFbYOOXW4z0C6oIoOs1Zsf1bfmKlnxljVERxIgQO+bxMulzKzjFyJJ2M9MrYxLBJ7R9 lduSmcSREarNcpvSu5MjNPbSG0YZQ/a3r6rvm/CcA6lm/PicXurJ/AbxyE84vl61FdX2 FPlE5fIKXQa+bhgEM/nVvKkSA6MT3Nc4tychNEQHA071gqg0I4RoC8bDWe78RycXJWE1 R4jWJyCL+7WRQ3CoFMVsCD2XjfuoInCChqBI+jn5TZFdCBzRJmyZxS3li4KjeBim5l2Y cGfQ== X-Gm-Message-State: AC+VfDyNSTq9ddqCoVEYeYqPpxF/dBacslmRTCLe/HadE7FocVVxPDH3 4RiHqD3JRIYbWACPc3J+lMY= X-Google-Smtp-Source: ACHHUZ55Ew1xe12k0UOq1uaBO7QWrNF4wlScCTdgihgsD8vO20OZhCNgsIZc91qonI17sMXnhrJZFQ== X-Received: by 2002:a9d:7e8c:0:b0:6ab:ce:6eac with SMTP id m12-20020a9d7e8c000000b006ab00ce6eacmr6211715otp.20.1685384109228; Mon, 29 May 2023 11:15:09 -0700 (PDT) Received: from policorp.cardume.local ([177.91.232.53]) by smtp.gmail.com with ESMTPSA id t4-20020a9d7484000000b006af8bc70e26sm4754451otk.7.2023.05.29.11.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 11:15:08 -0700 (PDT) From: drosdeck To: lgirdwood@gmail.com Cc: broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, savagecin@gmail.com, SJLIN0@nuvoton.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, edson.drosdeck@gmail.com Subject: [PATCH] ASoC: nau8824: Add quirk to active-high jack-detect Date: Mon, 29 May 2023 15:19:11 -0300 Message-Id: <20230529181911.632851-1-edson.drosdeck@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Message-ID-Hash: BPR5GHGV2TDKPP6LUQKHH4TYKSPT3I5U X-Message-ID-Hash: BPR5GHGV2TDKPP6LUQKHH4TYKSPT3I5U X-MailFrom: edson.drosdeck@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add entries for Positivo laptops: CW14Q01P, K1424G, N14ZP74G to the DMI table, so that active-high jack-detect will work properly on these laptops. Signed-off-by: Edson Juliano Drosdeck --- sound/soc/codecs/nau8824.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sound/soc/codecs/nau8824.c b/sound/soc/codecs/nau8824.c index 4f19fd9b65d1..5a4db8944d06 100644 --- a/sound/soc/codecs/nau8824.c +++ b/sound/soc/codecs/nau8824.c @@ -1903,6 +1903,30 @@ static const struct dmi_system_id nau8824_quirk_table[] = { }, .driver_data = (void *)(NAU8824_MONO_SPEAKER), }, + { + /* Positivo CW14Q01P */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"), + DMI_MATCH(DMI_BOARD_NAME, "CW14Q01P"), + }, + .driver_data = (void *)(NAU8824_JD_ACTIVE_HIGH), + }, + { + /* Positivo K1424G */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"), + DMI_MATCH(DMI_BOARD_NAME, "K1424G"), + }, + .driver_data = (void *)(NAU8824_JD_ACTIVE_HIGH), + }, + { + /* Positivo N14ZP74G */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"), + DMI_MATCH(DMI_BOARD_NAME, "N14ZP74G"), + }, + .driver_data = (void *)(NAU8824_JD_ACTIVE_HIGH), + }, {} };