Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp641818pxb; Sat, 6 Mar 2021 11:29:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeZW0j+xvxiKlLfI56lExk+GkD4waU2/esWO+TEYY47Ntu0evIohPbLHoOE06KSYVDX1Id X-Received: by 2002:aa7:d503:: with SMTP id y3mr14844047edq.142.1615058980503; Sat, 06 Mar 2021 11:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615058980; cv=none; d=google.com; s=arc-20160816; b=z+UzurHfGFSp3yGZPPmMt1BL0aHAJjkOH13CSMSpS663yt+Z9wWXgacplGRjCbDKBK 0FL/DtJY41yR79g3ANNQby3CrsSwCqATo2l4CZBUqCV234lVFUr7FskvL9oVEG9RjFUR 8fmmWg6VU+7zZQSPPSHw0QrrRYngY4bOPydwFkRy1MEF2vypUlZra90ZVpE3OywThaa0 +5JVbcjNyfRJIDgQRWXg3U1U7lYJqV1woBuuE+NqGIJM50p9tS0CEZKjEk8fcMTYGGjN xbwDVtUsdaA3a7vPz8TqffE+sHNdgRZZSqPmj/WtKJ8xuJFJtRtYZMqmSwxCEGmrmr8r IJ9w== 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=8YWxrT2lHb23g9XQQZg1JKBV76cBNceJxjYy4j0ffVI=; b=WMxqI2jEp/xVdhB6ji6ecMdINApNUU+/Exu0xHLdR3RZCrOj5G8xRi6UG4iJwIkrdv r2L4VnWDSOX5zaFJRnFBx7eSO8qCE/MO9pU9qxDN0KlHsJbV8ke4oMQGvOwpO2cSqSpK J1eiaU6aRhgkXfCnbjWgzKH7HBS2zdtzYD46Tm+lr223zlw2nMIafWb+5ExzGcxyDM2d cW3ew/g4MKneBtNwAh+8ucM9OBdXvzfQDOxVQ6ZHzLTGi3OMEJurP4/KbpqWx1XceNF0 XP9/oRJQaY1vCqPMmM9cXKdJ8QgSh9ay1wefY+KSasS4BY2hfjxBCAwDd1mjiHkJQFe4 Y3Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=kGYZXo6x; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si3927564edm.297.2021.03.06.11.29.18; Sat, 06 Mar 2021 11:29:40 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=kGYZXo6x; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbhCFTOF (ORCPT + 99 others); Sat, 6 Mar 2021 14:14:05 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:54764 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231367AbhCFTNr (ORCPT ); Sat, 6 Mar 2021 14:13:47 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 126JCNcb017698; Sat, 6 Mar 2021 13:13:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=8YWxrT2lHb23g9XQQZg1JKBV76cBNceJxjYy4j0ffVI=; b=kGYZXo6xEGBT4L1ia7EsF0OVSxoYZmWPW7OCTVYk4Pm1LjSmYn2Iyg7xS1ttt+I2Al7E NN2Gxc/yz774PZCF73eKtEJUBstD96JJHuzUdXw9Q8QLOBMrjC+Lm7fCWVKQkGqfmX9Q Mo3yDawzZzHleH/hyN4S1gPkAvaC7gz907PdPSAEfmJMoOGrGqZjES8cb8eCwSY2OYXF RawyXuCt2EG34BCq1JJnKt0ZG8WIlLRexmSov5beMxWlZxwmqHJxZ7k3mmIkw9iuvzXN gJdCLR3htENf+6YunypBmXFd51O4H9rLt7ktfIOGS6AsL2MAM4DGw6rx3616pLMyUB7u SA== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 3748198d08-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 06 Mar 2021 13:13:31 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 6 Mar 2021 18:56:26 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Sat, 6 Mar 2021 18:56:26 +0000 Received: from mail1.cirrus.com (unknown [198.61.64.35]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 5659011CB; Sat, 6 Mar 2021 18:56:26 +0000 (UTC) From: Lucas Tanure To: James Schulman , David Rhodes , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai CC: , , , Lucas Tanure Subject: [PATCH v3 03/15] ASoC: cs42l42: Fix mixer volume control Date: Sat, 6 Mar 2021 18:55:41 +0000 Message-ID: <20210306185553.62053-4-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210306185553.62053-1-tanureal@opensource.cirrus.com> References: <20210306185553.62053-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 adultscore=0 spamscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103060119 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The minimum value is 0x3f (-63dB), which also is mute Signed-off-by: Lucas Tanure --- Changes in v3: - No changes Changes in v2: - No changes sound/soc/codecs/cs42l42.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index 4f9ad95479292..d5078ce79fadd 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -401,7 +401,7 @@ static const struct regmap_config cs42l42_regmap = { }; static DECLARE_TLV_DB_SCALE(adc_tlv, -9600, 100, false); -static DECLARE_TLV_DB_SCALE(mixer_tlv, -6200, 100, false); +static DECLARE_TLV_DB_SCALE(mixer_tlv, -6300, 100, true); static const char * const cs42l42_hpf_freq_text[] = { "1.86Hz", "120Hz", "235Hz", "466Hz" @@ -458,7 +458,7 @@ static const struct snd_kcontrol_new cs42l42_snd_controls[] = { CS42L42_DAC_HPF_EN_SHIFT, true, false), SOC_DOUBLE_R_TLV("Mixer Volume", CS42L42_MIXER_CHA_VOL, CS42L42_MIXER_CHB_VOL, CS42L42_MIXER_CH_VOL_SHIFT, - 0x3e, 1, mixer_tlv) + 0x3f, 1, mixer_tlv) }; static int cs42l42_hpdrv_evt(struct snd_soc_dapm_widget *w, -- 2.30.1