From: Paul Cercueil <paul@crapouillou.net>
To: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org,
tiwai@suse.com, broonie@kernel.org
Subject: Re: [PATCH 05/11] ASoC: jz4740-i2s: Remove unused SoC version IDs
Date: Thu, 07 Jul 2022 10:37:49 +0100 [thread overview]
Message-ID: <1F9NER.E4VHP6MF1K5A2@crapouillou.net> (raw)
In-Reply-To: <20220706211330.120198-6-aidanmacdonald.0x0@gmail.com>
Le mer., juil. 6 2022 at 22:13:24 +0100, Aidan MacDonald
<aidanmacdonald.0x0@gmail.com> a écrit :
> Using version IDs makes the code hard to follow -- it's better to
> describe the functional differences between SoCs instead. Remove
> the IDs since they're no longer used.
>
> Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> sound/soc/jz4740/jz4740-i2s.c | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/sound/soc/jz4740/jz4740-i2s.c
> b/sound/soc/jz4740/jz4740-i2s.c
> index cbb89f724f64..8bb9449d13d3 100644
> --- a/sound/soc/jz4740/jz4740-i2s.c
> +++ b/sound/soc/jz4740/jz4740-i2s.c
> @@ -81,15 +81,7 @@
> #define I2SDIV_IDV_SHIFT 8
> #define I2SDIV_IDV_MASK (0xf << I2SDIV_IDV_SHIFT)
>
> -enum jz47xx_i2s_version {
> - JZ_I2S_JZ4740,
> - JZ_I2S_JZ4760,
> - JZ_I2S_JZ4770,
> - JZ_I2S_JZ4780,
> -};
> -
> struct i2s_soc_info {
> - enum jz47xx_i2s_version version;
> struct snd_soc_dai_driver *dai;
>
> struct reg_field field_rx_fifo_thresh;
> @@ -406,7 +398,6 @@ static struct snd_soc_dai_driver jz4740_i2s_dai =
> {
> };
>
> static const struct i2s_soc_info jz4740_i2s_soc_info = {
> - .version = JZ_I2S_JZ4740,
> .dai = &jz4740_i2s_dai,
> .field_rx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 12, 15),
> .field_tx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 8, 11),
> @@ -415,7 +406,6 @@ static const struct i2s_soc_info
> jz4740_i2s_soc_info = {
> };
>
> static const struct i2s_soc_info jz4760_i2s_soc_info = {
> - .version = JZ_I2S_JZ4760,
> .dai = &jz4740_i2s_dai,
> .field_rx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 24, 27),
> .field_tx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 16, 20),
> @@ -442,7 +432,6 @@ static struct snd_soc_dai_driver jz4770_i2s_dai =
> {
> };
>
> static const struct i2s_soc_info jz4770_i2s_soc_info = {
> - .version = JZ_I2S_JZ4770,
> .dai = &jz4770_i2s_dai,
> .field_rx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 24, 27),
> .field_tx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 16, 20),
> @@ -451,7 +440,6 @@ static const struct i2s_soc_info
> jz4770_i2s_soc_info = {
> };
>
> static const struct i2s_soc_info jz4780_i2s_soc_info = {
> - .version = JZ_I2S_JZ4780,
> .dai = &jz4770_i2s_dai,
> .field_rx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 24, 27),
> .field_tx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 16, 20),
> --
> 2.35.1
>
next prev parent reply other threads:[~2022-07-07 9:39 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 21:13 [PATCH 00/11] ASoC: cleanups and improvements for jz4740-i2s Aidan MacDonald
2022-07-06 21:13 ` [PATCH 01/11] ASoC: jz4740-i2s: Remove Open Firmware dependency Aidan MacDonald
2022-07-07 9:16 ` Paul Cercueil
2022-07-06 21:13 ` [PATCH 02/11] ASoC: jz4740-i2s: Refactor DMA channel setup Aidan MacDonald
2022-07-07 9:30 ` Paul Cercueil
2022-07-06 21:13 ` [PATCH 03/11] ASoC: jz4740-i2s: Convert to regmap API Aidan MacDonald
2022-07-06 21:53 ` Paul Cercueil
2022-07-07 14:12 ` Aidan MacDonald
2022-07-06 21:13 ` [PATCH 04/11] ASoC: jz4740-i2s: Simplify using regmap fields Aidan MacDonald
2022-07-07 9:36 ` Paul Cercueil
2022-07-07 14:13 ` Aidan MacDonald
2022-07-06 21:13 ` [PATCH 05/11] ASoC: jz4740-i2s: Remove unused SoC version IDs Aidan MacDonald
2022-07-07 9:37 ` Paul Cercueil [this message]
2022-07-06 21:13 ` [PATCH 06/11] ASoC: jz4740-i2s: Use FIELD_PREP() macros in hw_params callback Aidan MacDonald
2022-07-07 9:40 ` Paul Cercueil
2022-07-06 21:13 ` [PATCH 07/11] ASoC: jz4740-i2s: Remove some unused macros Aidan MacDonald
2022-07-07 9:42 ` Paul Cercueil
2022-07-06 21:13 ` [PATCH 08/11] ASoC: jz4740-i2s: Align macro values and sort includes Aidan MacDonald
2022-07-07 9:42 ` Paul Cercueil
2022-07-06 21:13 ` [PATCH 09/11] ASoC: jz4740-i2s: Make the PLL clock name SoC-specific Aidan MacDonald
2022-07-07 9:47 ` Paul Cercueil
2022-07-07 14:24 ` Aidan MacDonald
2022-07-06 21:13 ` [PATCH 10/11] ASoC: jz4740-i2s: Support S20_LE and S24_LE sample formats Aidan MacDonald
2022-07-07 9:53 ` Paul Cercueil
2022-07-07 14:25 ` Aidan MacDonald
2022-07-06 21:13 ` [PATCH 11/11] ASoC: jz4740-i2s: Support continuous sample rate Aidan MacDonald
2022-07-07 9:53 ` Paul Cercueil
2022-07-07 13:54 ` (subset) [PATCH 00/11] ASoC: cleanups and improvements for jz4740-i2s Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1F9NER.E4VHP6MF1K5A2@crapouillou.net \
--to=paul@crapouillou.net \
--cc=aidanmacdonald.0x0@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox