Commit fcf6c5ea authored by Mark Brown's avatar Mark Brown

ASoC: dapm: Don't use async I/O

The only user of the async I/O support in ASoC is SPI which was using it to
avoid needless context thrashing and minimise controller runtime PM bounces.
The SPI framework has now been enhanced so that even normal spi_sync() calls
won't suffer these effects so we don't need to handle this in ASoC and in
fact it can be more efficient not to since we don't need to set up and tear
down the buffers needed to manage asynchronous I/O.

The async completions that DAPM does are left in place so drivers can use
them, they are very cheap if there is no asynchronous work queued.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 86d75003
......@@ -517,7 +517,7 @@ static int soc_dapm_update_bits(struct snd_soc_dapm_context *dapm,
{
if (!dapm->component)
return -EIO;
return snd_soc_component_update_bits_async(dapm->component, reg,
return snd_soc_component_update_bits(dapm->component, reg,
mask, value);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment