diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2017-09-14 05:07:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-19 14:15:55 +0200 |
commit | b0a7043d5c2ccdd306959f295bf1a62be025cbf5 (patch) | |
tree | 1248070818a6b852714387f2f73de881d47bb8d4 /sound/soc/generic/simple-card-utils.c | |
parent | ASoC: fsl_spdif: make const arrays rate static (diff) | |
download | linux-b0a7043d5c2ccdd306959f295bf1a62be025cbf5.tar.xz linux-b0a7043d5c2ccdd306959f295bf1a62be025cbf5.zip |
ASoC: fsl_ssi: Caculate bit clock rate using slot number and width
The set_sysclk() now is used to override the output bit clock rate.
But this is not a common way to implement a set_dai_sysclk(). And
this creates a problem when a general machine driver (simple-card
for example) tries to do set_dai_sysclk() by passing an input clock
rate for the baud clock instead of setting the bit clock rate as
fsl_ssi driver expected.
So this patch solves this problem by firstly removing set_sysclk()
since the hw_params() can calculate the bit clock rate. Secondly,
in order not to break those TDM use cases which previously might
have been using set_sysclk() to override the bit clock rate, this
patch changes the driver to calculate the bit clock rate using the
slot number and the slot width from the via set_tdm_slot().
The patch also removes an obsolete comment of the dir parameter.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic/simple-card-utils.c')
0 files changed, 0 insertions, 0 deletions