Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3940965pxj; Mon, 21 Jun 2021 09:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNIck1CTcr+cVf3S6LHt62hAX9fE1SnxilA+ED45rNQRZ/1Az2voMsnU72NzmufKiUHQgF X-Received: by 2002:a6b:3c01:: with SMTP id k1mr20351851iob.24.1624294217993; Mon, 21 Jun 2021 09:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624294217; cv=none; d=google.com; s=arc-20160816; b=I4lsnmtdnA7qqZMpcVEzNQBkKqybDD4uHME5soxhzjHxHceGYUq6P2iH4eNRp+X7m0 cm1YY9yjIaZB7XOYxy9EiHN6VnDUma69xsvNSRak75SKFtUNPfolFnYxfOTeIkEqur+B vdHlhsJ7eVOKfe06g58bWa9dn4qlIYZxrlOQ+/Lm5GagGLotZaThKfvtN1kcQnHQipZG L8QF0yNccMU1Plurjcot2pCIxMyZj8dRj70rwcFtyiss9Nc5V5Vfez2dpQh8j+81+x7E znG/HlxRZ7VYqIn0pwkslX2xlABu3ZNMgbfjk87SscD1yP8q8GQkc+Ktk0pWmkDkJTkt JBOg== 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=Roq0eAfoyUciTL5RRC95b/G+7+veUi2N5boXJrPPAd9MSibEvJYLXZ/XnwFNXF+RZo 4Sh8Oq/7Yip+lnN0KKfv+0GAfcfF8ygdEH79h9FqlNaaUeaOCPj/dWff8CV/pi4A1m/r o8mcyl58yfVEPXDRp9zxegE6KtWwehMzEMYldxVPNQLJmYi8xOm22tdRM7EeNggwrsSG r8JPGwUWAbNC3+wpzpQDikgFIQlq13pt6sMdQRAaZezpVYhcKxxs2AULKg1Pjd4ulpDq D8Mw9Vsy2l3vr/4N2WhGcyGXzu/rFo+MTfbYmNLyqGGTn6imDaQYdc/Nsac5942ISMJC dbGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nm3LXrC3; 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 j25si16839618jaj.93.2021.06.21.09.50.05; Mon, 21 Jun 2021 09:50:17 -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=Nm3LXrC3; 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 S231969AbhFUQua (ORCPT + 99 others); Mon, 21 Jun 2021 12:50:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:37716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231992AbhFUQqH (ORCPT ); Mon, 21 Jun 2021 12:46:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E9AAF613B4; Mon, 21 Jun 2021 16:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624293192; bh=9Rc61qOEX4dCvbIso4TMKwr7VWeVpYgY8rXvC9B+Xtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nm3LXrC3X73jJhWpT9vyIdH2/20Hx4t7uXlkSgZAtMX0HK/mSD/rVpYy+XvtltzIL eCeX4TfTnLZ5m3jenxhGLSqFSBgQw/B/aAdAQiQNfCk3C4kToavVHvUrKILBx75oCf AL931v7DrSQEjCKWdvDWp/iHDyJ34RYdUnPNH7Js= 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.12 099/178] ASoC: tas2562: Fix TDM_CFG0_SAMPRATE values Date: Mon, 21 Jun 2021 18:15:13 +0200 Message-Id: <20210621154926.142280246@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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