]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: uda1380: Avoid accessing i2c bus when codec is disabled
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 3 May 2015 18:11:47 +0000 (21:11 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2015 14:25:23 +0000 (15:25 +0100)
commit748c17edc86a312bd27ed3e2fa3b92c9ec1addb0
tree868316c3bea87713a8fc4d939368117d42026fa9
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
ASoC: uda1380: Avoid accessing i2c bus when codec is disabled

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.

Fixes: 3062dff58a6d33 (ASoC: rx1950_uda1380: Use static DAI format setup)
Fixes: 77a8d35a0305b4 (ASoC: h1940_uda1380: Use static DAI format setup)
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/uda1380.c