[alsa-devel] [PATCH] ASoC: uda1380: Avoid accessing i2c bus when codec is disabled

Mark Brown broonie at kernel.org
Mon May 4 16:27:05 CEST 2015


On Sun, May 03, 2015 at 09:11:47PM +0300, Vasily Khoruzhick wrote:
> set_dai_fmt_both() callback is called from snd_soc_runtime_set_dai_fmt()
> which is called from snd_soc_register_card(), but at this time codec
> is not powered on yet. Replace direct i2c write with regcache write.

Applied, thanks.  Of course the most robust thing would be to convert to
regmap and mark the device cache only when appropriate...
-------------- 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/20150504/340b959c/attachment.sig>


More information about the Alsa-devel mailing list