Patch "ASoC: uda1380: Avoid accessing i2c bus when codec is disabled" has been added to the 4.0-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
ASoC: uda1380: Avoid accessing i2c bus when codec is disabled
to the 4.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
asoc-uda1380-avoid-accessing-i2c-bus-when-codec-is-disabled.patch
and it can be found in the queue-4.0 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
810e4425c224af6be67dff68c8832af1b5a11f89Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <[email protected]>
Date: Sun, 3 May 2015 21:11:47 +0300
Subject: ASoC: uda1380: Avoid accessing i2c bus when codec is disabled
From: Vasily Khoruzhick <[email protected]>
commit 810e4425c224af6be67dff68c8832af1b5a11f89 upstream.
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.
--- sound/soc/codecs/uda1380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/uda1380.c +1 -1
@@ -437,7 +437,7 @@ static int uda1380_set_dai_fmt_both(struif ((fmt &SND_SOC_DAIFMT_MASTER_MASK ) !=SND_SOC_DAIFMT_CBS_CFS )return -EINVAL ; -uda1380_write (codec,UDA1380_IFACE , iface); +uda1380_write_reg_cache (codec,UDA1380_IFACE , iface);return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.0/asoc-uda1380-avoid-accessing-i2c-bus-when-codec-is-disabled.patch