Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp207594rdb; Mon, 22 Jan 2024 01:12:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmvyyaIIZe/lybgrUXvQ19hmq25bxSvH6os9xLreldeaWatJmVWD+IqWvrQE4M3JGX/7AQ X-Received: by 2002:a05:6402:278e:b0:55c:21e3:3606 with SMTP id b14-20020a056402278e00b0055c21e33606mr1387130ede.75.1705914759383; Mon, 22 Jan 2024 01:12:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705914759; cv=pass; d=google.com; s=arc-20160816; b=JcsLtJcqk/O64AaU0OigfuS4KO5u/gHLGEhm+eMTal6dRAXpEK8K6ANjGBqsBsSbEA Yg3+n6MxSz/RDOoSPGk8l6INrq4nBKCm/L+p8iPISkHb66bOo5XlXG1h+nj+2By+x8IW aA7Dg7lhK0Ckcz4luGQ49d3yXu8UN+Ctp6cGtx6lxcpbBnRb8uwRQmGfa7uKWTeT7GB3 COEII4rk27gy2xbNLiTm7eBATQVkxw6Euhe9JPbZl8OtS2R5rQaVVTV46XDeGlW1muku 3F8sklmEIwpNcTljybYpIzkd7lGfD7/rd30D/8aZcs/+S+46AD+Cykp8m9md+tisZvwj grsA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=0+AucDQL0fjEjrz4IQhQZ/wtWaAmnc0ietehMnwuLhk=; fh=GjpAoaeCHkGt8SyhopVq3goT+VuWQYlO5UqUChapYVY=; b=xdAvTTabSATrdcTplp95AtwGUullGrZX426jFuTL9NF7a1GgRVk5P8W6tu1c28Kavo rlT0sdVMLnRqtFJ0ab5zD83dyVjP/wwn89LU+Tm24/jGD72YXy/l5QSrBCyjtobPigdI BdmS6lpALiT4XrQsICYbG/XvqnGrwERM25cErcoXcOxJoE+/4R57GIVFPVWQJYw0C6W0 MNXET5jhtyAyf4Q/6FanlCL9ZiclJZQNnZ9Tv6cR/LJWBjr0bWZCkpq4lWGIs8uQ9MX2 zHC3BzMD1Mz9k8UFfSoT/KyYkz1CqoMg2C2zuF4Mk5gMmQE7sF5rRATF3vukP+QUu3jE Yh8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKdz0JE1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u16-20020a50c050000000b0055a48656686si3896750edd.557.2024.01.22.01.12.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 01:12:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKdz0JE1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32597-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9CD731F21BBA for ; Mon, 22 Jan 2024 09:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FF6339ADB; Mon, 22 Jan 2024 09:12:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vKdz0JE1" 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 72F5439AC5; Mon, 22 Jan 2024 09:12:15 +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=1705914735; cv=none; b=YZGN7Wvc7nK7KhEjvC9t6dbTY0rm6uCk8p6K/+HFkpA/uz+Oi2iE56f1wcWi+aJRM/BEYYSLf8jH7zK99UHWx2baRvJv1tbZjEEv6jKtipu+1OZSf86MLpxqojOLKdo4MBaMVE7gP8i/5CtPJG0TRYiqzdZiSLqlbLpHHHlKnBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705914735; c=relaxed/simple; bh=2fBoKCcegy/XwfiYfFjhAIztTEvocYf7E0NC0/GEvbw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mInPPCJmMHRUcBUL+pLoeWsDwg4AT7lDpUCSMRSuHC91kLS1pT2Tk9v56yMnRjXUbcjIKGUfjPqLrF3idEcomRV5BcC/QWtiBnGltkvTwAAhImlUMJN5Z9c7LnNgz+HJVODB1BEfH1eQ7LZeE2nW5BXXW9JLwmjvRj0Lo0oZNCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vKdz0JE1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C62DC433F1; Mon, 22 Jan 2024 09:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705914735; bh=2fBoKCcegy/XwfiYfFjhAIztTEvocYf7E0NC0/GEvbw=; h=From:To:Cc:Subject:Date:From; b=vKdz0JE13pPip5mI1Oa+yl435logMUU4vyMM1h6xeHAdY0fXHfcFPNCEWL+vI69mf VDrk4h2N5ffm4ccvIrZ4M1hxKTDix67WGWHmw3t2dX89i34lRQf97cqAv21tbv7aLc G7VpwXIOhkDbi8Kj4qArT8Yt4IsYXBqKvYB1KmN/0asJdL5tnl+oTZo2WEoF4HIpwg 30JuiA5gsXaoxULLWVRPpSgw/rBrhHOnixQlLZ4Gn0/FP5UluJUCYaHoaaVd1/YVd2 kP0iys9hHkEP+zPV3UMLEEF5Tj/r3euVnFS4paIH4llSahDiT3c5EMUqccsPY+o9G5 20VTZoMvMkWog== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rRqLx-0000000079Q-1j8u; Mon, 22 Jan 2024 10:12:26 +0100 From: Johan Hovold To: Mark Brown Cc: Srinivas Kandagatla , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org Subject: [PATCH] ASoC: codecs: wcd938x: fix headphones volume controls Date: Mon, 22 Jan 2024 10:11:30 +0100 Message-ID: <20240122091130.27463-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: stable@vger.kernel.org # 6.5 Cc: Srinivas Kandagatla Signed-off-by: Johan Hovold --- 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 faf8d3f9b3c5..98055dd39b78 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