Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3509866imw; Thu, 7 Jul 2022 03:04:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+8uo/eEUApBS+dVm1JLjjMf2J1JMD4/LiF9wADRGzk9O/TLYrV+KPAyGfc2Qi3N34skmL X-Received: by 2002:a17:90b:188c:b0:1ef:9049:9f44 with SMTP id mn12-20020a17090b188c00b001ef90499f44mr4125222pjb.171.1657188258471; Thu, 07 Jul 2022 03:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657188258; cv=none; d=google.com; s=arc-20160816; b=wUwcQqQvEWLsLN+6/MxsBG+UMoF+2OOMTQZDzVtQ0rgHfJkhrxWDJsdRZshAp+kL0b n4U8v16e1hKgGwvh1KC6+a4VFkFhDr7FImtR/+hqT3Ikd5eC/5XhDZ0b+fiAPN9jLH0e HcgS3UHAyomn/16LN3K2aHMba5uddz55aHTY24blVGObEHi3oCzuERMeEp9+2QiyMDcN n7gVm65QGdu1xfbMqrdvV/J6VkJ/ZVZLmZ//2SvbOILs0UPyjGSC9no1iP/1BAI/g2cF oqzQuImsz4w11gfDrcymtt5ClNvAeHShudgYSQFI63ka5ujcRig7ZQ9pcisYemMsjHk0 29bw== 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:cc:to:subject:from:date :dkim-signature; bh=i8p03/aknxZm4ISCg5osm/QCfwD06OLWvg98PIGVA6k=; b=WL7KQUkF9rchR+givA0QR52B/HvSzAScsy6p5hNiptxWAjY9ta7LLa+ArVVsjgFuI9 yIjF0nE6fpbtXuWC3eP8n6CH4sTfxgeyzKu8eaKdVem7LXcP2HwhTw8Zpa+ys2DwuwYn FO5fS0Vv+KYhutuV35mlNLsFu6R5kW/uOTmMKye/DADUovt+l2sSY4FMz5bjvlBvh6Cn EuWcc84kKNxLc8lGWxCdzA0dGQg1LY3M13guKH7qa94MdzfzmxEsdXEPS5ujGYYGX3lJ 63hiRQ9NBfhyvmH77YrT+EzKSo8tLDgRpu8QuvZdNPMnvaWrZjCw9RJuVkQvZcJcdaIt /YbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=4SIGlYDY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6388c3000000b003fd2121ace3si6075186pgd.237.2022.07.07.03.04.04; Thu, 07 Jul 2022 03:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=4SIGlYDY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234795AbiGGJnJ (ORCPT + 99 others); Thu, 7 Jul 2022 05:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbiGGJnH (ORCPT ); Thu, 7 Jul 2022 05:43:07 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9C2A45070; Thu, 7 Jul 2022 02:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1657186985; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i8p03/aknxZm4ISCg5osm/QCfwD06OLWvg98PIGVA6k=; b=4SIGlYDYz6ZeZwMrdFwcHjdodvrTphUWQoqLzkb/6LkauADFI0vWu+8mpxaajfTFhrYj87 UHht/fC++I9qD2m9Mw2oNxWMBu2R3rOFRIB8frxKvS5vDhiJiRJAgBjkfneTYy4BzHYz+t BaW4ijYk24naRuCXPWWhsdjRcMj/ph4= Date: Thu, 07 Jul 2022 10:42:55 +0100 From: Paul Cercueil Subject: Re: [PATCH 08/11] ASoC: jz4740-i2s: Align macro values and sort includes To: Aidan MacDonald Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, linux-mips@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <20220706211330.120198-9-aidanmacdonald.0x0@gmail.com> References: <20220706211330.120198-1-aidanmacdonald.0x0@gmail.com> <20220706211330.120198-9-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mer., juil. 6 2022 at 22:13:27 +0100, Aidan MacDonald=20 a =E9crit : > Some purely cosmetic changes: line up all the macro values to > make things easier to read and sort the includes alphabetically. >=20 > Signed-off-by: Aidan MacDonald Acked-by: Paul Cercueil Cheers, -Paul > --- > sound/soc/jz4740/jz4740-i2s.c | 66=20 > +++++++++++++++++------------------ > 1 file changed, 32 insertions(+), 34 deletions(-) >=20 > diff --git a/sound/soc/jz4740/jz4740-i2s.c=20 > b/sound/soc/jz4740/jz4740-i2s.c > index b8d2723c5f90..3a21ee9d34d1 100644 > --- a/sound/soc/jz4740/jz4740-i2s.c > +++ b/sound/soc/jz4740/jz4740-i2s.c > @@ -4,6 +4,9 @@ > */ >=20 > #include > +#include > +#include > +#include > #include > #include > #include > @@ -13,11 +16,6 @@ > #include > #include >=20 > -#include > -#include > - > -#include > - > #include > #include > #include > @@ -35,36 +33,36 @@ > #define JZ_REG_AIC_CLK_DIV 0x30 > #define JZ_REG_AIC_FIFO 0x34 >=20 > -#define JZ_AIC_CONF_OVERFLOW_PLAY_LAST BIT(6) > -#define JZ_AIC_CONF_INTERNAL_CODEC BIT(5) > -#define JZ_AIC_CONF_I2S BIT(4) > -#define JZ_AIC_CONF_RESET BIT(3) > -#define JZ_AIC_CONF_BIT_CLK_MASTER BIT(2) > -#define JZ_AIC_CONF_SYNC_CLK_MASTER BIT(1) > -#define JZ_AIC_CONF_ENABLE BIT(0) > - > -#define JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE GENMASK(21, 19) > -#define JZ_AIC_CTRL_INPUT_SAMPLE_SIZE GENMASK(18, 16) > -#define JZ_AIC_CTRL_ENABLE_RX_DMA BIT(15) > -#define JZ_AIC_CTRL_ENABLE_TX_DMA BIT(14) > -#define JZ_AIC_CTRL_MONO_TO_STEREO BIT(11) > -#define JZ_AIC_CTRL_SWITCH_ENDIANNESS BIT(10) > -#define JZ_AIC_CTRL_SIGNED_TO_UNSIGNED BIT(9) > +#define JZ_AIC_CONF_OVERFLOW_PLAY_LAST BIT(6) > +#define JZ_AIC_CONF_INTERNAL_CODEC BIT(5) > +#define JZ_AIC_CONF_I2S BIT(4) > +#define JZ_AIC_CONF_RESET BIT(3) > +#define JZ_AIC_CONF_BIT_CLK_MASTER BIT(2) > +#define JZ_AIC_CONF_SYNC_CLK_MASTER BIT(1) > +#define JZ_AIC_CONF_ENABLE BIT(0) > + > +#define JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE GENMASK(21, 19) > +#define JZ_AIC_CTRL_INPUT_SAMPLE_SIZE GENMASK(18, 16) > +#define JZ_AIC_CTRL_ENABLE_RX_DMA BIT(15) > +#define JZ_AIC_CTRL_ENABLE_TX_DMA BIT(14) > +#define JZ_AIC_CTRL_MONO_TO_STEREO BIT(11) > +#define JZ_AIC_CTRL_SWITCH_ENDIANNESS BIT(10) > +#define JZ_AIC_CTRL_SIGNED_TO_UNSIGNED BIT(9) > #define JZ_AIC_CTRL_FLUSH BIT(8) > -#define JZ_AIC_CTRL_ENABLE_ROR_INT BIT(6) > -#define JZ_AIC_CTRL_ENABLE_TUR_INT BIT(5) > -#define JZ_AIC_CTRL_ENABLE_RFS_INT BIT(4) > -#define JZ_AIC_CTRL_ENABLE_TFS_INT BIT(3) > -#define JZ_AIC_CTRL_ENABLE_LOOPBACK BIT(2) > -#define JZ_AIC_CTRL_ENABLE_PLAYBACK BIT(1) > -#define JZ_AIC_CTRL_ENABLE_CAPTURE BIT(0) > - > -#define JZ_AIC_I2S_FMT_DISABLE_BIT_CLK BIT(12) > -#define JZ_AIC_I2S_FMT_DISABLE_BIT_ICLK BIT(13) > -#define JZ_AIC_I2S_FMT_ENABLE_SYS_CLK BIT(4) > -#define JZ_AIC_I2S_FMT_MSB BIT(0) > - > -#define JZ_AIC_I2S_STATUS_BUSY BIT(2) > +#define JZ_AIC_CTRL_ENABLE_ROR_INT BIT(6) > +#define JZ_AIC_CTRL_ENABLE_TUR_INT BIT(5) > +#define JZ_AIC_CTRL_ENABLE_RFS_INT BIT(4) > +#define JZ_AIC_CTRL_ENABLE_TFS_INT BIT(3) > +#define JZ_AIC_CTRL_ENABLE_LOOPBACK BIT(2) > +#define JZ_AIC_CTRL_ENABLE_PLAYBACK BIT(1) > +#define JZ_AIC_CTRL_ENABLE_CAPTURE BIT(0) > + > +#define JZ_AIC_I2S_FMT_DISABLE_BIT_CLK BIT(12) > +#define JZ_AIC_I2S_FMT_DISABLE_BIT_ICLK BIT(13) > +#define JZ_AIC_I2S_FMT_ENABLE_SYS_CLK BIT(4) > +#define JZ_AIC_I2S_FMT_MSB BIT(0) > + > +#define JZ_AIC_I2S_STATUS_BUSY BIT(2) >=20 > struct i2s_soc_info { > struct snd_soc_dai_driver *dai; > -- > 2.35.1 >=20