[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <33e04646-ac7e-3ba1-3e09-a4f27a1b250b@linux.intel.com>
Date: Thu, 29 Aug 2019 11:36:52 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
broonie@...nel.org, robh+dt@...nel.org, vkoul@...nel.org
Cc: devicetree@...r.kernel.org, alsa-devel@...a-project.org,
bgoswami@...eaurora.org, spapothi@...eaurora.org,
lgirdwood@...il.com, linux-kernel@...r.kernel.org
Subject: Re: [alsa-devel] [PATCH v5 4/4] ASoC: codecs: add wsa881x amplifier
support
> +static int wsa881x_ramp_pa_gain(struct snd_soc_component *comp,
> + int min_gain, int max_gain, int udelay)
> +{
> + int val;
> +
> + for (val = min_gain; max_gain <= val; val--) {
> + snd_soc_component_update_bits(comp, WSA881X_SPKR_DRV_GAIN,
> + 0xF0, val << 4);
> + /*
> + * 1ms delay is needed for every step change in gain as per
> + * HW requirement.
> + */
> + usleep_range(udelay, udelay + 10);
nit-pick: it'd be nicer to have udelay explicitly set here instead of in
the caller below for consistency with the comments.
> + wsa881x_ramp_pa_gain(comp, min_gain, max_gain, 1000);
But apart from that I didn't see anything blatantly wrong, so
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Powered by blists - more mailing lists