From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Shenghao Ding <shenghao-ding@ti.com>, broonie@kernel.org
Cc: andriy.shevchenko@linux.intel.com, lgirdwood@gmail.com,
perex@perex.cz, 13916275206@139.com, judyhsiao@google.com,
alsa-devel@alsa-project.org, i-salazar@ti.com,
linux-kernel@vger.kernel.org, j-chadha@ti.com,
liam.r.girdwood@intel.com, bard.liao@intel.com,
yung-chuan.liao@linux.intel.com, dipa@ti.com, kevin-lu@ti.com,
yuhsuan@google.com, tiwai@suse.de, baojun.xu@ti.com,
soyer@irl.hu, Baojun.Xu@fpt.com, navada@ti.com,
cujomalainey@google.com, aanya@ti.com, nayeem.mahmud@ti.com
Subject: Re: [PATCH v1] ASoc: tas2781: Add Calibration Kcontrols and tas2563 digtial gain for Chromebook
Date: Wed, 22 May 2024 08:40:26 -0500 [thread overview]
Message-ID: <9dd05175-a5a4-409e-88aa-4a3d5800724d@linux.intel.com> (raw)
In-Reply-To: <20240522112942.994-1-shenghao-ding@ti.com>
Could you move this sort of renaming/editing to a first patch?
> /*Software Reset */
> -#define TAS2781_REG_SWRESET TASDEVICE_REG(0x0, 0X0, 0x01)
> -#define TAS2781_REG_SWRESET_RESET BIT(0)
> +#define TASDEVICE_REG_SWRESET TASDEVICE_REG(0x00, 0X00, 0x01)
> +#define TASDEVICE_REG_SWRESET_RESET BIT(0)
> -// tas2781-lib.c -- TAS2781 Common functions for HDA and ASoC Audio drivers
> +// tas2781-comlib.c -- TAS2781 Common functions for HDA and ASoC Audio drivers
> //
> -// Copyright 2023 Texas Instruments, Inc.
> +// Copyright 2023 - 2024 Texas Instruments, Inc.
> @@ -254,8 +281,8 @@ void tas2781_reset(struct tasdevice_priv *tas_dev)
> } else {
> for (i = 0; i < tas_dev->ndev; i++) {
> ret = tasdevice_dev_write(tas_dev, i,
> - TAS2781_REG_SWRESET,
> - TAS2781_REG_SWRESET_RESET);
> + TASDEVICE_REG_SWRESET,
> + TASDEVICE_REG_SWRESET_RESET);
> @@ -591,8 +1470,8 @@ static const struct snd_soc_component_driver
> soc_codec_driver_tasdevice = {
> .probe = tasdevice_codec_probe,
> .remove = tasdevice_codec_remove,
> - .controls = tas2781_snd_controls,
> - .num_controls = ARRAY_SIZE(tas2781_snd_controls),
> + .controls = tasdevice_snd_controls,
> + .num_controls = ARRAY_SIZE(tasdevice_snd_controls),
> .dapm_widgets = tasdevice_dapm_widgets,
> .num_dapm_widgets = ARRAY_SIZE(tasdevice_dapm_widgets),
> .dapm_routes = tasdevice_audio_map,
And then add functional changes in a second patch? It'd be simpler to
review really...
next prev parent reply other threads:[~2024-05-23 13:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 11:29 [PATCH v1] ASoc: tas2781: Add Calibration Kcontrols and tas2563 digtial gain for Chromebook Shenghao Ding
2024-05-22 12:01 ` Andy Shevchenko
2024-06-24 11:42 ` [EXTERNAL] " Ding, Shenghao
2024-08-09 14:36 ` Andy Shevchenko
2024-05-22 13:40 ` Pierre-Louis Bossart [this message]
2024-05-22 22:30 ` kernel test robot
2024-05-23 0:34 ` kernel test robot
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=9dd05175-a5a4-409e-88aa-4a3d5800724d@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=13916275206@139.com \
--cc=Baojun.Xu@fpt.com \
--cc=aanya@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=baojun.xu@ti.com \
--cc=bard.liao@intel.com \
--cc=broonie@kernel.org \
--cc=cujomalainey@google.com \
--cc=dipa@ti.com \
--cc=i-salazar@ti.com \
--cc=j-chadha@ti.com \
--cc=judyhsiao@google.com \
--cc=kevin-lu@ti.com \
--cc=lgirdwood@gmail.com \
--cc=liam.r.girdwood@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=navada@ti.com \
--cc=nayeem.mahmud@ti.com \
--cc=perex@perex.cz \
--cc=shenghao-ding@ti.com \
--cc=soyer@irl.hu \
--cc=tiwai@suse.de \
--cc=yuhsuan@google.com \
--cc=yung-chuan.liao@linux.intel.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