[alsa-devel] [PATCH v2 1/6] ASoC: Intel: Add helper to poll register for DSP status

Mark Brown broonie at kernel.org
Wed Jul 8 20:36:21 CEST 2015


On Fri, Jul 03, 2015 at 04:04:02PM +0530, Vinod Koul wrote:

> +	for (time = 0; time < timeout; time++) {
> +		if ((sst_dsp_shim_read_unlocked(ctx, offset) & mask) == expected_value)
> +			break;
> +
> +		mdelay(1);
> +	}

mdelay() not msleep()?  If we're waiting for multiple miliseconds that
could be lots of busy waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150708/d1241638/attachment.sig>


More information about the Alsa-devel mailing list