[alsa-devel] [PATCH 1/2] ASoC: dmic: introduce mode switch delay

Mark Brown broonie at kernel.org
Wed Nov 21 14:21:37 CET 2018


On Mon, Nov 19, 2018 at 10:23:05PM +0530, Jenny TC wrote:

> +	switch (cmd) {
> +	case SNDRV_PCM_TRIGGER_STOP:
> +		if (dmic->modeswitch_delay)
> +			mdelay(dmic->modeswitch_delay);

Given that this is a busy waiting delay in atomic context it would be
better to have some validation when we parse the property to make sure
the value is half way sensible.
-------------- 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/20181121/a58cf34a/attachment.sig>


More information about the Alsa-devel mailing list