ASoC: rt286: Fix sync function
authorBard Liao <bardliao@realtek.com>
Fri, 26 Sep 2014 03:06:40 +0000 (11:06 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 26 Sep 2014 08:14:27 +0000 (09:14 +0100)
commit66d627d554a4284dad00b2039efd18e1c129cc2f
treef5c43d3f5ff914dba949b4d0818cc16f3a0954b1
parentb7a297677540789b8fb35a6ce66c500739fb4bf9
ASoC: rt286: Fix sync function

We try to write index registers into cache when we write an index
register, but we change the reg value before updating the cache.
As a result, the cache is never be updated. This patch will fix
this issue.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/rt286.c