Thread (1 message) 1 message, 1 author, 2017-07-20

[PATCH v3 06/12] mfd: wm97xx-core: core support for wm97xx Codec

From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2017-07-20 20:30:55
Also in: alsa-devel, linux-input, lkml

Charles Keepax [off-list ref] writes:
On Fri, Jun 30, 2017 at 09:44:02PM +0200, Robert Jarzmik wrote:
quoted
The WM9705, WM9712 and WM9713 are highly integrated codecs, with an
audio codec, DAC and ADC, GPIO unit and a touchscreen interface.
...
quoted
+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
quoted
+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..
quoted
+	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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help