diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2018-02-13 01:03:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-21 15:30:57 +0300 |
commit | 26b31f4f7d7905f67b6faa52ef147595341134c5 (patch) | |
tree | 908f04d69f026f88a595b73e24f37ca0e4bb7793 /sound/spi | |
parent | 37ac30a4bdc397cf1311111264ac35dc8473e1de (diff) | |
download | linux-26b31f4f7d7905f67b6faa52ef147595341134c5.tar.xz |
ASoC: fsl_ssi: Clean up _fsl_ssi_set_dai_fmt()
The _fsl_ssi_set_dai_fmt() is a helper function being called from
fsl_ssi_set_dai_fmt() as an ASoC operation and fsl_ssi_hw_init()
mainly for AC97 format initialization.
This patch cleans the _fsl_ssi_set_dai_fmt() in following ways:
* Removing *dev pointer in the parameters as it's included in the
*ssi pointer of struct fsl_ssi.
* Using regmap_update_bits() instead of regmap_read() with masking
the value manually.
* Moving baudclk check to the switch-case routine to skip the I2S
master check. And moving SxCCR.DC settings after baudclk check.
* Adding format settings for SND_SOC_DAIFMT_AC97 like others.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Tested-by: Caleb Crome <caleb@crome.org>
Tested-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Reviewed-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/spi')
0 files changed, 0 insertions, 0 deletions