Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp271372pxt; Fri, 6 Aug 2021 01:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnG0E0X+b8y8lLNWMu1jeCArvrzGRkA80FnpNs9Sxkm7XRJa+M1atheVFmToKWKI6daeEo X-Received: by 2002:a05:6402:2297:: with SMTP id cw23mr11364592edb.329.1628238225610; Fri, 06 Aug 2021 01:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628238225; cv=none; d=google.com; s=arc-20160816; b=dZ86PV6NXD7V7zj8qak+RUHBs74+B0uI3xKe2KkEa74DT175b5B+TVybv+YTh4bOfv fxS0dIn7UpdbS6fcUKVnt9okJQqOLbKtRtznXYfkYYVRMJf6MqPNtv6LyhdU1tBvtXrK Kj/Bned/njcWnHPfCBy0AwmlQdIvtBO9OVHxg+yNqbmGOUKdrsQ4h6xsa3sQ9i+2YEoI Od6OCP09F2giZylifGysTLSR3S3e4ISauViF4kr+OAVvN8hiLJaRTWprEEFURIAL2vri /igP2ksrcNGaE9pJ8tNNT1iSmlx3qK33DzAW+2P0HDtWTp5CJ2BA02LVKFEpjv4XcpC/ hZ1w== 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=NEzyeb+R9AM8xSAKXfjdxd9r4P5lkboDwUwKSU/MKqA=; b=MIjj+4q1fb5AiFiwVg/qIbd8TS5K7Bn//mN5fja7VMSRXXTg6Gc64Gsp/VD6UrDLSl GxcbFn0kS7xf/iJh3hv5SNSV6CbAhVDkralEibgsWQjfiWg87Mt3xWutZDgvsvARsjWz b0JBwYSKsD9BVfr02W9I7DA3ftQYn+J+CthhdxiOLJog/FsORwVIjWYE2Q4mJFoOa/wJ ptOdWXL1/G/jRgPwJlD76G1tPL6PMJHYMyfohy7GhPrNFIcrvq07Ccm8xFlbDNEk6XoO 3lJY16XypLul/xtY0JuhS/+VZzo+CACZuSkrmyaDKv/yUHxC3ZarF8I9/zWQ1ibEDi4g GtTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xMMINEOp; 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 fd7si7552164ejc.312.2021.08.06.01.23.20; Fri, 06 Aug 2021 01:23:45 -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=xMMINEOp; 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 S243622AbhHFISx (ORCPT + 99 others); Fri, 6 Aug 2021 04:18:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:46912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240698AbhHFIQk (ORCPT ); Fri, 6 Aug 2021 04:16:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3CF896120C; Fri, 6 Aug 2021 08:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628237781; bh=clXpkkKYs0rFca8LLDbeSbQ7rs6gT7Z2YGaHBpBxeRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xMMINEOpOElQiBPlS2KREPkQQrUqF6XJs+tx+5eA9laMp0FiaEIOGln/eTI8xHvHF ZNjj7wRt0lDhEjQm08XX4Nsx8YSZqwGyouP3C8Tl0wBLaTydcAjEEvnGjipbF6w5zg mTP40r9gkGSEx8tt/LNIy4Otmj29O7Cp574mPSvg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kyle Russell , Mark Brown , Sasha Levin Subject: [PATCH 4.19 03/16] ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits Date: Fri, 6 Aug 2021 10:14:54 +0200 Message-Id: <20210806081111.254260198@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210806081111.144943357@linuxfoundation.org> References: <20210806081111.144943357@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: Kyle Russell [ Upstream commit 9cf76a72af6ab81030dea6481b1d7bdd814fbdaf ] These are backwards from Table 7-71 of the TLV320AIC3100 spec [1]. This was broken in 12eb4d66ba2e when BCLK_MASTER and WCLK_MASTER were converted from 0x08 and 0x04 to BIT(2) and BIT(3), respectively. -#define AIC31XX_BCLK_MASTER 0x08 -#define AIC31XX_WCLK_MASTER 0x04 +#define AIC31XX_BCLK_MASTER BIT(2) +#define AIC31XX_WCLK_MASTER BIT(3) Probably just a typo since the defines were not listed in bit order. [1] https://www.ti.com/lit/gpn/tlv320aic3100 Signed-off-by: Kyle Russell Link: https://lore.kernel.org/r/20210622010941.241386-1-bkylerussell@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tlv320aic31xx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tlv320aic31xx.h b/sound/soc/codecs/tlv320aic31xx.h index 0b587585b38b..6071de5fca57 100644 --- a/sound/soc/codecs/tlv320aic31xx.h +++ b/sound/soc/codecs/tlv320aic31xx.h @@ -147,8 +147,8 @@ struct aic31xx_pdata { #define AIC31XX_WORD_LEN_24BITS 0x02 #define AIC31XX_WORD_LEN_32BITS 0x03 #define AIC31XX_IFACE1_MASTER_MASK GENMASK(3, 2) -#define AIC31XX_BCLK_MASTER BIT(2) -#define AIC31XX_WCLK_MASTER BIT(3) +#define AIC31XX_BCLK_MASTER BIT(3) +#define AIC31XX_WCLK_MASTER BIT(2) /* AIC31XX_DATA_OFFSET */ #define AIC31XX_DATA_OFFSET_MASK GENMASK(7, 0) -- 2.30.2