linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Lee Jones <lee.jones@linaro.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Daniel Mack <daniel@zonque.org>,
	Haojian Zhuang <haojian.zhuang@gmail.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 06/12] mfd: wm97xx-core: core support for wm97xx Codec
Date: Thu, 20 Jul 2017 22:30:45 +0200	[thread overview]
Message-ID: <8760emsvey.fsf@belgarion.home> (raw)
In-Reply-To: <20170703090840.s5oae5qxd4fi6rhr@localhost.localdomain> (Charles Keepax's message of "Mon, 3 Jul 2017 10:08:40 +0100")

Charles Keepax <ckeepax@opensource.cirrus.com> writes:

> On Fri, Jun 30, 2017 at 09:44:02PM +0200, Robert Jarzmik wrote:
>> The WM9705, WM9712 and WM9713 are highly integrated codecs, with an
>> audio codec, DAC and ADC, GPIO unit and a touchscreen interface.
...
>> +static const struct reg_default wm97xx_reg_defaults[] = {
>> +};
>
> Should we not have some defaults in here?
Most certainly, I'll copy-paste the ones from :
 - sound/soc/codecs/wm9705.c
 - sound/soc/codecs/wm9712.c
>> +static int wm9705_register(struct wm97xx_priv *wm97xx)
>> +{
>> +	return 0;
>> +}
>> +
>> +static int wm9712_register(struct wm97xx_priv *wm97xx)
>> +{
>> +	return 0;
>> +}
>> +
>
> So are we only adding stubs for the 9705 and 9712? If so we
> should probably make that clear in the commit message at least.
Mmmh, I think I've been too lazy here.
I'll add the true functions, which will be on par with wm9713_register(), adding
2 sub-cells, the codec and the touchscreen.

...zip..
>> +	codec_pdata.ac97 = wm97xx->ac97;
>> +	codec_pdata.regmap = devm_regmap_init_ac97(wm97xx->ac97,
>> +						   &wm9713_regmap_config);
>> +	codec_pdata.batt_pdata = pdata->batt_pdata;
>> +	if (IS_ERR(codec_pdata.regmap))
>> +		return PTR_ERR(codec_pdata.regmap);
>> +
>> +	return devm_mfd_add_devices(wm97xx->dev, -1, cells,
>
> Should probably use the define PLATFORM_DEVID_NONE here.
Yeah sure.

> Other than those minor comments looks ok to me.
Thanks Charles, I'll include them for next iteration.

Cheers.

-- 
Robert

  reply	other threads:[~2017-07-20 20:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30 19:43 [PATCH v3 00/12] AC97 device/driver model revamp Robert Jarzmik
2017-06-30 19:43 ` [PATCH v3 01/12] ALSA: ac97: split out the generic ac97 registers Robert Jarzmik
2017-06-30 19:43 ` [PATCH v3 02/12] ALSA: ac97: add an ac97 bus Robert Jarzmik
2017-07-03  9:13   ` Takashi Iwai
2017-07-04 19:37     ` Robert Jarzmik
2017-07-04 20:10       ` Takashi Iwai
2017-07-05 20:21         ` Robert Jarzmik
2017-06-30 19:43 ` [PATCH v3 03/12] ASoC: add new ac97 bus support Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 04/12] ASoC: arm: make pxa2xx-ac97-lib ac97 codec agnostic Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 05/12] Input: wm97xx: split out touchscreen registering Robert Jarzmik
2017-07-03  8:58   ` Charles Keepax
2017-06-30 19:44 ` [PATCH v3 06/12] mfd: wm97xx-core: core support for wm97xx Codec Robert Jarzmik
2017-07-03  9:08   ` Charles Keepax
2017-07-20 20:30     ` Robert Jarzmik [this message]
2017-06-30 19:44 ` [PATCH v3 07/12] Input: wm97xx: add new AC97 bus support Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 08/12] ASoC: wm9713: add ac97 new " Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 09/12] ASoC: wm9712: " Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 10/12] ASoC: wm9705: add private structure Robert Jarzmik
2017-07-03  9:16   ` Charles Keepax
2017-06-30 19:44 ` [PATCH v3 11/12] ASoC: wm9705: add ac97 new bus support Robert Jarzmik
2017-06-30 19:44 ` [PATCH v3 12/12] ASoC: pxa: switch to new ac97 " Robert Jarzmik
2017-07-12 10:55 ` [PATCH v3 00/12] AC97 device/driver model revamp Mark Brown
2017-07-12 13:41   ` Robert Jarzmik

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=8760emsvey.fsf@belgarion.home \
    --to=robert.jarzmik@free.fr \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=ckeepax@opensource.wolfsonmicro.com \
    --cc=daniel@zonque.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=haojian.zhuang@gmail.com \
    --cc=lars@metafoo.de \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    --cc=perex@perex.cz \
    --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;
as well as URLs for NNTP newsgroup(s).