]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: mc13783: Update set_tdm_slot() semantics
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 12 Jan 2015 09:27:17 +0000 (10:27 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jan 2015 19:04:38 +0000 (19:04 +0000)
commitbec78c5f4ae228c4cbd432e97cadb8827fd8f1f9
treec6ef708df0ec5c57b0f0b830ddb1f873b2b28be0
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: mc13783: Update set_tdm_slot() semantics

The mc13783 driver uses inverted semantics for the tx_mask and rx_mask
parameter of the set_tdm_slot() callback compared to rest of ASoC. This
patch updates the driver's semantics to be consistent with the rest of ASoC,
i.e. a set bit means a active slot and a cleared bit means a inactive slot.
This will allow us to use the set_tdm_slot() API in a more generic way.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mc13783.c
sound/soc/fsl/imx-mc13783.c