[alsa-devel] [PATCH v2 1/2] ASoC: cs43130: Add support for CS43130 codec

Mark Brown broonie at kernel.org
Fri Sep 1 12:43:45 CEST 2017


On Fri, Aug 18, 2017 at 11:00:19AM -0500, Li Xu wrote:

This is mostly good, there's a couple of stylistic issues - please send
incremental patches fixing them:

> +	case SND_SOC_DAPM_POST_PMU:
> +		regmap_update_bits(cs43130->regmap, CS43130_DSD_PATH_CTL_1,
> +				   CS43130_MUTE_MASK, 0);
> +		switch (cs43130->dev_id) {
> +		case CS43130_CHIP_ID:
> +		case CS4399_CHIP_ID:
> +			regmap_multi_reg_write(cs43130->regmap, unmute_seq,
> +					       ARRAY_SIZE(unmute_seq));
> +		}

I'd expect to see break statements at the end of each case in a switch -
this is an issue throughout the driver.

> +	if (cs43130->reset_gpio)
> +		gpiod_set_value_cansleep(cs43130->reset_gpio, 0);

The check here isn't needed and isn't done elsewhere in the driver, best
to remove it for consistency.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170901/6ed5d277/attachment.sig>


More information about the Alsa-devel mailing list