]> Pileus Git - ~andy/linux/commit
ASoC: fsl-ssi: Add configuration helper functions
authorMarkus Pargmann <mpa@pengutronix.de>
Fri, 20 Dec 2013 13:11:33 +0000 (14:11 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 8 Jan 2014 17:20:32 +0000 (17:20 +0000)
commit4e6ec0d98c045cb2c0c6550c65c4afae208872e9
tree02c270d6090a20f6329aa8c8a8054c57ef811ecc
parentbd3ca7d1b8ee0dcd502c8c15d1cf741bc165722f
ASoC: fsl-ssi: Add configuration helper functions

This patch adds a struct 'fsl_ssi_rxtx_reg_val' which holds register
values necessary to enable rx/tx. Based on those preset register values,
the added configuration functions will cleanly enable/disable different
parts of the SSI IP while supporting online/offline configuration.
Different operating modes can be setup directly as different register
values in fsl_ssi_reg_val.

These functions and structs will help to cleanup and simplify the
trigger function to support many different IP versions (online/offline
configuration) and different operating modes.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_ssi.c