ASoC: ssm4567: Keep TDM_BCLKS in ssm4567_set_dai_fmt
authorBen Zhang <benzh@chromium.org>
Tue, 21 Jul 2015 21:46:26 +0000 (14:46 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2015 09:54:22 +0000 (10:54 +0100)
commita6c2a32ac83567f15e9af3dcbc73148ce68b2ced
treea2aad6959b4f28fd1be66e624e7aa0b61a3974ab
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
ASoC: ssm4567: Keep TDM_BCLKS in ssm4567_set_dai_fmt

The regmap_write in ssm4567_set_dai_fmt accidentally clears the
TDM_BCLKS field which was set earlier by ssm4567_set_tdm_slot.

This patch fixes it by using regmap_update_bits with proper mask.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/ssm4567.c