Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3931016pxj; Mon, 21 Jun 2021 09:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznctqf/myz6R6tDii094d6xEtVTaYBnXffPZ9tAtYr+0wKIgzMFYhiWXK7LVr3MZTESeaw X-Received: by 2002:a17:907:3f23:: with SMTP id hq35mr23674523ejc.477.1624293432461; Mon, 21 Jun 2021 09:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293432; cv=none; d=google.com; s=arc-20160816; b=G9/G8J/0jreykORlLQyXAdP2A45dfVMG2P5pmOJbd2WEVISwDitvEkuSGJYSweLsbk pXABKX6Qi+XrAAZHto2AbC1HhTp5XsyAjqjaivhriP3i1zNDiVyzrFjhUUY2GjFq5CLK vqSELX6kGEitse77D8B8DoivoXMsu94LKkmULlfZijU6iXL/tzbm1Wa1SpyLcvGHNH0D SJT0F6og7IC2msHvAzCEcigKXgrOECojRKgg7nmIuHV10hvlEzjU7aabWuTiPIWRpAd4 nYMKCXZ/ZkNdJisvIPemKwJxCNeQFabX1UGE4+RjFcS9djQgJ4EbSquKolb83vBr7ucN 1XPA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xCPMWW5hjqUmNtHJNj7LbwnrlNO2RUeCajsNdemRVR8=; b=hZDhSPuj1YOUoIGtmsaUZ2Lz6lOmiOSA8FfLwx+DU+hARqsSjTHEvKVAuyrpzTpPPA tsdCUl5oU1DNJTuwVBAZR5Yafb7ZiUusTKsK/IENi56koKzbQww/Z9gtgmPqQFm47HwG SkrjO1mD/3nulAv2Xyi6H53KdndENQWnVyWRe4/UWXc0Nyhn2n51L6mTj7s78Ev/E7lp myfcGvyhgM1t9tdk+A5VXl8NwAb/xATW95lfIY3bfoLmDm/2pb6zdM0P5IVRPgGQ+14r OxMh/o9Evo0Lga9r1efrsuM7SZy3Pwi9Zh4WVn8B4oo7ZhksjzIvYk3aLM9hicEMaxVI wF1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kB6+BDa5; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id la20si12830842ejc.3.2021.06.21.09.36.50; Mon, 21 Jun 2021 09:37:12 -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=@linuxfoundation.org header.s=korg header.b=kB6+BDa5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbhFUQgG (ORCPT + 99 others); Mon, 21 Jun 2021 12:36:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:54968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbhFUQcH (ORCPT ); Mon, 21 Jun 2021 12:32:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E10D61164; Mon, 21 Jun 2021 16:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292754; bh=9Rc61qOEX4dCvbIso4TMKwr7VWeVpYgY8rXvC9B+Xtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kB6+BDa5jPCTovZnXOt+NjY3VinI6pFDZEZeL7GVBaq0VQoGoV66dzJ34u9bREQ0N uzkklgYBieZjmxSVwyWgmTkOj3yQJvrAIdnjgvRce+tIKy4m2uJQ4enC2BJCPozMlv dNxNaU8YESnkVaNOIVKikoaG1872cimwlGQ+4BnA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Weinberger , Mark Brown , Sasha Levin Subject: [PATCH 5.10 084/146] ASoC: tas2562: Fix TDM_CFG0_SAMPRATE values Date: Mon, 21 Jun 2021 18:15:14 +0200 Message-Id: <20210621154916.374773798@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Weinberger [ Upstream commit 8bef925e37bdc9b6554b85eda16ced9a8e3c135f ] TAS2562_TDM_CFG0_SAMPRATE_MASK starts at bit 1, not 0. So all values need to be left shifted by 1. Signed-off-by: Richard Weinberger Link: https://lore.kernel.org/r/20210530203446.19022-1-richard@nod.at Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tas2562.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/tas2562.h b/sound/soc/codecs/tas2562.h index 81866aeb3fbf..55b2a1f52ca3 100644 --- a/sound/soc/codecs/tas2562.h +++ b/sound/soc/codecs/tas2562.h @@ -57,13 +57,13 @@ #define TAS2562_TDM_CFG0_RAMPRATE_MASK BIT(5) #define TAS2562_TDM_CFG0_RAMPRATE_44_1 BIT(5) #define TAS2562_TDM_CFG0_SAMPRATE_MASK GENMASK(3, 1) -#define TAS2562_TDM_CFG0_SAMPRATE_7305_8KHZ 0x0 -#define TAS2562_TDM_CFG0_SAMPRATE_14_7_16KHZ 0x1 -#define TAS2562_TDM_CFG0_SAMPRATE_22_05_24KHZ 0x2 -#define TAS2562_TDM_CFG0_SAMPRATE_29_4_32KHZ 0x3 -#define TAS2562_TDM_CFG0_SAMPRATE_44_1_48KHZ 0x4 -#define TAS2562_TDM_CFG0_SAMPRATE_88_2_96KHZ 0x5 -#define TAS2562_TDM_CFG0_SAMPRATE_176_4_192KHZ 0x6 +#define TAS2562_TDM_CFG0_SAMPRATE_7305_8KHZ (0x0 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_14_7_16KHZ (0x1 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_22_05_24KHZ (0x2 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_29_4_32KHZ (0x3 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_44_1_48KHZ (0x4 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_88_2_96KHZ (0x5 << 1) +#define TAS2562_TDM_CFG0_SAMPRATE_176_4_192KHZ (0x6 << 1) #define TAS2562_TDM_CFG2_RIGHT_JUSTIFY BIT(6) -- 2.30.2