Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1870292lql; Wed, 13 Mar 2024 10:17:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYlfZl4EFF5Nn1K4xQ61/BvJOjFGzySX5Yy64+1/mlp/A5W5UuhSSGA3sJDeO8KAeHrkwH2rCnbGyj6S9I2KJeZ/ZMbmpWQW0lvS+NKw== X-Google-Smtp-Source: AGHT+IFPlfJAeu70blzWI0Wy6cRuaSY5ApVsaQr5ZbwEqgsIiTd7B9Y5RRTwNTGVaDYEmU3eF1Rz X-Received: by 2002:a05:6a00:1403:b0:6e6:5db6:cb57 with SMTP id l3-20020a056a00140300b006e65db6cb57mr3278333pfu.22.1710350264990; Wed, 13 Mar 2024 10:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710350264; cv=pass; d=google.com; s=arc-20160816; b=GJmXPTKka11hrwjRtAFECUIHg/Ygtba28u6ub1qBznxh7WcR72Y9OmjDqSH6Se8Jcq JAiwS2hRQh3OOcHwhjjSs9F+5z/u9Thcuk6JC1kZB3E0xpIMJrtOMtouLMt+SV//B51p 1Eaj8uXvuHa0CSbt89T6EjcWmb69zYERE11aoDFwGE4EwjNIcMPQKKYlRujaRP373gOc jCcnl7tBvNScHixFuVfiNAoj6GjNKbxb5psKzs6GXMRNhegs6GRCBn/WMC07+kXjKUdv SyK7hEKdygz+lruL6DunBIYHUhFCUyiiiZccMCDJTMXhaYmYMJevVlaXi4XD4KzDzVfZ B3DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=B2NU/0mx2VbO4vkweJzGpMqUpcXU0NFfq9df8K7cu9c=; fh=GbLEPaBSPgs9pim35rV0qoK6p2l4QsKTZkzdyfXBsMw=; b=MmYhDznK+X8HGhO9NFynIDQB7YeMb3nb7p9aaj7bP/gNZbejnDAlDqHV70CLP0RdHo 1zC0LaEY5O7+FldhAz5DYHNzpStvsMXED3zJFSoy/p2dnj82sKWvAXOktphCsPcM0bG9 Ba73k9x2olg61dnO4hyaLn/i1pp/v7r36rt9eU5H/hq/kHhmEHDg226BwuND+Ln2eKEg 5ELWOibSKkNTXbw6S2kIFkGpIU9LU1WgOwBo2GtUsP4A2YKYkHh1ROqFvex9D7TzONGg aNcSbfQblvGACG398BqO1diPq6T+vWZsh+8Ah8rHBfTJTFYN09ZmlAvOr7gt4r6gYsiV kIRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YhT7OW0M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q12-20020aa7982c000000b006e6c6a71355si216580pfl.186.2024.03.13.10.17.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YhT7OW0M; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101901-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 30662289FBE for ; Wed, 13 Mar 2024 17:11:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCE14811F7; Wed, 13 Mar 2024 16:40:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YhT7OW0M" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 026FB80C06; Wed, 13 Mar 2024 16:40:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348038; cv=none; b=DvOA0dwVyWVUEoFwK8uvdh9CEX7Z7o/HOBwgl9oLZ+hSGPpVCvj7rQkeu0w9SCJsNIAb8KSWGoO/gAwLelr5IoXy2ZIrDgRBrYUzg6svIxBL2nnsFdh9+HQrJ73ZWDwlbgjgFgxBHE2mjfZhbSv7wXpnuhvzQXYUUPTphio5HeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348038; c=relaxed/simple; bh=kKLF5yeoV8l2p3/UzErTNYsHxzp8zUDX9GKZKW+fYKE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dFWYW+07QFdNynmsUiLfjqk99J7xGpKRSHBI2IXASM0w2or52sUsvSrhHQe5qNxoIQxWorzK/+1E4sWMxeSuV630d+S1X2NATNncIJuuM1ZwBJOefKrFJbhCloN2VIfpxvsongETnAGCt9gub4l3aBD+KVBU+WqOwgrAIJEp6VQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YhT7OW0M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E295C433F1; Wed, 13 Mar 2024 16:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348037; bh=kKLF5yeoV8l2p3/UzErTNYsHxzp8zUDX9GKZKW+fYKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YhT7OW0MkXDV1hqWwJU0CMYa+vLnc5MhRppFarPG6rxPvwN9SKZYOZ1mUdQ0vkQBl lMkN0JwyysA3bNdG3LavmK57qdMm3kdfPI4NbOsZD7O2Lo25t6HBkotzpqNq3vywCT lW1ny+LthTo2fC4sUldV4J93kwXFaNbnIeRXav6pVUpg7FvUIsjVgRnOgzQPLkwmL8 CsrzHMTYCDKXo3mTudCBiHBDK8NVpIFbLmiLf5TmPDdH7nTHTAymNrQEbOySI9YVKZ rRr7EJ3DHGoMMt1YVRPrQMEczffU9wW2kIW2s2oZloNsI36oJI6+YwM657rIZlbduW k5wcobqZl5wsg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Johan Hovold , Srinivas Kandagatla , Mark Brown , Sasha Levin Subject: [PATCH 6.1 33/71] ASoC: codecs: wcd938x: fix headphones volume controls Date: Wed, 13 Mar 2024 12:39:19 -0400 Message-ID: <20240313163957.615276-34-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313163957.615276-1-sashal@kernel.org> References: <20240313163957.615276-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.82-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-6.1.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 6.1.82-rc1 X-KernelTest-Deadline: 2024-03-15T16:39+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Johan Hovold [ Upstream commit 4d0e8bdfa4a57099dc7230952a460903f2e2f8de ] The lowest headphones volume setting does not mute so the leave the TLV mute flag unset. This is specifically needed to let the sound server use the lowest gain setting. Fixes: c03226ba15fe ("ASoC: codecs: wcd938x: fix dB range for HPHL and HPHR") Cc: # 6.5 Cc: Srinivas Kandagatla Signed-off-by: Johan Hovold Link: https://msgid.link/r/20240122091130.27463-1-johan+linaro@kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wcd938x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index e80be4e4fa8b4..555b74e7172d8 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -210,7 +210,7 @@ struct wcd938x_priv { }; static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(ear_pa_gain, 600, -1800); -static const DECLARE_TLV_DB_SCALE(line_gain, -3000, 150, -3000); +static const DECLARE_TLV_DB_SCALE(line_gain, -3000, 150, 0); static const SNDRV_CTL_TLVD_DECLARE_DB_MINMAX(analog_gain, 0, 3000); struct wcd938x_mbhc_zdet_param { -- 2.43.0