From patchwork Wed May 20 07:18:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dobias X-Patchwork-Id: 11559527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AB0E90 for ; Wed, 20 May 2020 07:22:13 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 969E3205CB for ; Wed, 20 May 2020 07:22:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="dCKuCHsd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 969E3205CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=2n.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id ABE95179C; Wed, 20 May 2020 09:21:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz ABE95179C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1589959330; bh=Be9VivMQnz7NpX66hFrKgHDLPjBZCMzlWeJfg5yM/r8=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=dCKuCHsdfnEhx4cCf2H1Cqq7ZqnGQF1hdQUbhG03nu7tCfJDQTCydiQK8TDyHa8yE cLINdxQrJR2L+GOD3QMYOWTnWh5QI/wSb4jHqZ5lCie1fIUGVAzK4l2BWIdSsNfN1y YB6hcPi/YgF+FfgDXReqZtGFRR6IMtlSGrzhfTeM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1E8E4F80132; Wed, 20 May 2020 09:21:23 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2EE24F80132; Wed, 20 May 2020 09:21:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E6BC3F80132 for ; Wed, 20 May 2020 09:21:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E6BC3F80132 IronPort-SDR: 6RBp3LhTs6DzUBBuAJXd2DrYd6xb+TAdLbljFMn0aCzBsGc1lIZcvPSiqwtsdbleV+GsRFNxiJ i9tPqqDFaxLPHk0QidnV0IUNT31jSCEjOhg4IIaHUqWo58E0A3LGdTKpcvKGhxeM5iP9vNoxPi UhfNtL7Ba+7+etceVqwq3zg3OuQsyFxKmFeZxnFdzepNgaRWPLNNQfHNathSiqXUDjfBmZDR1i o2X1xVqLrJ1/WL2tPzoFj6y0vQhjux2tamfCmYdCvQJyX4v+WPYpMTsPQZqZncP30aLCCAcfiW P+M= X-IronPort-AV: E=Sophos;i="5.73,413,1583190000"; d="scan'208";a="8907982" From: Pavel Dobias To: Subject: [PATCH 1/6] ASoC: max9867: fix ADC level control Date: Wed, 20 May 2020 09:18:59 +0200 Message-ID: <20200520071904.15801-1-dobias@2n.cz> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX04.axis.com (10.0.5.18) To XBOX04.axis.com (10.0.5.18) Cc: broonie@kernel.org, ladis@linux-mips.org, Pavel Dobias X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Fix swapped channels in ADC level control. Signed-off-by: Pavel Dobias --- sound/soc/codecs/max9867.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index 2e4aa23b5a60..6d49a1cc98c6 100644 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c @@ -58,7 +58,7 @@ static const struct snd_kcontrol_new max9867_snd_controls[] = { max9867_dac_tlv), SOC_SINGLE_TLV("Digital Boost Playback Volume", MAX9867_DACLEVEL, 4, 3, 0, max9867_dacboost_tlv), - SOC_DOUBLE_TLV("Digital Capture Volume", MAX9867_ADCLEVEL, 0, 4, 15, 1, + SOC_DOUBLE_TLV("Digital Capture Volume", MAX9867_ADCLEVEL, 4, 0, 15, 1, max9867_adc_tlv), SOC_ENUM("Speaker Mode", max9867_spkmode), SOC_SINGLE("Volume Smoothing Switch", MAX9867_MODECONFIG, 6, 1, 0),