Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2917240pxb; Tue, 24 Aug 2021 10:32:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwECEkp6Y3F/2ou+lRXBYWkVckI8d6EZaAhYQUkut1OnKhrl6YKPBBM670ixuRgt751PImi X-Received: by 2002:a17:907:76e5:: with SMTP id kg5mr22097684ejc.474.1629826370925; Tue, 24 Aug 2021 10:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826370; cv=none; d=google.com; s=arc-20160816; b=SJXl0nVOlsweq4h2ZtNS1NFY4GUFCMpiGsOQSFuobvYf0ccin3p0wzT5sMCfmqgcXZ O+/CzJ0CkkCwUrEDX7uk0L7VsMZJDnMxE1BtxHeLwb7IRSujg25S2ULGEH3Q4DHDZOcB QtZdz7OQk0xs9Go/7TUc8z9FWaaFhzPp80vhzH5e8EwUuD1Lkuq88ncERyCLQ8DZoeQI LGr5wrkhIa33SYtbyMluhvGMKQP7khgV89bm3nYqS2B4yoHO8xIOcrIk3xqp6liYd0xU mhEpGCpLHS7MdFkaRJaqjIXMDyySKhgGIzGiefQUsMoHrTPsiCxZeaiZHW+9s3UT+wIh /hUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ajp05Iy3QYKOeNbDK67Xm2mdiMLNQ89V66Jf8b5Y7cU=; b=F2rKtUAuZNK610ulnZMtGIY4BVscNBmFxUHbGXJg4ThpfmUfquXU4UUxGvx40fHnvA 7H5tWb9qUUguRK96Z3uu+7KW+QV9giTmeI9CNudfHnOvPmECSuj03aOvLvK7NdtqFSub RZuIHASSkcB/xRQbDP9UpMknBMG0I75MwkElb3iBEY4YlsDO5ozCxrNmNlnocVUsC0jJ ZKvSs1USeHmbu8KHij1SwH1Rf7PaqPiVDRJDwVXtywBBP5v3a6/vtvKFBtxEf0V0W16P /CX+O+lR+5FBXg/o774wTX/VP3RD84EDByPcnh/TVr0OEDBEGACfj44IM+fJEje3rrmw yc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EaE9kJH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc23si9752762ejc.185.2021.08.24.10.32.26; Tue, 24 Aug 2021 10:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EaE9kJH/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241506AbhHXR31 (ORCPT + 99 others); Tue, 24 Aug 2021 13:29:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:35826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240330AbhHXR1D (ORCPT ); Tue, 24 Aug 2021 13:27:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 523A461502; Tue, 24 Aug 2021 17:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824706; bh=mskPVeEKtqfhJpMnZjsCnDaEfh2jCgaQIEjCsa97iZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EaE9kJH/J3UboIqHVov7RuuLs5SEgU83O6AhLd9Uuz6kFA4976xcSdATIlxyIg04l TWcloesPJlQLcvts5zWzbkYyFqXEJM1eAMbhH90m/8bPb4X+PQn1Yccj0QdMi2SY6Z RYPkoWICQFfOsY2D5VgMY1Dxmgw/AWmrms7rhwfYf7xeIUPUlOgXDKXsagytP37oDQ dadEb1czFV06VbAXx04aOwTTvhgrMc0UsueO+Ujpe4EVBNTzZi3bcj17CAsC5+Krgz sqoF7Tojy61T6hYaYO1Jpj8YRvNCK9YFnry+aZPYkdu/xmPcIkZ8F92WHD7iNz6eSh dE4gkLSj3zkbg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Richard Fitzgerald , Mark Brown , Sasha Levin Subject: [PATCH 4.14 08/64] ASoC: cs42l42: Fix inversion of ADC Notch Switch control Date: Tue, 24 Aug 2021 13:04:01 -0400 Message-Id: <20210824170457.710623-9-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170457.710623-1-sashal@kernel.org> References: <20210824170457.710623-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.245-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.245-rc1 X-KernelTest-Deadline: 2021-08-26T17:04+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Fitzgerald [ Upstream commit 30615bd21b4cc3c3bb5ae8bd70e2a915cc5f75c7 ] The underlying register field has inverted sense (0 = enabled) so the control definition must be marked as inverted. Signed-off-by: Richard Fitzgerald Fixes: 2c394ca79604 ("ASoC: Add support for CS42L42 codec") Link: https://lore.kernel.org/r/20210803160834.9005-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs42l42.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index bcfc32efef07..52f51b86af91 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -436,7 +436,7 @@ static SOC_ENUM_SINGLE_DECL(cs42l42_wnf05_freq_enum, CS42L42_ADC_WNF_HPF_CTL, static const struct snd_kcontrol_new cs42l42_snd_controls[] = { /* ADC Volume and Filter Controls */ SOC_SINGLE("ADC Notch Switch", CS42L42_ADC_CTL, - CS42L42_ADC_NOTCH_DIS_SHIFT, true, false), + CS42L42_ADC_NOTCH_DIS_SHIFT, true, true), SOC_SINGLE("ADC Weak Force Switch", CS42L42_ADC_CTL, CS42L42_ADC_FORCE_WEAK_VCM_SHIFT, true, false), SOC_SINGLE("ADC Invert Switch", CS42L42_ADC_CTL, -- 2.30.2