Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp945590iob; Thu, 12 May 2022 07:59:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJNlkBtg6QYKBzvR8SVKdJHK0lwovSaAisCMdzjRwtc9Uycx/uTZboXd7JppIYm+DQrpR7 X-Received: by 2002:a05:6402:17c7:b0:425:d52c:8907 with SMTP id s7-20020a05640217c700b00425d52c8907mr35129195edy.15.1652367589175; Thu, 12 May 2022 07:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652367589; cv=none; d=google.com; s=arc-20160816; b=gJO6HwyfXikFnWIN3WP0t3ImGzVSDYimOcxs7qCLTed/xCd8Q6OK8fedP9ZPD7GY0v fm3+UER9UDJSDr6Upafn0+lFxeIkEZNOXBs0pMQScQSLUFRNwBT1W3eb+X+UipvHJq2k aLCzqXDwYeDVBiosvC3EyDRv/46Rqsy5C28dq9Wcf8BYDqrol3cbQ9KxQiwAct7AaKkt 2qPua3dBFNpE6piravdHQ/XuhoIgBgWNca5z9vUpNp1b3D0uUWJ12nx9vqQ6RvcGCXra 98cwJn4JKmWD/Fqfa6mUF/XGW3OV0likKm3fbks2wtdlAb8cXZklxgN/oBA1Cs9EEOT7 Wodw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=DrDbGhLo7XaClO51j9YJvUywtHQ0+/I5lMy5wJbGhKc=; b=E8Mi5cqaR33tdJ46CF9KsS3IjA1bKwDi7MUDxt2kdCK64VK+nga72PmOZZHAOskx/G Fjw316/3NAUWm/7ZnlMDiVqOWumxECEXWitqnC2Ys194dji/t4/FK46PoEovzXwE2fDQ I1h0M4uliL5GceWV2+E9ahMqrto+yqm8u0qovHLYUQh9C4am3AA+39eo3QVRwX9OdtnM NWP14quwCoJaDLdZ83PIJnm7YkEXw92UQQY/OrD0TcwapB2w8pRAOOIx+lUYAI3dnNya Q5VbQIUz0m6cWS2g86R7SnkDTn9JkG/PqC9KztVF0lNveAgWQ6a02Mr8KrrBw4bf3uaA o9Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=DiruNwr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020a50931a000000b00425e2b34d08si5113997eda.600.2022.05.12.07.59.18; Thu, 12 May 2022 07:59:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=DiruNwr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351137AbiELHoJ (ORCPT + 99 others); Thu, 12 May 2022 03:44:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351099AbiELHoI (ORCPT ); Thu, 12 May 2022 03:44:08 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE0E41A15E5 for ; Thu, 12 May 2022 00:44:05 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id c12so5190146edv.10 for ; Thu, 12 May 2022 00:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DrDbGhLo7XaClO51j9YJvUywtHQ0+/I5lMy5wJbGhKc=; b=DiruNwr0imBp+10H53dtlHhIGwryjAwAWWCxLchPrV+5Ds5esyMWKjS3HAq8f4h/7O VZ8MmEQaRkIYQ8sFGjoZL7WHBNcERhJ9n5ZHJMUFreePm93eQoOr4FDrKr4sWpp1fB4N paupObkAaW1R41KdMj35taLnJ2UhWNnuoOsss= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DrDbGhLo7XaClO51j9YJvUywtHQ0+/I5lMy5wJbGhKc=; b=g6c+atKDr80rO98lI0qqLjxUsbz8wl9J1kM/XjjLWv/MNApjHslreQALfOVfMVBAXT Q+2zPu+znH4pov9Hi+Dp2Gat5glipMylWNgTWDHPhCvdpCWt8tITwAJPO+kliZxw2cgn EL7ejKJf/0nz8Sdx1oXT/Pl4u5Ksmw0C+7xaxNbS+Q/m8phiRJXkU06WBe/zt1RtJjA3 Sgdw/3Ec9S5CUiAq8jeYaJ6o0osryGkXjZjvoNXta6pBsiogGR8I2EjoZ8yBjeS5TFl4 UNf529h4GwDafv05UaJTDAUqqaoiGDxl8PRB6IpxzCl+cOk6KqHqXKWlxMbLVIW8yTXR cWyQ== X-Gm-Message-State: AOAM533UwyrCqVFd6mM/WfzlxlJlTj+lwYZDV+gVbLO+tr3oRh8cq6yT OFnKj3Xf9UoJuWpk3uzDgvdmzQ== X-Received: by 2002:a05:6402:4241:b0:428:177b:5fd with SMTP id g1-20020a056402424100b00428177b05fdmr32950480edb.193.1652341444209; Thu, 12 May 2022 00:44:04 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-59-245.cust.vodafonedsl.it. [188.217.59.245]) by smtp.gmail.com with ESMTPSA id cm10-20020a0564020c8a00b0042617ba63c0sm2192721edb.74.2022.05.12.00.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 00:44:03 -0700 (PDT) From: Tommaso Merciai Cc: tommaso.merciai@amarulasolutions.com, linux-amarula@amarulasolutions.com, linuxfancy@googlegroups.com, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: max98088: add support for reg_4a_cfg_bypass reg Date: Thu, 12 May 2022 09:43:58 +0200 Message-Id: <20220512074359.446999-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add mixer controls support for M98088_REG_4A_CFG_BYPASS register References: - https://datasheets.maximintegrated.com/en/ds/MAX98089.pdf p71, p113 Signed-off-by: Tommaso Merciai --- sound/soc/codecs/max98088.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c index 429717d4ac5a..f8ec2f164e08 100644 --- a/sound/soc/codecs/max98088.c +++ b/sound/soc/codecs/max98088.c @@ -486,6 +486,11 @@ static const struct snd_kcontrol_new max98088_snd_controls[] = { SOC_SINGLE("EQ1 Switch", M98088_REG_49_CFG_LEVEL, 0, 1, 0), SOC_SINGLE("EQ2 Switch", M98088_REG_49_CFG_LEVEL, 1, 1, 0), + SOC_SINGLE("SPK Bypass Switch", M98088_REG_4A_CFG_BYPASS, 0, 1, 0), + SOC_SINGLE("REC Bypass Switch", M98088_REG_4A_CFG_BYPASS, 1, 1, 0), + SOC_SINGLE("MIC2 Bypass Switch", M98088_REG_4A_CFG_BYPASS, 4, 1, 0), + SOC_SINGLE("INA Bypass Switch", M98088_REG_4A_CFG_BYPASS, 7, 1, 0), + SOC_ENUM("EX Limiter Mode", max98088_exmode_enum), SOC_ENUM("EX Limiter Threshold", max98088_ex_thresh_enum), -- 2.25.1